Standardize MMS number formats | Search |
NowSMS Support Forums ⬆ NowSMS Support - MMS & Advanced Issues ⬆ |
◄ ► |
Author | Message | |||
Chris Henn New member Username: Chrishenn Post Number: 5 Registered: 09-2017 |
Is there a way to standardize the number formats? If customer A sends MM7 with +numbers in the TO and FROM but customer B wants the numbers without the +, is there a way to configure that rule for customer B? In turn if customer B sends without the + but most other customers expect +number can we set a rule on customer B to add the plus when coming in? | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 8510 Registered: 10-2002 |
Hi Chris, In the Linux version, there is some support for this with MM7 connections. However, it does not appear to be documented anywhere. This support is based on "prefix conversion", which is supported for SMS and MM1 clients in both Windows and Linux versions. How it works for MM7 in the Linux version is that settings can be manually added to the MMSC.INI file. Each MMSC connection will have a [VASPIN-connectionName] or [VASPOUT-connectionName] section header, depending on the direction of the connection. Under these section headers, these additional settings can be added: RecipPrefixConvert=???:??? SenderPrefixConvert=???:??? These settings apply to sender (source) and recipient (destination) addresses, as denoted in the settings name. Prefix conversions can be a comma delimited list, such as 00:+,0:+44 In this case, 0044777777777 is converted to +44777777777, and 0777777777 would be converted to +44777777777. For outbound messages, the conversion occurs before the message is submitted via this MMSC connection. For inbound messages, it is applied as the message is received from the MMSC connection. An older web page that describes how these settings work for SMS messages may be helpful for understanding how these prefix conversion strings work: https://nowsms.com/international-prefix-conversion-for-sms In the US, a conversion strings like this is helpful for adding a missing + and converting to international format: SenderPrefixConvert=011:+,1:+1,2:+12,3:+13,4:+14,5:+15,6:+16,7:+17,8:+18,9:+19 RecipPrefixConvert=011:+,1:+1,2:+12,3:+13,4:+14,5:+15,6:+16,7:+17,8:+18,9:+19 With the above setting, 01144777777777 (011 being an old style prefix for an international phone number) would be converted to +44777777777. 13335551212 would be converted to +13335551212. 3335551212 would be converted to +13335551212. Conversely, the following prefix conversion string would remove the +1, and convert to local format: SenderPrefixConvert=+12:2,+13:3,+14:4,+15:5,+16:6,+17:7,+18:8,+19:9 RecipPrefixConvert=+12:2,+13:3,+14:4,+15:5,+16:6,+17:7,+18:8,+19:9 Regards, Bryce Norwood NowSMS Support | |||
Chris Henn New member Username: Chrishenn Post Number: 6 Registered: 09-2017 |
Bryce, Any update on my previous question on the source and destination not getting + signs? | |||
Chris Henn New member Username: Chrishenn Post Number: 8 Registered: 09-2017 |
Bryce, I have the following setup for the customer and it seems to work for the recipient numbers but not for the senders on the VASP-IN. RecipPrefixConvert=1:+1,2:+2,3:+3,4:+4,5:+5,6:+6,7:+7,8:+8,9:+9 SenderPrefixConvert=1:+1,2:+2,3:+3,4:+4,5:+5,6:+6,7:+7,8:+8,9:+9 I have tried adding the directional to the parameter in both directions and it still didn't work (InSenderPrefixConvert) (OutSenderPrefixConvert). When I try the other way around on the VASP-OUT nothing is converted. RecipPrefixConvert=+1:1,+2:2,+3:3,+4:4,+5:5,+6:6,+7:7,+8:8,+9:9 SenderPrefixConvert=+1:1,+2:2,+3:3,+4:4,+5:5,+6:6,+7:7,+8:8,+9:9 | |||
Chris Henn New member Username: Chrishenn Post Number: 9 Registered: 09-2017 |
Bryce, I apologize, here is more details on the VASP-OUT conversion, it works on the Sender but adds a BCC without the + and keeps the To as the number with the +. <SenderAddress><ShortCode>97270</ShortCode></SenderAddress> </SenderIdentification> <Recipients> <To> <Number displayOnly="true">+14441235678</Number> </To> <Bcc> <Number>14441235678</Number> </Bcc> </Recipients> | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 8511 Registered: 10-2002 |
Hi Chris, Apparently these settings were a planned feature, but never signed off as tested. We are in the process of fixing these settings to work as intended. An update should be available in the next several days. Regards, Bryce Norwood NowSMS Support |