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
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 +).
ยทยทยท
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