[SR-Users] SIPT append_body_part \x00 how to?..

Sergey Basov sergey.v.basov at gmail.com
Wed Apr 4 16:19:54 CEST 2018


Hi All.

Does nobody have any idea how to avoid this?

Thank you.

--
Best regards,
Sergey Basov                     e-mail: sergey.v.basov at gmail.com

2018-04-03 17:07 GMT+03:00 Sergey Basov <sergey.v.basov at gmail.com>:

> Hi All!
>
> I have some troubles with encoding hex string to use as ISUP part.
>
> I have next line:
>
> 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");
>
> Problem is in the *\x00 *kamailio reads this string till first \x00
>
> May be there is some workaround?
>
> Currently I have added some C code into SIPT module to change values in
> this pisitions first to 00 then make other changes.
>
> My current input string is
> 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");
>
> I first make replacement \x01 to \x00 while executing sipt_destination
>
> May be there is better solution?
>
> Thank you.
> --
> Best regards,
> Sergey Basov                     e-mail: sergey.v.basov at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180404/47c4b5a9/attachment.html>


More information about the sr-users mailing list