Question

Photo of Jon Horton

0

Twilio replies not working — receives an error when posting to the webhook

Hey!

We're in the process of configuring our rock instance to work with Twilio, and so far we've:

  • Followed the Documentation to configure our Twilio account + Rock communication settings
  • Can successfully send mass communication via SMS through Twilio

Unfortunately, I'm unable to get replies working. I checked this thread and confirmed that our webhooks are configured using a publicly available server.

When replying to a mass SMS, I receive the following message: 

Could not deliver message. This phone number is not registered in the NewSpring Church database.

It's worth noting that we're using an ssl url (https://ourrockserver.newspring.cc/Webhooks/Twilio.ashx)

Is there anything obvious I may be missing? Anyone else run into this?

Thanks!

  • Photo of DJ Grick

    0

    Our URL is SSL also with no issues. Our youth ministry uses this feature constantly. 

    Some basic things to double check:

    On Twilio:

    • If you sign into Twilio and choose logs>Messages does it show the incoming message followed by an outgoing API or just the incoming message? 
    • Also on Twilio's site check if you are using HTML post or HTML Get for the webhook. It should be post. 
    • You can also check here for errors: https://www.twilio.com/user/account/developer-tools/app-monitor 

    In Rock:

    • Did you select a Response recipient for the number? 
    • Have you tried following your URL from the web browser to see if you get an "invalid Request type" message? I assume you did because you said you made sure it was public. 

     

     

    • Jon Horton

      Thanks DJ, The Twilio response I get from Rock is a Not Found page. I'm using HTML Post


      In Rock, I did select a response recipient, confirmed they have a number and that sms is checked active.
      I also followed the url and received that message. Any other thoughts?

    • Jon Horton

      Is there perhaps a global Country code setting in rock that has to be configured in order for a reply number to match up?

    • Jon Edmiston

      Can you confirm the value you have in 'Admin Tools > Communications > SMS From Values' is formatted like: '+14803515392' vs (480) 351-5392. I verified it's working on our install.