CC-ed Victor -- iirc, he was the author of the functions for multi-part
body -- maybe he remembers the rules for these function, if they take
0x0 as terminator or not.
From what I remember by heart, a normal body should work fine with
non-printable characters -- there is easy to check if the content-length
includes them or not.
Cheers,
Daniel
On 10/02/16 15:46, Sergey Basov wrote:
I am looking what is send to the network.
--
Best regards,
Sergey Basov e-mail: sergey.v.basov(a)gmail.com
tel: (+38067) 403-62-54
2016-02-10 16:43 GMT+02:00 Daniel-Constantin Mierla <miconda(a)gmail.com>om>:
> Hello,
>
> On 10/02/16 15:26, Sergey Basov wrote:
>> Thank you for reply.
>>
>> Yes i need to insert ISUP message
>> to update it later via sipt_set_calling($fU, 4, 0, 3); and
>> sipt_destination($rU, 31, 4);
>>
>> I make some progress with
>> append_body_part("\x01\x10\x48\x00\x0a\x00","application/isup;
>> version=itu-t92+","signal; handling=optional");
>>
>> but kamailio does not inserts \x00 into the body,
>> May be it thinks that string is terminating?
> are you looking to what is sent to the network? Or do you print the new
> message to syslog? Printing is typically stopping at 0x0.
>
> Cheers,
> Daniel
>
>> --
>> Best regards,
>> Sergey Basov e-mail: sergey.v.basov(a)gmail.com
>>
>> tel: (+38067) 403-62-54
>>
>>
>> 2016-02-10 15:17 GMT+02:00 Daniel-Constantin Mierla
>> <miconda(a)gmail.com>om>:
>>> Hello,
>>>
>>> On 10/02/16 12:35, Sergey Basov wrote:
>>>> Hi All.
>>>>
>>>> I need to use SIP-I with my upstream to set A number as unknown.
>>>>
>>>> I was read about adding incapsulation ISUP using
>>>>
>>>> if(has_body("application/sdp"))
>>>> {
>>>> set_body_multipart();
>>>> msg_apply_changes()
>>>>
>>>> $var(acm) = "7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c";
>>>>
>>>>
append_body_part("$var(acm)","application/isup;version=itu-t92+","signal;
>>>> handling=optional");
>>>> msg_apply_changes()
>>>> xlog("L_INFO", "ISUP Changes Applied
Succesfully");
>>>> }
>>>>
>>>> It is converts body to multipart and inserts ISUP
>>>>
>>>> But it inserts is as text.
>>>>
>>>> Is there any possibility to insert basic ISUP message to update it
>>>> after using
>>>>
>>>> sipt_destination($rU, 31, 4);
>>>> and
>>>>
>>>> sipt_set_calling($fU, 4, 0, 3);
>>>>
>>> not much into sip-t/sip-i, but I try to inderstand from kamailio and
>>> sip
>>> operations point of view. What do you mean by "Is there any
>>> possibility
>>> to insert basic ISUP message to update it after using ..."?
>>>
>>> Do you want to insert first a value and then change it?
>>>
>>> Cheers,
>>> Daniel
>>>
>>> --
>>> Daniel-Constantin Mierla
>>>
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
>>> Book: SIP Routing With Kamailio -
http://www.asipto.com
>>>
http://miconda.eu
>>>
>>>
>>> _______________________________________________
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
>>> list
>>> sr-users(a)lists.sip-router.org
>>>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> --
> Daniel-Constantin Mierla
>
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
> Book: SIP Routing With Kamailio -
http://www.asipto.com
>
http://miconda.eu
>