Issue with number formats - change to international format (+countr... | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ |
◄ ► |
Author | Message | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 8448 Registered: 10-2002 |
From our support mailbox:
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 |
And a follow-up ...
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 |