<div dir="ltr">I see the Bye has a route for <a href="http://sip:700@54.204.19.238:5060">sip:700@54.204.19.238:5060</a>. <div><br></div><div><a href="http://54.204.19.238:5060">54.204.19.238:5060</a> has to be your opensips server. You probably need an alias for this IP.<br>
</div><div><br></div><div>This is only my guess. In situations like this you always need to look at your via, record-route and route headers, plus the source IPs. This is how things are routed in SIP.</div><div><br></div>
<div>Here is a good reference: <a href="http://www.in2eps.com/fo-sip/tk-fo-sip-ex3261.html">http://www.in2eps.com/fo-sip/tk-fo-sip-ex3261.html</a></div><div><br></div><div>Regards,</div><div>Ali Pey</div><div><br></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 20, 2013 at 1:23 PM, Zoho Junk <span dir="ltr">&lt;<a href="mailto:mm@mmilburn.com" target="_blank">mm@mmilburn.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u><div><div style="font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif"><div><div style="font-size:10pt;font-family:verdana,arial,helvetica,sans-serif">Greetings,<br><br>I have OpenSips installed on an Amazon EC2 with an elastic IP (54.242.85.140). All non REGISTER methods are passed through rewritehostport(&quot;<a href="http://mytwiliodomain.sip.twilio.com" target="_blank">mytwiliodomain.sip.twilio.com</a>&quot;) to another SIP proxy.<br>
<br>Everything is working except when BYE is sent from a callee that is registered to my OpenSips server. The caller never receives the BYE.<br>I&#39;ve changed my config file at least 100 times and still have no success. Please let me know if I need to include anything from my config.<br>
<br><u><b>My First Invite:</b></u><br><br><br><b>U 2013/12/20 12:44:21.298060 <a href="http://107.21.231.147:5060" target="_blank">107.21.231.147:5060</a> -&gt; <a href="http://10.167.11.171:5060" target="_blank">10.167.11.171:5060</a><br>
INVITE sip:<a href="mailto:700@sip.opensipsserver.com" target="_blank">700@sip.opensipsserver.com</a> SIP/2.0.<br>Record-Route: &lt;sip:107.21.231.147:5060;lr;ftag=31945052_6772d868_3b1eb7f5-c41b-4da5-9a97-c756d7cd8fe3&gt;.<br>
From: &quot;<a href="tel:17175554895" value="+17175554895" target="_blank">17175554895</a>&quot; &lt;sip:<a href="mailto:17175554895@sip.twilio.com" target="_blank">17175554895@sip.twilio.com</a>&gt;;tag=31945052_6772d868_3b1eb7f5-c41b-4da5-9a97-c756d7cd8fe3.<br>
To: &lt;sip:<a href="mailto:700@sip.opensipsserver.com" target="_blank">700@sip.opensipsserver.com</a>&gt;.<br>CSeq: 102 INVITE.<br>Max-Forwards: 68.<br>Date: Fri, 20 Dec 2013 17:42:59 GMT.<br>Call-ID: <a href="mailto:6fa66f8ea2ce4b2dae83149f8b34b2e2@0.0.0.0" target="_blank">6fa66f8ea2ce4b2dae83149f8b34b2e2@0.0.0.0</a>.<br>
Contact: &quot;<a href="tel:17175554895" value="+17175554895" target="_blank">17175554895</a>&quot; &lt;sip:<a href="tel:17175554895" value="+17175554895" target="_blank">17175554895</a>@10.70.227.82:5060;transport=udp&gt;.<br>
Allow: INVITE,ACK,CANCEL,OPTIONS,BYE.<br>User-Agent: Twilio Gateway.<br>X-Twilio-ApiVersion: 2010-04-01.<br>X-Twilio-AccountSid: AC7ae5d84004d4269fgfhfhfjghgjghgbb.<br>Content-Type: application/sdp.<br>X-Twilio-CallSid: CA79e7a3c2c1c418af0777467467474747.<br>
Via: SIP/2.0/UDP 107.21.231.147:5060;branch=z9hG4bKaeaf.02902511.0.<br>Via: SIP/2.0/UDP 10.70.227.82:5060;branch=z9hG4bK3b1eb7f5-c41b-4da5-9a97-c756d7cd8fe3_6772d868_425297635397116.<br>Content-Length: 251.<br>.<br>v=0.<br>
o=- 1274389856 1274389856 IN IP4 54.196.144.208.<br>s=session.<br>c=IN IP4 54.196.144.208.<br>t=0 0.<br>m=audio 18800 RTP/AVP 0 101.<br>a=rtpmap:0 PCMU/8000.<br>a=rtpmap:101 telephone-event/8000.<br>a=fmtp:101 0-16.<br>a=silenceSupp:off - - - -.<br>
a=ptime:20.<br>a=sendrecv.</b><br><br><u><b>My First Bye:</b></u><br><br><b>U 2013/12/20 12:44:24.194615 <a href="http://74.106.255.63:5907" target="_blank">74.106.255.63:5907</a> -&gt; <a href="http://10.167.11.171:5060" target="_blank">10.167.11.171:5060</a><br>
BYE sip:<a href="tel:17175554895" value="+17175554895" target="_blank">17175554895</a>@107.21.231.147:5060;transport=udp;nat=yes SIP/2.0.<br>Via: SIP/2.0/UDP 74.106.255.63:5907;branch=z9hG4bK-41214dcd.<br>From: &lt;sip:<a href="mailto:700@sip.opensipsserver.com" target="_blank">700@sip.opensipsserver.com</a>&gt;;tag=5ed7c43daadb6f7fi0.<br>
To: &quot;<a href="tel:17175554895" value="+17175554895" target="_blank">17175554895</a>&quot; &lt;sip:<a href="mailto:17175554895@sip.twilio.com" target="_blank">17175554895@sip.twilio.com</a>&gt;;tag=31945052_6772d868_3b1eb7f5-c41b-4da5-9a97-c756d7cd8fe3.<br>
Call-ID: </b><b><b>6fa66f8ea2ce4b2dae83149f8b34b2e2</b>@<a href="http://0.0.0.0" target="_blank">0.0.0.0</a>.<br>CSeq: 101 BYE.<br>Max-Forwards: 70.<br>Route:  &lt;sip:700@54.204.19.238:5060;lr54.204.19.238;did=b1c.e6603363&gt;,  &lt;sip:107.21.231.147:5060;lr;ftag=31945052_6772d868_3b1eb7f5-c41b-4da5-9a97-c756d7cd8fe3&gt;.<br>
User-Agent: Linksys/SPA942-6.1.3(a).<br>Content-Length: 0.</b><br><br><b>My Debug Log:</b><br><a href="http://pastebin.com/0pAAZ68J" target="_blank">http://pastebin.com/0pAAZ68J</a><br><br><b>NGrep:<br></b><a href="http://pastebin.com/TVYUmM58" target="_blank">http://pastebin.com/TVYUmM58</a><br>
</div></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>