ensure international numbers are handled correctly

the international flag semantically means 'Should we throw an error if an
international number is passed in?' (and the answer is no. We should not.)
This commit is contained in:
Leo Hemsted
2017-06-02 13:34:02 +01:00
parent bf18b179b0
commit 69c299dd6c
3 changed files with 18 additions and 3 deletions

View File

@@ -64,8 +64,8 @@ def format_mmg_datetime(date):
def create_inbound_mmg_sms_object(service, json):
message = format_message(json['Message'])
user_number = validate_and_format_phone_number(json['MSISDN'])
message = format_mmg_message(json['Message'])
user_number = validate_and_format_phone_number(json['MSISDN'], international=True)
provider_date = json.get('DateRecieved')
if provider_date: