<div dir="ltr">Hello,<div><br></div><div>likely you do overlapping operations, see more details at:</div><div><br></div><div>  * <a href="https://www.kamailio.org/wiki/tutorials/faq/main#why_parts_of_fromto_header_app">https://www.kamailio.org/wiki/tutorials/faq/main#why_parts_of_fromto_header_app</a></div><div><br></div><div>Try to use mag_apply_changes() between header update operations.</div><div><br></div><div>Cheers,<br>Daniel</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 14, 2021 at 3:06 PM AL S <<a href="mailto:alirsm2@outlook.com">alirsm2@outlook.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Also, found in log:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:"Courier New",monospace">Jan 13 12:49:32 orl-ar-openser01 /usr/sbin/kamailio[1313]: NOTICE: <script>: request_route() -> <a href="http://72.31.12.137:5060" target="_blank">72.31.12.137:5060</a> sent INVITE From: sip:2053140346;isub=<a href="mailto:33343@72.31.12.137" target="_blank">33343@72.31.12.137</a> To: sip:16077751765@71.44.15.84:5060;user=phone
 with PAI: <a href="mailto:sip%3A2053140340@67.9.220.145" target="_blank">sip:2053140340@67.9.220.145</a> CID: SDr1ra601-881f71e7d022d9c4ae64dfccd6ff916c-8q7og02</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:"Courier New",monospace"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:"Courier New",monospace">Jan 13 12:49:32 orl-ar-openser01 /usr/sbin/kamailio[1316]: NOTICE: <script>: onreply_route() -> <a href="http://65.32.14.217:5060" target="_blank">65.32.14.217:5060</a> sent reply: 100 reason: Trying From: <a href="mailto:sip%3A2053140346@72.31.12.137" target="_blank">sip:2053140346@72.31.12.137</a>
</span><span style="font-family:"Courier New",monospace;background-color:rgb(255,255,0)">To: <null></span><span style="font-family:"Courier New",monospace"> for CID: SDr1ra601-881f71e7d022d9c4ae64dfccd6ff916c-8q7og02</span><br>
</div>
<div>
<div id="gmail-m_3992256513893293232appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_3992256513893293232divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>> on behalf of AL S <<a href="mailto:alirsm2@outlook.com" target="_blank">alirsm2@outlook.com</a>><br>
<b>Sent:</b> Thursday, January 14, 2021 8:57 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> [SR-Users] To header being malformatted.</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Calibri,sans-serif;font-size:14.6667px;font-weight:normal;display:inline">We noticed an issue with the way the Kamailio is handling certain messages being sent to them, specifically,
 the To header being relayed from Kamailio to the next hop is malformatted. </span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Any assistance is greatly appreciated<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
INVITE received by Kamailio:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">  Request: Invite</span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                        Request URI: sip:2053140346;isub=33343@72.31.12.137:5060;transport=udp</span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                               From: <<a href="mailto:sip%3A%2B13037819601@71.44.15.84" target="_blank">sip:+13037819601@71.44.15.84</a>;user=phone>;tag=gK00a85927</span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                                 To: <<a href="mailto:sip%3A%2B12053140346@72.31.12.137" target="_blank">sip:+12053140346@72.31.12.137</a>>;tag=SDnpoa601-1c711123926</span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                            Call-ID: SDnpoa601-f1bc387aa5a486c1dd943d1b53ae8e6a-8q7og02</span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                               CSeq: 860668 INVITE</span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                            Contact: <<a href="http://sip:+13037819601@107.14.122.29:5060" target="_blank">sip:+13037819601@107.14.122.29:5060</a>></span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                             SDP IP: 0.0.0.0</span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                           SDP Port: 43126</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline">INVITE forwarded by Kamailio:</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline"><span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline"> Request:
 Invite</span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                        Request URI: sip:2053140346;isub=33343@72.31.12.137:5060;transport=udp</span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                               From: <<a href="mailto:sip%3A%2B13037819601@71.44.15.84" target="_blank">sip:+13037819601@71.44.15.84</a>;user=phone>;tag=gK00a85927</span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                                 </span><span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(255,255,0);display:inline">To:
 <sip:+120531403Oh.lc".3/+0]1..31.12.137>;tag=SDnpoa601-1c711123926</span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                            Call-ID: SDnpoa601-f1bc387aa5a486c1dd943d1b53ae8e6a-8q7og02</span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                               CSeq: 860668 INVITE</span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                            Contact: <<a href="http://sip:+13037819601@107.14.122.29:5060" target="_blank">sip:+13037819601@107.14.122.29:5060</a>></span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                             SDP IP: 0.0.0.0</span><br style="font-family:monospace;font-size:11.7px;font-weight:normal">
<span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline">                           SDP Port: 43126</span><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline"><span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline"><br>
</span></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Another example in BYE:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
BYE <span style="background-color:rgb(255,255,255);display:inline">received by Kamailio:</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);font-family:"Courier New",monospace;display:inline">To: "WIRELESS CALLER" <<a href="mailto:sip%3A%2B18131111111@71.44.13.84" target="_blank">sip:+18131111111@71.44.13.84</a>>;tag=gK0a788ca6</span><span style="background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline">BYE forwarded by Kamailio:</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,0);font-family:"Courier New",monospace">To: "WIRELESS CALLER" <sip:+18131112222A.++.+,-94</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,0)"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline">Thanks.</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline">AL</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline"><span style="font-family:monospace;font-size:11.7px;font-weight:normal;background-color:rgb(233,233,233);display:inline"></span></span></div>
</div>
</div>
</div>

_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Daniel-Constantin Mierla - <a href="https://www.asipto.com" target="_blank">https://www.asipto.com</a></div><div><a href="https://twitter.com/miconda" target="_blank">https://twitter.com/miconda</a> - <a href="https://www.linkedin.com/in/miconda" target="_blank">https://www.linkedin.com/in/miconda</a></div><div>Kamailio Advanced Training - <a href="https://www.asipto.com/u/kat" target="_blank">https://www.asipto.com/u/kat</a></div></div></div></div></div></div></div>