Hello all, as promised I rebased my SMPP TLV patch and post is here for review. Please anybody if possible, write a userguide because I don't have time to do it and without userguide this patch will not get into mainline.
Short description... In the config group = smpp-tlv name = some-name tag = 0x1601 type = integer|nulterminated|octetstring length = 4 In the msg struct I added meta_data field that can contain any parameters not only for smpp. meta_data is formated as follows: meta_data = ?group?key=value&key1=value1?smpp?some-name=ABC then SMPP module just set all TLVs that can be found in the smpp group of meta_data. With this approach it's possible to use this generic interface to put some extra functionality into any SMSC module. Example sendsms url: lynx -source -dump 'http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&to=123&from=456&text=text&meta-data=%3Fsmpp%3Fsome-name%3D123' Example MO url: http://localhost:123/bla/...&meta-data=%D&... or with Post: X-Kannel-Meta-Data or with xml: <meta-data>xxxxx</meta-data> Please test it and let me know how it works. P.S. I don't like how smpp_pdu_init and smpp_pdu_shutdown functions called. They called from bb_smscconn.c but I have not found a better place to call these. This may change in future ;) -- Thanks, Alex
smpp-tlv.patch.gz
Description: GNU Zip compressed data
