NowSMS removes + symbol from the Sender Address

NowSMS removes + symbol from the Sender Address SearchSearch
Author Message
Sanjeev Khurana
New member
Username: Feelsanjeev

Post Number: 1
Registered: 07-2009
Posted on Wednesday, July 29, 2009 - 03:38 pm:   

We are using GSM Modem to connect to NowSMS(SMS Gateway - V2006.03.09).When we send a sms to the Nowsms modem sim,it receives as +919123456789(e.g) but when it process to smpp client it removes the leading + symbol.

Is there any way we can restrict nowsms not to remove the leading + symbol.?

If answer is no to above question any work around to append "+" sysmbol or "00".

Thanks in adavance
Sanjeev
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1089
Registered: 08-2008
Posted on Wednesday, July 29, 2009 - 08:54 pm:   

Hi Sanjeev,

The "+" symbol is not used by SMPP clients. In SMPP environments, an international number is represented with a TON (type of number) value of "1".

NowSMS translates the "+" to a "1" for the source_ton or dest_ton as appropriate ... so the SMPP software can see that the number is in international format by inspecting the appropriate "ton" field.


--
Des
NowSMS Support
Sanjeev Khurana
New member
Username: Feelsanjeev

Post Number: 2
Registered: 07-2009
Posted on Thursday, July 30, 2009 - 08:14 am:   

Hi Des,
Thank you for your reply.

I'm looking to avoid changing my SMPP client and looking for a workaround or a proper way to stop NowSMS from truncating "+".

The local operator whose sim we have in the modem accepts SMS only if it is with "+", "00" or without 91 for local number.

Since NowSMS is truncating "+" the SMS which goes to the SMSC goes as 911234567890 instead of +911234567890 and the SMSC doesn't accept it.

This is the constraint only with this operator in India so we are not looking at changing our product code (SMPP client) and looking at a solution on the NowSMS side. Since it is a reduntant truncation NowSMS is doing, because without truncation it will work with all the operators.

Highly appreciate your quick reply.

thanks,
Sanjeev.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1101
Registered: 08-2008
Posted on Thursday, July 30, 2009 - 07:23 pm:   

Hi Sanjeev,

I'm having trouble understanding the logic flow.

Is the SMPP client actually putting a "+" in the text of the phone number?

Although that would be highly unusual ... I can't see where NowSMS would remove it. NowSMS would add a "+" if TON=1 ... but I can't see where it would remove it. I would expect it to go out with the "+".

When delivering a message to the SMPP client, NowSMS would remove the "+" and set TON=1.

I think I need to understand the message flow a little better in order to understand what you are trying to describe.

Can you enable the SMSDEBUG.LOG in NowSMS (checkbox on the Serial # page)?

Then repeat whatever it is that you are trying to do, and reply back with the SMSDEBUG.LOG and SMPPDEBUG.LOG attached.

Also, if you could briefly explain the sequence of events that should be covered in the log, that would help.

There just seems to be something missing in my understanding of the message flow, so these logs would help explain it.

--
Des
NowSMS Support