Can SMPPOption value be dynamic? | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through August 22, 2012 ⬆ |
◄ ► |
Author | Message | |||
marcia piccione New member Username: Mpiccione Post Number: 6 Registered: 01-2012 |
This may have posted already but I can't find it on the forum. Is there a way to set an SMPP option dynamically before sending the request? My understanding was that the option could be set by the application and that NowSms would simply pass the parameter thru to the provider (in this case, openmarket). However, it looks like the SMPPOption needs to be set statically in the ini file? This won't work in our case because the option can take on many values. (carrier_id). Also, the accounting callbacks won't work, as far as my understanding goes, because you can only replace the values of certain parameters, carrier id not being one of them. I need a solution to push carrier id to openmarket. Is there one? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4012 Registered: 08-2008 |
Hi Marcia, INI file settings can be used for specifying a default parameter value, but the normal way of setting an SMPPOption parameter value is via URL parameters when submitting a message (&SMPPOption_Parameter_Name=Value). There are a few articles here that might help: http://www.nowsms.com/tag/smppoptions -- Des NowSMS Support | |||
marcia piccione New member Username: Mpiccione Post Number: 7 Registered: 01-2012 |
Thanks for the response. The confusion I have, then, is carrier_id seems to be ignored. Here is my test request (request is http, but the request to the provider is smpp... do smppoptions only apply in the case of client smpp requests?): http://localhost:8800/?PhoneNumber=19194804942&Sender=10958&SMPPOption_carrier_i d=111... Here is my INI setting: [SMPPOptions] carrier_id=0,String I AM seeing &SMPPOption_carrier_id=111 as part of the request in the SMSDebug log. However, according to SMSOut logs, carrier id is not being sent to openmarket. I do not see carrier_id anywhere in that log. Therefore, even if I put in a bad carrier id, the text is getting delivered. Openmarket should be sending back an error. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4014 Registered: 08-2008 |
Hi Marcia, I'm pretty sure that SMPP Option values are not reported in the logs. You would only see it in the actual SMPP packet. If you want to verify that the value is set correctly, either post a packet from SMPPDEBUG.LOG and I will check it manually ... or use Wireshark to intercept and decode the SMPP packet. That said ... are you sure the correct tag value for carrier_id on OpenMarket is 0? That doesn't sound right. I did some searching and found an OpenMarket manual that defines their parameters. This is the setting you should be using: [SMPPOptions] carrier_id=2150,Integer,2 I think where you are confused is that the default value for this parameter is 0. If you wanted to set a default value for this parameter when NowSMS submits a message, then you would add this setting to the [SMPP - server:port] section: DefaultSMPPOptions=carrier_id=0 What you need to tell NowSMS is what the tag number is for this parameter. It is 0x2150 according to OpenMarket documentation, and defined as a 2 octet integer value. For the sake of completeness, here are SMPPOptions settings for other OpenMarket specific parameters: [SMPPOptions] carrier_id=2150,Integer,2 charge_type=2151,Integer,1 charge_amount=2152,Integer,2 -- Des NowSMS Support | |||
marcia piccione New member Username: Mpiccione Post Number: 8 Registered: 01-2012 |
Yep, I was wrong about the default value. I can now see openmarket is not doing the carrier lookup if I send the correct carrier_id. Thank you!!! |