Question 2-way SMPP to HTTP | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through April 08, 2009 ⬆ |
◄ ► |
Author | Message | |||
alberto fernadez New member Username: Bluesnatural Post Number: 1 Registered: 02-2009 |
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 |
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 |
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 |
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 |