<p dir="ltr">I look at textos sources and seems that most of oparations made using memcpy. this C functions must work correctly with 0x00 symbol.</p>
<p dir="ltr">But there are functions which checks msg.len, so may be they cut this content?..</p>
<p dir="ltr">WBR.<br>
Sergey</p>
<div class="gmail_quote">10 февр. 2016 г. 16:58 пользователь "Daniel-Constantin Mierla" <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> написал:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">CC-ed Victor -- iirc, he was the author of the functions for multi-part<br>
body -- maybe he remembers the rules for these function, if they take<br>
0x0 as terminator or not.<br>
<br>
>From what I remember by heart, a normal body should work fine with<br>
non-printable characters -- there is easy to check if the content-length<br>
includes them or not.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 10/02/16 15:46, Sergey Basov wrote:<br>
> I am looking what is send to the network.<br>
> --<br>
> Best regards,<br>
> Sergey Basov                     e-mail: <a href="mailto:sergey.v.basov@gmail.com">sergey.v.basov@gmail.com</a><br>
><br>
> tel: <a href="tel:%28%2B38067%29%20403-62-54" value="+380674036254">(+38067) 403-62-54</a><br>
><br>
><br>
> 2016-02-10 16:43 GMT+02:00 Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>>:<br>
>> Hello,<br>
>><br>
>> On 10/02/16 15:26, Sergey Basov wrote:<br>
>>> Thank you for reply.<br>
>>><br>
>>> Yes i need to insert ISUP message<br>
>>> to update it later via sipt_set_calling($fU, 4, 0, 3); and<br>
>>> sipt_destination($rU, 31, 4);<br>
>>><br>
>>> I make some progress with<br>
>>> append_body_part("\x01\x10\x48\x00\x0a\x00","application/isup;<br>
>>> version=itu-t92+","signal; handling=optional");<br>
>>><br>
>>> but kamailio does not inserts \x00 into the body,<br>
>>> May be it thinks that string is terminating?<br>
>> are you looking to what is sent to the network? Or do you print the new<br>
>> message to syslog? Printing is typically stopping at 0x0.<br>
>><br>
>> Cheers,<br>
>> Daniel<br>
>><br>
>>> --<br>
>>> Best regards,<br>
>>> Sergey Basov                     e-mail: <a href="mailto:sergey.v.basov@gmail.com">sergey.v.basov@gmail.com</a><br>
>>><br>
>>> tel: <a href="tel:%28%2B38067%29%20403-62-54" value="+380674036254">(+38067) 403-62-54</a><br>
>>><br>
>>><br>
>>> 2016-02-10 15:17 GMT+02:00 Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>>:<br>
>>>> Hello,<br>
>>>><br>
>>>> On 10/02/16 12:35, Sergey Basov wrote:<br>
>>>>> Hi All.<br>
>>>>><br>
>>>>> I need to use SIP-I with my upstream to set A number as unknown.<br>
>>>>><br>
>>>>> I was read about adding incapsulation ISUP using<br>
>>>>><br>
>>>>> if(has_body("application/sdp"))<br>
>>>>> {<br>
>>>>>   set_body_multipart();<br>
>>>>>   msg_apply_changes()<br>
>>>>><br>
>>>>>   $var(acm) = "7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c";<br>
>>>>>   append_body_part("$var(acm)","application/isup;version=itu-t92+","signal;<br>
>>>>> handling=optional");<br>
>>>>>  msg_apply_changes()<br>
>>>>>   xlog("L_INFO", "ISUP Changes Applied Succesfully");<br>
>>>>> }<br>
>>>>><br>
>>>>> It is converts body to multipart and inserts ISUP<br>
>>>>><br>
>>>>> But it inserts is as text.<br>
>>>>><br>
>>>>> Is there any possibility to insert basic ISUP message to update it after using<br>
>>>>><br>
>>>>> sipt_destination($rU, 31, 4);<br>
>>>>> and<br>
>>>>><br>
>>>>> sipt_set_calling($fU, 4, 0, 3);<br>
>>>>><br>
>>>> not much into sip-t/sip-i, but I try to inderstand from kamailio and sip<br>
>>>> operations point of view. What do you mean by "Is there any possibility<br>
>>>> to insert basic ISUP message to update it after using ..."?<br>
>>>><br>
>>>> Do you want to insert first a value and then change it?<br>
>>>><br>
>>>> Cheers,<br>
>>>> Daniel<br>
>>>><br>
>>>> --<br>
>>>> Daniel-Constantin Mierla<br>
>>>> <a href="http://twitter.com/#!/miconda" rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">http://www.linkedin.com/in/miconda</a><br>
>>>> Book: SIP Routing With Kamailio - <a href="http://www.asipto.com" rel="noreferrer" target="_blank">http://www.asipto.com</a><br>
>>>> <a href="http://miconda.eu" rel="noreferrer" target="_blank">http://miconda.eu</a><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>>>> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>>>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
>> --<br>
>> Daniel-Constantin Mierla<br>
>> <a href="http://twitter.com/#!/miconda" rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">http://www.linkedin.com/in/miconda</a><br>
>> Book: SIP Routing With Kamailio - <a href="http://www.asipto.com" rel="noreferrer" target="_blank">http://www.asipto.com</a><br>
>> <a href="http://miconda.eu" rel="noreferrer" target="_blank">http://miconda.eu</a><br>
>><br>
<br>
--<br>
Daniel-Constantin Mierla<br>
<a href="http://twitter.com/#!/miconda" rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">http://www.linkedin.com/in/miconda</a><br>
Book: SIP Routing With Kamailio - <a href="http://www.asipto.com" rel="noreferrer" target="_blank">http://www.asipto.com</a><br>
<a href="http://miconda.eu" rel="noreferrer" target="_blank">http://miconda.eu</a><br>
<br>
</blockquote></div>