Link_id on SMPP | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through July 28, 2014 ⬆ |
◄ ► |
Author | Message | |||
bara New member Username: Bara9181 Post Number: 1 Registered: 02-2014 |
how i can get value of "link_id" the will post from our operator on nowsms ? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4828 Registered: 08-2008 |
Hi, There is no standard SMPP parameter called link_id. However, SMPP allows providers to define their own parameters, known as TLV parameters. In order to work with this parameter, you will need to find out the "tag number" and format (string, integer, binary, number of bytes, etc.). NowSMS refers to TLV parameters as SMPPOptions. Here is a writeup for how it works: http://www.nowsms.com/smpp-tlv If I can clarify any points, please reply back. It is very important to get the tag number and format, because without that you do not know how the parameter is encoded. -- Des NowSMS Support | |||
bara New member Username: Bara9181 Post Number: 2 Registered: 02-2014 |
Hi, the tag details as below : Type :integer Size octets : 2 Description :0x400D | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4830 Registered: 08-2008 |
Ok, what you want to do is edit the NowSMS SMSGW.INI and add the following: [SMPPOptions] link_id=40D,Integer,2 This tells NowSMS how to interpret the parameter. If NowSMS receives an SMS from the provider via SMPP which includes this parameter, accounting callbacks and 2-way commands will automatically have this parameter added to the HTTP request as &SMPPOption_link_id=xxxxx (xxxxx is the value of the parameter that was parsed from the message). When submitting a message to NowSMS via HTTP, this same &SMPPOption_link_id=xxxxx can be used to specify that the TLV parameter should be included when submitting the message to the SMPP provider. Here are some other common scenarios for these types of parameters ... To Always Include Parameter With A Default Value If you want to automatically include a TLV parameter in every message without requiring it to be explicitly set for each message submission, it is possible to configure NowSMS to use a default value for this parameter when submitting messages to your SMPP connection. To define a default value for this parameter, manually edit the SMSGW.INI, and in the section header for an SMPP connection (e.g., [SMPP - ip.address:port]), add a “DefaultSMPPOptions=” setting, where the value of this setting can contain any of the “SMPPOptions” settings. For example: DefaultSMPPOptions=link_id=2 (If you have multiple SMPPOptions parameters defined that need to be set as default, separate them with a “;”. For example: DefaultSMPPOptions=link_id=2;otherparm=othervalue) To Include TLV Parameter In 2-Way SMS Reply Another common requirement for some TLV parameter is that when generating an automatic reply to a message, the value of the TLV parameter in the received message must be copied over to the new reply message. If you are using 2-way SMS to send replies to incoming messages (“Command returns response text” is checked for the 2-way command), add 2WayReplyCopySMPPOptions=link_id to the [SMSGW] section of SMSGW.INI. This setting tells NowSMS that if it is processing a 2-way command reply, it should automatically copy the request_id TLV parameter from the source message to the reply. | |||
bara New member Username: Bara9181 Post Number: 3 Registered: 02-2014 |
Hi, does this option support nowsms v2006.10.31 , and does i must check the option in SMPP Connetion : use TLV parameters for port numbers and segmentation | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 8082 Registered: 10-2002 |
Hi, We can't support 7+ year old product very effectively. From what I can remember, base functionality should be there ... but I don't think DefaultSMPPOptions or 2WayReplyCopyOptions settings were present. The setting "use TLV parameters for port numbers and segmentation" is not required. -bn Bryce Norwood Now SMS/MMS Support | |||
bara New member Username: Bara9181 Post Number: 4 Registered: 02-2014 |
Hi, what the parameter that i must but on &SMPPOption_link_id=???? when i declare it on 2way of NowSMS , for example to get the Message i add @@FULLSMS@@ | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4863 Registered: 08-2008 |
Hi, If a TLV parameter is defined in the [SMPPOptions] section and a received message includes the parameter, then the &SMPPOption_ value is automatically added to the 2-way command. It is not necessary to add it to the command that is configured, If it is missing, I would suggest using Wireshark to look at the SMPP data and see whether or not you are actually receiving the parameter in the message. If it is present in the SMPP data, but NowSMS is not adding it, we need to look at the SMPP data and SMSGW.INI to verify the SMPPOptions definition is in the correct format. -- Des NowSMS Support | |||
bara New member Username: Bara9181 Post Number: 5 Registered: 02-2014 |
hi, if i defined parameter name link_id in SMSGW.INI AS below: [SMPPOptions] link_id=40D,Integer,2 and i need to request this parameter in third part web interface so i can send replay with this parameter , how i can defined it in the 2way so i can request it? http://localhost/sms/default.aspx?PhoneNumber=@@SENDER@@&shortcode=@@RECIP@@&tex t=@@FULLSMS@@&&SMPPOption_link_id=??? ??? : what it will contain | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4864 Registered: 08-2008 |
Leave the 2-way command like this: http://localhost/sms/default.aspx?PhoneNumber=@@SENDER@@&shortcode=@@RECIP@@&tex t=@@FULLSMS@@ If link_id is present in the inbound message, &SMPPOption_link_id=??? Will be added automatically. | |||
bara New member Username: Bara9181 Post Number: 7 Registered: 02-2014 |
Hi, Kindly i have made test with our operator and i can't receive the option paramter when they send it plz check the attach | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4878 Registered: 08-2008 |
Hi, I'm sorry. It appears that I misread your earlier message. The tag number is 400D ... but I read it as 40D. Everywhere that I referenced 40D, this should have been 400D. SMSGW.INI should have the following: [SMPPOptions] link_id=400D,Integer,2 -- Des NowSMS Support | |||
storm New member Username: Bara9181 Post Number: 8 Registered: 02-2014 |
Hi, Kindly i modify the SMPPOptions , and nowsms add the &SMPPOption_link_id= to the 2way but with out value i receive it as empty | |||
storm New member Username: Bara9181 Post Number: 9 Registered: 02-2014 |
Hi, Find below the optional parameter details | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4882 Registered: 08-2008 |
Do not add &SMPPOption_link_id= to the 2-way command in the configuration. It will be added automatically when the command is processed. So if you have added it to the command, remove it, asp this will result in an empty variable. If this still does not work, enable the SMSDEBUG.LOG ... let another message be received. Then email the SMSDEBUG.LOG file to nowsms@nowsms.com with Attention: Des in the subject line of the message. Post a reply here also to let me know you have emailed a file. -- Des NowSMS Support | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4883 Registered: 08-2008 |
Another misinterpretation on my part. Your packet trace and instructions from the provider clearly indicate that this is a string parameter, not an integer. These should be the correct SMSGW.INI settings: [SMPPOptions] link_id=400D,String |