Hi,

yes, the format is OK. I'm not sure whether the value of HTTP header should
be url-encoded?

If it doesn't work post the whole debug log (smsbox + bearerbox).

Kyriacos Sakkas wrote:

> Hi,
>     Anybody has some extra info on how to us with post?
> (X-Kannel-Meta-Data). I am trying but not able it seems to get the
> proper format.
> Would this be considered ok?
> X-Kannel-Meta-Data: ?smpp?mytag=12
> Definition is:
> group = smpp-tlv
> name = mytag
> tag = 0x1521
> type = octetstring
> length = 32
> 
> 
> Thanks,
> Kyriacos
> 
> Alexander Malysh wrote:
>> 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


Reply via email to