How to access operator ID from mBlox

How to access operator ID from mBlox SearchSearch
Author Message
Raffi Krikorian
Posted on Wednesday, January 28, 2009 - 08:07 pm:   

Using the 2-Way interface, when an incoming message arrives on a shortcode (from mBlox), how can I extract the operator?

I'm successful at sending it out using the SMPPOption additional parameters and I see it comming in from the smsdebug.log:
11:41:30:112 [3] SMPPReceiveMessageCallback: inbound message: sender=18185555555, recip=28444, pid=0, dcs=0, msgFlags=0, udh=, msg=Usawire test, extraParms=SMPPOption_mblox_tariff=stdrt; SMPPOption_mblox_operator=31002; ServiceType=1019

But how can grab the "31002" number so that I can use it on outgoing messages.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 404
Registered: 08-2008
Posted on Wednesday, January 28, 2009 - 10:14 pm:   

Hi Raffi,

It will be appended to the 2-way command URL automatically, so you should see "&SMPPOption_mblox_tariff=stdrt&SMPPOption_mblox_operator=31002" at the end of the URL, and you can parse the values out of these variables.

Any SMPPOptions settings that are present are automatically appended to a 2-way command HTTP URL without requiring any modification to the command.

However, if you want the "ServiceType" value, you would need to modify your 2-way command to also include it in the command ... like this ... &ServiceType=@@SERVICETYPE@@ (You don't need to do this for the SMPPOptions settings, however.)

--
Des
NowSMS Support
Manny Pitta
New member
Username: Mannypitta

Post Number: 1
Registered: 05-2009
Posted on Wednesday, May 06, 2009 - 05:43 am:   

OK, so 2-way should automatically append the operator ID to a response message (mBlox case). However, I need to add the phone number along with the operator ID into a distribution list for sending messages at a later date. How can I access the operator ID of an incoming message to save with the phone number?

When I send a message to the numbers in that database, how do I submit the phone number/operator ID pairs to the gateway?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 745
Registered: 08-2008
Posted on Wednesday, May 06, 2009 - 06:59 pm:   

Hi Manny,

I should clarify ... 2-way does NOT automatically append the operator ID for the message response.

The only thing it does automatically is append the variables to the 2-way command URL so that they are passed to your application.

It is possible for NowSMS to automatically append these variables in a reply submission, however it requires a special configuration option. To enable this option, edit SMSGW.INI, and under the [SMSGW] header, add 2WayReplyCopySMPPOptions=Yes

If you need to save this information for later use, you need to maintain your own database within your application.

When your application receives a message, it will see the mBlox specific parameters added to the end of the 2-way command URL like this: "&SMPPOption_mblox_tariff=stdrt&SMPPOption_mblox_operator=31002"

To use this information later, you would need to save it in your own database. Then when you submit a message at a later point in time, include these same URL parameters in the URL submission that your application sends back to NowSMS.

--
Des
NowSMS Support