<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 2, 2015 at 10:43 AM, Rusty Newton <span dir="ltr"><<a href="mailto:rnewton@digium.com" target="_blank">rnewton@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">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></span><div>You show transports trusted and untrusted, you don't show any transports named internal and external... so that is confusing.</div></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div></div></div></div></blockquote><div>You are right. That is my fault that I was sanitizing the configuration for the purpose of this email and uses different names.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><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></span><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" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information</a><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div></div></blockquote><div>I actually got the issue resolved by upgrading to 13.3.rc-1, since this is just my development system. I assume that the problem was resolved between the two releases. </div></div></div></div>