NowSMS http "listener"?

NowSMS http "listener"? SearchSearch
Author Message
marcia piccione
New member
Username: Mpiccione

Post Number: 1
Registered: 01-2012
Posted on Wednesday, January 18, 2012 - 07:23 pm:   

We currently use NowSMS in production for both sending and receiving sms. We currently only have SMPP connections configured. One of them receives inbound sms messages and forwards them on to our internal server for processing.

The problem is that we currently use OpenMarket but need to implement CMX2. CMX2 will only send messages to our NowSMS instance via "http get". When you set up an SMPP connection, it gives you the option to send inbound, SMPP messages to a particular bind. I do not see that option for HTTP. Is it possible for NowSMS to receive http-get messages and forward them to a particular bind? Or is it outbound (to SMSC provider) only?

Any feedback is appreciated as this is fairly urgent.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3723
Registered: 08-2008
Posted on Thursday, January 19, 2012 - 06:30 pm:   

Hi Marcia,

Yes, this is possible, but the HTTP GET must specify the routing that indicates the user account to route the message to (you can override it with an accounting callback, but that gets more complicated).

The standard NowSMS HTTP GET format is used (http://www.nowsms.com/doc/submitting-sms-messages/url-parameters)

For example:

http://server:port/?Sender=1234&PhoneNumber=5678&Text=text+of+message&InboundMes sage=Yes&LocalUser=accountname

The request also needs to include SMS user account credentials, either through an HTTP Basic Authorization header, or &User=username&Password=password in the HTTP GET.

We strongly recommend enabling the credit balance for the SMS User account that is used, and leave the credit balance at 0. This allows inbound messages, but disallows outbound messages.

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3724
Registered: 08-2008
Posted on Thursday, January 19, 2012 - 06:32 pm:   

P.S. - There is an important configuration quirk regarding the above.

On the 2-way page of the NowSMS configuration, "Process Received SMS Messages" must be checked. Otherwise, the queue that these messages are placed in does not get processed and the messages don't get routed to your SMPP client account.
marcia piccione
New member
Username: Mpiccione

Post Number: 2
Registered: 01-2012
Posted on Saturday, January 21, 2012 - 04:04 pm:   

Thanks, that worked great.