fix 500s when inbound msgs sent from alphanumerics rather than normal phone numbers

This commit is contained in:
Leo Hemsted
2017-11-23 15:22:18 +00:00
parent 3ad0ac62d4
commit f3d129b0d8
4 changed files with 29 additions and 3 deletions

View File

@@ -486,6 +486,7 @@ def send_inbound_sms_to_service(self, inbound_sms_id, service_id):
inbound_id=inbound_sms_id)
data = {
"id": str(inbound_sms.id),
# TODO: should we be validating and formatting the phone number here?
"source_number": inbound_sms.user_number,
"destination_number": inbound_sms.notify_number,
"message": inbound_sms.content,