<p>I think i have found the source of the problem; my request come from the caller is as follow:</p>
<p>Via: SIP/2.0/TCP 192.168.0.179:33857;branch=z9hG4bK.KpHCWZWuW;rport<br>
From: sip:edi-1@mydomain.com;tag=jS9zm-Q~G<br>
To: sip:<a href="mailto:edi-2001@mydomain.com">edi-2001@mydomain.com</a><br>
CSeq: 20 INVITE<br>
Call-ID: TAggUqcveg<br>
Max-Forwards: 70<br>
Route: sip:195.206.195.78:5062;transport=tcp;lr<br>
Supported: replaces, outbound<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE<br>
Content-Type: application/sdp<br>
Content-Length: 258<br>
Contact: sip:edi-1@218.118.243.20:54126;transport=tcp;+sip.instance="urn:uuid:dc62b3bd-0e31-41c1-a688-3f9b3cbbd170"<br>
User-Agent: LinphoneAndroid/3.2.7 (belle-sip/1.6.1)</p>
<p>in my script; i make a call to:</p>
<p>if (remove_hf("Contact")) {<br>
append_hf("Contact: sip:$tU@10.42.0.11:5060;transport=TCP\r\n", "Call-ID");<br>
}</p>
<p>so, i think it replaces badly the header "Contact"</p>
<p>Record-Route: sip:10.42.0.11;transport=tcp;lr=on;ftag=jS9zm-Q~G;nat=yes<br>
Via: SIP/2.0/TCP 195.206.195.78:5062;branch=z9hG4bK1d4.1ff4886829747640d9da5b5cc1ea0713.0;i=3<br>
Via: SIP/2.0/TCP 192.168.0.179:33857;received=218.118.243.20;branch=z9hG4bK.KpHCWZWuW;rport=54126<br>
From: sip:edi-1@mydomain.com;tag=jS9zm-Q~G<br>
To: sip:<a href="mailto:edi-2001@mydomain.com">edi-2001@mydomain.com</a><br>
CSeq: 20 INVITE<br>
Call-ID: TAggUqcveg<br>
Contact: sip:edi-2001@10.42.0.11:5060;transport=TCP<br>
Max-Forwards: 69<br>
Supported: replaces, outbound<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE<br>
Content-Type: application/sdp<br>
Content-Length: 334<br>
sip:edi-1@218.118.243.20:54126;transport=tcpUser-Agent: LinphoneAndroid/3.2.7 (belle-sip/1.6.1)<br>
Path: sip:195.206.195.78:5062;transport=tcp;lr;received=sip:218.118.243.20:54126%3Btransport%3Dtcp</p>
<p>can you advice Please?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1257#issuecomment-334138755">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZQyWVQsO1a2-ntj636W4ALY-kZMVks5so3l_gaJpZM4Povjo">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZWH4mEHeMQnv3rwurguYk_ZyrbtPks5so3l_gaJpZM4Povjo.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1257#issuecomment-334138755"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@defeden in #1257: I think i have found the source of the problem; my request come from the caller is as follow:\r\n\r\nVia: SIP/2.0/TCP 192.168.0.179:33857;branch=z9hG4bK.KpHCWZWuW;rport\r\nFrom: \u003csip:edi-1@mydomain.com\u003e;tag=jS9zm-Q~G\r\nTo: sip:edi-2001@mydomain.com\r\nCSeq: 20 INVITE\r\nCall-ID: TAggUqcveg\r\nMax-Forwards: 70\r\nRoute: \u003csip:195.206.195.78:5062;transport=tcp;lr\u003e\r\nSupported: replaces, outbound\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE\r\nContent-Type: application/sdp\r\nContent-Length: 258\r\nContact: \u003csip:edi-1@218.118.243.20:54126;transport=tcp\u003e;+sip.instance=\"\u003curn:uuid:dc62b3bd-0e31-41c1-a688-3f9b3cbbd170\u003e\"\r\nUser-Agent: LinphoneAndroid/3.2.7 (belle-sip/1.6.1)\r\n\r\n\r\nin my script; i make a call to:\r\n\r\n\r\n\r\nif (remove_hf(\"Contact\")) {\r\n\tappend_hf(\"Contact: \u003csip:$tU@10.42.0.11:5060;transport=TCP\u003e\\r\\n\", \"Call-ID\");\r\n}\r\n\r\n\r\nso, i think it replaces badly the header \"Contact\"\r\n\r\n\r\n\r\n\r\nRecord-Route: \u003csip:10.42.0.11;transport=tcp;lr=on;ftag=jS9zm-Q~G;nat=yes\u003e\r\nVia: SIP/2.0/TCP 195.206.195.78:5062;branch=z9hG4bK1d4.1ff4886829747640d9da5b5cc1ea0713.0;i=3\r\nVia: SIP/2.0/TCP 192.168.0.179:33857;received=218.118.243.20;branch=z9hG4bK.KpHCWZWuW;rport=54126\r\nFrom: \u003csip:edi-1@mydomain.com\u003e;tag=jS9zm-Q~G\r\nTo: sip:edi-2001@mydomain.com\r\nCSeq: 20 INVITE\r\nCall-ID: TAggUqcveg\r\nContact: \u003csip:edi-2001@10.42.0.11:5060;transport=TCP\u003e\r\nMax-Forwards: 69\r\nSupported: replaces, outbound\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE\r\nContent-Type: application/sdp\r\nContent-Length: 334\r\nsip:edi-1@218.118.243.20:54126;transport=tcpUser-Agent: LinphoneAndroid/3.2.7 (belle-sip/1.6.1)\r\nPath: \u003csip:195.206.195.78:5062;transport=tcp;lr;received=sip:218.118.243.20:54126%3Btransport%3Dtcp\u003e\r\n\r\n\r\ncan you advice Please?\r\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1257#issuecomment-334138755"}}}</script>