<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Apr 1, 2015 at 9:08 AM, Trey Hilyard <span dir="ltr"><<a href="mailto:kctrey@gmail.com" target="_blank">kctrey@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hello - <div><br></div><div>I am trying to decide if I have stumbled across a bug in PJSIP or I am just missing something. My Asterisk has two interfaces, an "internal" eth0 and an "external" eth1. In pjsip.conf, I define the following transports:</div><div><br></div><div><div>[trusted]</div><div>type=transport</div><div>protocol=udp</div><div>bind=10.xx.yy.zz:5060</div><div><br></div><div>[untrusted]</div><div>type=transport</div><div>protocol=udp</div><div>bind=<a>12.4.aa.bb:5060</a></div></div><div><br></div><div>My internal endpoints use transport=internal and external endpoints use transport=external. I guess that's obvious.</div><div><br></div></div></blockquote><div>You show transports trusted and untrusted, you don't show any transports named internal and external... so that is confusing.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Everything works fine, most of the time. INVITEs, 1XX, 2XX are sent to the right interface using the right source IP. But, when Asterisk tries to send a BYE to any internal endpoint, it sends using the external IP, but it is sent of the correct internal interface eth0. Only the IP layer is incorrect. The SIP layer has the correct IP in the Via header. From what I can tell, only BYE is affected.<br></div><div><br></div><div>I didn't have this problem with chan_sip. Am I just missing some configuration?</div><div><br></div></div></blockquote><div>This sounds like improper configuration, or a bug.</div><div><br></div><div>If you can pastebin a full (sanitized) pjsip.conf as well as an Asterisk log with verbose turned up[1], plus a SIP packet trace then we can take a look at it.</div><div><br></div><div>[1]: <a href="https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information">https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information</a><br></div><div><br></div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><pre><span>Rusty Newton</span>
Digium, Inc. | <span>Community Support Manager</span>
<span>445 Jan Davis Drive NW</span> - <span>Huntsville, AL 35806</span> - <span>US</span>
<span>direct:</span> <span>+1 256 428 6200</span><span></span> <span></span>

<span>Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a></span></pre></div></div>
</div></div>