Issue with number formats - change to international format (+countr...

Issue with number formats - change to international format (+countr... SearchSearch
Author Message
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 8448
Registered: 10-2002
Posted on Thursday, June 24, 2021 - 06:17 pm:   

From our support mailbox:


quote:

Dear.

We are using the NOWsms gateway software and we are experiencing an issue with number formats.

Is there an option to change the number format 06 to +316 because my SMPP provider only accepts numbers with +31 or 0031

Please let me know.

Regards,




This is a very common issue. Some country specific providers may prefer national formatted numbers, while many others may prefer international format.

Options for converting number formats in NowSMS are described in the following article:
https://nowsms.com/international-prefix-conversion-for-sms

Basically, the settings described in that article allow you to define prefix conversions which are either applied globally to all SMS messages processed by NowSMS, or selectively applied to messages being sent and/or received via a specific SMSC connection.

In this specific case, a global prefix conversion is probably the best idea, as most providers will prefer this.

To perform this conversion, edit SMSGW.INI and add the following setting under the [SMSGW] header:

GlobalRecipPrefixConvert=00:+,0:+31

This will convert 06nnnnnnnnn to +316nnnnnnnnn and 00316nnnnnnnnn to +316nnnnnnnnn

I realize that you did not ask for the "00" to "+" conversion, but the "+" format is more widely supported. (For SMPP environments, the actual SMPP requests will remove the "+" character and set the "type of number" (TON) to "international".)

Regards,

Bryce Norwood
NowSMS Support
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 8454
Registered: 10-2002
Posted on Monday, June 28, 2021 - 08:46 pm:   

And a follow-up ...


quote:

It seems this logic is not working with email submissions.

2021-06-25 09:45:45:405,950F4793,SMTP sender 06xxxxxxx@zzzzzzz.nl to 06xxxxxxx,06xxxxxxx,OK -- SMPP - smpp.yyyyyyy.com:3550,SubmitUser=localsystem-mmsc;SMSCRouteName=BulkSMS (SMPP);Text="Your authentication token code is 123456. "




That is correct. The implementation of the "GlobalRecipPrefixConvert" setting is only effective for messages submitted via HTTP or SMPP. SMTP/e-mail submissions use a different path, and currently this setting is not applied against those messages.

The link in the previous message describes other prefix conversion settings. For example, it is possible to apply a conversion to messages that are being sent via a specific SMSC connection.

In SMSGW.INI, you will find a section that contains SMSC specific settings under a header of [SMPP - smpp.yyyyyyy.com:3550]. Under this header, add:

OutRecipPrefixConvert=00:+,0:+31

This conversion will be applied to all messages that are sent out via this SMSC connection. If you have multiple SMSC connections, the setting would need to be applied to each SMSC that needs this prefix conversion to be applied.

Regards,

Bryce Norwood
NowSMS Support

Add Your Message Here, or click here to start a new topic.
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image
Options: Automatically activate URLs in message
Action: