Ok, I tell you what I have found: I don't need any special dlr parameter, I need only the old and well known '%A' parameter.
In that, we have: ACK if all is ok, and NACK/NNNN/MESSAGE if any is wrong. See you, -- Manuel Fernando Aller 2008/12/10 Manuel Fernando Aller <[email protected]>: > Marcelo Aguila wrote: >> Many thanks for the help. >> >> Finally, after some tries, the configuration that worked for me was: >> group=smpp-tlv >> name=MAS_APP_ID >> tag=0x1401 >> type=nulterminated >> length=2 >> >> group=smpp-tlv >> name=MAS_SVC_ID >> tag=0x1402 >> type=nulterminated >> length=2 >> >> group=smpp-tlv >> name=MAS_CONT_ID >> tag=0x1403 >> type=nulterminated >> length=1 >> >> group=smpp-tlv >> name=MAS_CONT_DESC >> tag=0x1404 >> type=nulterminated >> length=4 >> >> and to send the SMS MT: >> url = "http://xxxxxx" ..... "&meta-data=" . >> urlencode("?smpp?MAS_APP_ID=53&MAS_SVC_ID=13&MAS_CONT_ID=1&MAS_CONT_DESC=Info"); >> >> with other types (like octetstring) and sizes the values were sended >> without the last \00 character and sms mts were rejected by smsc. >> I hope this help to other people with this same issue. >> >> Regards, >> M >> > > Marcelo, I can see the point, but when I send a sms to the operator, and > this implies a charge, the value of 'command_status' retrieved by Kannel > is usefull to known if the charge was applied or not, and the reason why > is not applied. > > Can you tell me how are you receiving that value? Are you using a > special dlr parameter or something? > > thanks, > > -- > Manuel Fernando Aller > > >> On Tuesday 18 November 2008 09:27:31 Alejandro Guerrieri wrote: >> >>> Marcelo, >>> >>> The meta-data patch has been improved since then and now it has a branch on >>> CVS. You should checkout by running the command: >>> >>> cvs co -r meta-data gateway >>> >>> I've put a copy of Kannel's userguide with the meta-data documentation here: >>> >>> http://www.kannel.org/~aguerrieri/Kannel_meta-data_docs/ >>> >>> Regards, >>> >>> Alejandro Guerrieri >>> >>> On Tue, Nov 18, 2008 at 5:06 AM, Marcelo Aguila <[email protected]> wrote: >>> >>> >>>> Hello. >>>> >>>> I've been reading some threads of this issue and I applied the patch >>>> mentioned in >>>> http://www.kannel.org/pipermail/devel/2007-August/001156.html >>>> >>>> But, I don't understand how to use meta-data. >>>> >>>> My conf file sais: >>>> >>>> >>>> group = smpp-tlv >>>> name=MAS_APP_ID >>>> tag=0x1401 >>>> type=octetstring >>>> length=1 >>>> name=MAS_SVC_ID >>>> tag=0x1402 >>>> type=octetstring >>>> length=1 >>>> name=MAS_CONF_ID >>>> tag=0x1403 >>>> type=octetstring >>>> length=1 >>>> name=MAS_CONT_DESC >>>> tag=0x1404 >>>> type=octetstring >>>> length=4 >>>> >>>> Because operator gave me this values: >>>> MAS_APP_ID: 53 >>>> MAS_SVC_ID: 13 >>>> MAS_CONT_ID: 1 >>>> MAS_CONT_DESC: Info >>>> >>>> This values are used to the billing process in the MT message. >>>> >>>> So, my doubt is if this is the way to create the url with meta-data value >>>> to send sms mt: >>>> $md = >>>> urlencode("?smpp?MAS_APP_ID=53&MAS_SVC_ID=13&MAS_CONT_ID=1&MAS_CONT_DESC=Info"); >>>> $url = "http://localhost:4000/cgi-bin/sendsms?username=...&meta-data=$md"; >>>> >>>> Because, sms mts are deliverd to the phone, but no charges are made ... >>>> >>>> Regards, >>>> m >>>> >>>> >>>>
