Hello,
I haven't looked at the source code, but it looks like it needs some options to make it work with zero characters.
Why you had to do changes inside sipt module and not inside append_body_part()?
Are you doing msg_apply_changes before use of sipt_destination()?
Cheers,
Daniel
Thank you.Hi All.Does nobody have any idea how to avoid this?
2018-04-03 17:07 GMT+03:00 Sergey Basov <sergey.v.basov@gmail.com>:
Thank you.May be there is better solution?I first make replacement \x01 to \x00 while executing sipt_destinationMy current input string isCurrently I have added some C code into SIPT module to change values in this pisitions first to 00 then make other changes.May be there is some workaround?Problem is in the \x00 kamailio reads this string till first \x00I have next line:Hi All!I have some troubles with encoding hex string to use as ISUP part.
append_body_part("\x01\x10\x48\x00 \x0a\x00\x02\x09\x07\x03\x90\x90\x13\x71\x32\x20\x0a\ x04\x02\x13\x73\x12\x00"," application/isup;version=itu- t92+","signal;handling= optional");
append_body_part("\x01\x10\x48\x01 \x0a\x01\x02\x09\x07\x03\x90\x90\x13\x71\x32\x20\x0a\ x04\x02\x13\x73\x12\x01"," application/isup;version=itu- t92+","signal;handling= optional");
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - April 16-18, 2018, Berlin - www.asipto.com Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com