Invalid Parameter

Invalid Parameter SearchSearch
Author Message
Thomas S
New member
Username: Homaxto

Post Number: 1
Registered: 06-2009
Posted on Tuesday, June 16, 2009 - 08:04 am:   

I am trying to send a OMA session initiator message to a device through NowSMS. I got this working on Kannel, so I am confident that I ad doing some parts correct. Probably my problem is just due to some implementation differences in the two products.

The url I call NowSMS with looks like the following:
http://localhost:8800/?User=now&Password=sms&PhoneNumber=<phoneno>&text=%01%06<e tc.>%64%6D&udh=%06%05%04%0B%84%23%F0

And NowSMS returns:
"Error: Invalid Parameter
Invalid format for UDH (hexadecimal digit characters only)."

If I delete the % signs from the UDH part, the message is send, but as a regular SMS, and the device does not recognize it as a session initiator message.

What should be done differently than on Kannel?

Kind regards,
Thomas
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7783
Registered: 10-2002
Posted on Tuesday, June 16, 2009 - 02:16 pm:   

Hi Thomas,

NowSMS uses a different format for submissions.

You submit a message either using text format or using binary format.

There are no "%" characters used when submitting a binary message.

For example, the UDH would be specified like this:

udh=0605040B8423F0

When you submit a message like this, is also a good idea to include "binary=yes" to make sure that NowSMS understands that the message data should be interpreted as binary.

-bn
Thomas S
New member
Username: Homaxto

Post Number: 2
Registered: 06-2009
Posted on Wednesday, June 17, 2009 - 09:16 am:   

I tried adding the binary=yes, and I removed all % signs in the text and in the udh. It left me with the following URL:
http://localhost:8800/?User=now&Password=sms&PhoneNumber=%2B<phoneno>&text=01060 3C4AF8786C0ED58F5F5B4139D1B4AFDD5AE22B102D8000000000106646D6520646D&udh=0605040B 8423F0&binary=yes

I can see from the log that the message is sent, but it never arrives - or more accurately, the phone ignores the message. The same text and udh sent through Kannel is not ignored by the phone, and works as intended.

Thomas
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7786
Registered: 10-2002
Posted on Wednesday, June 17, 2009 - 11:09 pm:   

Hi Thomas,

I don't know what would be different.

As a sanity check, try sending some simple WAP Push SI messages, and make sure that they are received correctly. (Are you using the same SMSC connection in both cases ... maybe there is an issue with your SMSC connection?)

Also, take a look at the SMSOUT-yyyymmdd.LOG file to verify that what is being sent out matches what you are submitting ... just in case there is a typo in the URL somewhere.

The only possibility that I can think of would be the DCS parameter being an issue.

Actually, as I think about it ... that is the issue. The DCS value defaults to 0, even if it is a binary message (you might be sending an EMS message). Include "&dcs=F5" to set the DCS value. (Some environments require "&dcs=4" for WAP Push messages.)

-bn
Thomas S
New member
Username: Homaxto

Post Number: 3
Registered: 06-2009
Posted on Friday, June 19, 2009 - 08:12 am:   

Fantastic. I just tested and it works like rubbed in oil :-)

Thanks a lot for your help.

Thomas