Question 2-way SMPP to HTTP

Question 2-way SMPP to HTTP Search Search

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through April 08, 2009 » Question 2-way SMPP to HTTP « Previous || Next »
Author Message
alberto fernadez
New member
Username: Bluesnatural

Post Number: 1
Registered: 02-2009
Posted on Thursday, February 26, 2009 - 06:55 pm:   

we receive sms through SMPP to nowsms and later we send through HTTP our provider.
Is this routed using 2-way? Can it be routed?.
How can I route this sms to 2-way ?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 520
Registered: 08-2008
Posted on Thursday, February 26, 2009 - 07:39 pm:   

Hi Alberto,

When you use an SMPP client to connect to NowSMS, any messages submitted by the SMPP client are considered "outbound" (or "MT") messages.

NowSMS will route them to an "SMSC" connection for processing. This SMSC connection might be an HTTP URL (defined as an HTTP SMSC).

The 2-way commands are used for messages that are considered "inbound" (or "MO") messages.

Maybe you can explain what you are trying to do ... explain the routing path of the message ... and I will have some suggestions.

--
Des
NowSMS Support
alberto fernadez
New member
Username: Bluesnatural

Post Number: 2
Registered: 02-2009
Posted on Sunday, March 01, 2009 - 08:52 pm:   

How can nowsms connect to a database to store the information?
For outbound sms.
Thanks
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 534
Registered: 08-2008
Posted on Tuesday, March 03, 2009 - 06:00 pm:   

Hi,

NowSMS does not connect directly to a database. However, it does provide HTTP based accounting callbacks that you can use to interface with a database.

This HTTP-based accounting interface can call a URL that you configure every time NowSMS processes a message. You can use the information provided in this callback to store information in your database.

This link explains the basics of the accounting callbacks:

http://www.nowsms.com/support/bulletins/tb-nowsms-001.htm

However, you will notice that the information in referenced those callbacks is rather sparse.

That link is a bit old, and needs to be updated ... as the callback actually does include more information, including the message content.

The following link provides more information about the parameters that are currently included in the SMS HTTP accounting callbacks:

http://blog.nowsms.com/2009/01/dynamic-sms-message-routing-with-http.html

(Only the response code handling for dynamic message routing requires the latest version ... the other parameters have been implemented for awhile.)

So ... as an example, if you configure an accounting URL of http://server/path, when a message is submitted, you'll get a callback like this, allowing you to record the information:

http://server/path?Type=SMSSend&From=UserAccount&To=%2B447777777777&SubmitIP=127 .0.0.1&Text=This%20is%20a%20test.

--
Des
NowSMS Support

Login Login / Register Search Search   Home Home
Logout Logout Topics Topics Search Last 1|3|7|30 Days   Previous Page Previous Next Next Page