Space character in front of originating number causing SUBMIT_SM to...

Space character in front of originating number causing SUBMIT_SM to... SearchSearch
Author Message
Wossen Wyatt
New member
Username: Wwyatt

Post Number: 1
Registered: 05-2006
Posted on Thursday, May 18, 2006 - 06:52 pm:   

Hi Guys.

My company, U mobile, recently licensed NowSMS Gateway 2006 but I have a problem with the gateway. I use it to bind to an int'l. SMS interworking provider and since adding the license the gateway has started prefixing the originating number in outgoing SMPP packets with a space ( ).

So for example, instead of sending "5926600000" it would send " 5926600000". The correct number is being sent to the gateway via it's HTTP interface but when the gateway creates and sends the resulting SMPP message to our provider a space is being added. The destination and originating TONs are both set to 1 for the SMSC connection.

I have Ethereal traces that show this and I can send these to Now Wireless support if necessary.

Someone please help me. This problem is affecting service for our subscribers.

-Wossen Wyatt.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5961
Registered: 10-2002
Posted on Thursday, May 18, 2006 - 09:46 pm:   

Hi,

I don't know of any reason why a space would get inserted into the number.

It would help me to see debug logs from your system. Enable the "SMSDEBUG.LOG" from the "Serial #" tab.

Submit a message to illustrate the problem, then collect the SMSDEBUG.LOG and SMPPDEBUG.LOG.

You can either post them here ... or as your SMPPDEBUG.LOG will contain your SMPP login information ... you can either edit it out those login details ... or send the files to nowsms@now.co.uk with "Attention: Bryce" in the subject line, and I'll take a look. If you do send the files direct, please remind me what the problem is (e.g., space in the recipient phone number).

-bn
Wossen Wyatt
New member
Username: Wwyatt

Post Number: 2
Registered: 05-2006
Posted on Friday, May 19, 2006 - 07:30 pm:   

Bryce, I've sent the files you've requested. I'm looking forward to your response.

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

Post Number: 5991
Registered: 10-2002
Posted on Tuesday, May 23, 2006 - 01:41 pm:   

Hi Wossen,

You should have received my e-mail reply, but I'm just posting a follow-up here.

The problem appeared to be in a redirect response issued by a 2-way SMS script. I can't recall if it was the sender parameter or the recipient parameter ... but the parameter needed to be URL escaped, with the "+" encoded as "%2B", otherwise "+" is treated as a space.

-bn
Wossen Wyatt
New member
Username: Wwyatt

Post Number: 3
Registered: 05-2006
Posted on Tuesday, May 23, 2006 - 03:42 pm:   

Hi Bryce.

Thanks for the help. Your diagnosis was right on the ball! I've adjusted my script to exclude the "+" symbol from the URL returned to the gateway. But the odd thing is that this script worked just fine during the trial period.

After the rrial version expired I uininstalled it. When we received our license key I re-installed the gateway. But this problem surfaced.

Why would the gateway's behavior change seemingly withour reason?

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

Post Number: 5993
Registered: 10-2002
Posted on Tuesday, May 23, 2006 - 04:11 pm:   

Hi Wossen,

I don't know why there would be a difference. It is possible that something changed at the SMPP server where it previously ignored the space.

-bn