Error processing SMS

HI All

I have set up commcare hq. including postgreSQL ,kafka,counhdb,redis.

I have integrated twillio sms gateway by providing Accont sid and auth
token.

when Im trying to send sms i got following error ( Note : Im using Indian
phone number)

Couldn't send to the following number(s): ************(name)

and got following log error

Notify Exception: [SMS OUT] Error processing SMS
Traceback (most recent call last):
File "/home/heaptrace/project/commcare-hq/corehq/apps/sms/api.py", line
258, in send_message_via_backend
backend.send(msg, orig_phone_number=orig_phone_number)
File
"/home/heaptrace/project/commcare-hq/corehq/messaging/smsbackends/twilio/models.py",
line 42, in send
raise Exception("Expected orig_phone_number to be passed for all "
Exception: Expected orig_phone_number to be passed for all instances of
PhoneLoadBalancingMixin
2017-01-09 07:44:12,925 ERROR Notify Exception: [SMS OUT] Error processing
SMS

Help me for the same

Thanks

Hi,

When you open up the Twilio configuration in your instance of CommCareHQ,
there should be a place at the bottom under the "Phone Numbers" heading
where you specify all the Twilio phone numbers which are used to send SMS
for that account (in your case that might only be one number).

It looks like yours might not be configured correctly - please be sure to
add there the Twilio phone number from which SMS are sent in your account
(in international format, starting with +).

Also, unrelated to this issue but important to note - if you are using
Twilio for sending SMS in India, please be aware of these limitations
https://support.twilio.com/hc/en-us/articles/223134167-Limitations-sending-SMS-messages-to-Indian-mobile-devices
.

Thanks,
Giovanni

ยทยทยท On Mon, Jan 9, 2017 at 2:50 AM, Aniket wrote:

HI All

I have set up commcare hq. including postgreSQL ,kafka,counhdb,redis.

I have integrated twillio sms gateway by providing Accont sid and auth
token.

when Im trying to send sms i got following error ( Note : Im using Indian
phone number)

Couldn't send to the following number(s): ************(name)

and got following log error

Notify Exception: [SMS OUT] Error processing SMS
Traceback (most recent call last):
File "/home/heaptrace/project/commcare-hq/corehq/apps/sms/api.py", line
258, in send_message_via_backend
backend.send(msg, orig_phone_number=orig_phone_number)
File "/home/heaptrace/project/commcare-hq/corehq/messaging/smsbackends/twilio/models.py",
line 42, in send
raise Exception("Expected orig_phone_number to be passed for all "
Exception: Expected orig_phone_number to be passed for all instances of
PhoneLoadBalancingMixin
2017-01-09 07:44:12,925 ERROR Notify Exception: [SMS OUT] Error processing
SMS

Help me for the same

Thanks

--


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.