Add SMPPOptions in SMS .req file

Add SMPPOptions in SMS .req file SearchSearch
Author Message
Arefin Bhuiyan
New member
Username: Arefin00

Post Number: 4
Registered: 11-2017
Posted on Tuesday, January 30, 2018 - 01:13 pm:   

I Need to send send SMS where I have to add different different SMPPOptions. If I set the smppoptions in SMSGW.ini file then my sms is sending easily. Here is my SMSGW.ini file config

[SMPP - 000.000.000.0:00000]
DefaultSMPPOptions=PRICEPOINT=00081b0d;PRODUCT=0000057d;PARTNER_ROLE_ID=000000E5
RouteName=myRouter
SMPPVersion=v3.4
UserName=u12
Password=pass
SenderAddress=12345
SenderAddressOverride=Yes
Receive=No
ReceiveMMS=No
UseSSL=No
LongSMSAlt=Yes
UseTLV=Yes
[SMPPOptions]
PRICEPOINT=1400,HexString
PRODUCT=1401,HexString
PARTNER_ROLE_ID=1402,HexString

But as my Pricepoint and Product may change depends on business logic so I need to provide Pricepoint and ProductId with my sms. Now I am sending my sms like below, which is not sending.


[SMS]
DefaultSMPPOptions=PRICEPOINT=00081b0d;PRODUCT=0000057d;PARTNER_ROLE_ID=000000E5
SubmittedBy=127.0.0.1
PhoneNumber=123456789
Sender=12345
Data=Hello MT Test
pid=00
dcs=00
Binary=0

Can anyone let me know how I can provide this "DefaultSMPPOptions=PRICEPOINT=00081b0d;PRODUCT=0000057d;PARTNER_ROLE_ID=000000E 5" information during sending the sms.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 8264
Registered: 10-2002
Posted on Wednesday, January 31, 2018 - 05:28 pm:   

Hi,

If submitting via HTTP, you would set the parameters in the URL line this:

?PhoneNumber=123456789&Sender=12345&Text=Hello+MT+Test&SMPPOption_PRICEPOINT=000 81b0d&SMPPOption_PRODUCT=0000057d&SMPPOption_PARTNER_ROLE_ID=000000E5

(Remove any blank spaces in the above, as the web forum likes to insert blank spaces into long strings)

I am not 100% certain about the REQ file syntax, but I think it would be this:

SMPPOptions=PRICEPOINT=00081b0d;PRODUCT=0000057d;PARTNER_ROLE_ID=000000E5

-bn

Bryce Norwood
Now SMS/MMS Support