<div dir="ltr"><div>I uploaded a review[1] to Gerrit on Friday that could use some additional review and comments. It's meant to solve the problem where multiple pjsip UDP transports are defined and requests go out to a dynamic contact on a different transport than the one the REGISTER came in on.</div><div><br></div><div>Example.</div><div>2 transports defined. The first is on a public ip address and the second is on a private ip address and the endpoint doesn't explicitly set the transport.</div><div><br></div><div>We get a REGISTER on the public transport but because the private transport was defined last (and is therefore the default) and the endpoint didn't set an explicit transport, we send a subsequent OPTIONS, NOTIFY, INVITE, etc out from the private transport.</div><div><br></div>To address this, a new option 'symmetric_transport' was added to the pjsip transport object. If set to yes, when a request from a dynamic contact comes in on<br>this transport, the transport name will be saved and used for subsequent outgoing requests like OPTIONS, NOTIFY and INVITE. It's saved as a contact uri parameter named 'x-ast-txp' and will display with the contact uri in CLI, AMI, and ARI output. On the outgoing request, if a transport wasn't explicitly set on the endpoint AND the request URI is not a hostname, the saved transport will be used and the 'x-ast-txp' parameter stripped from the outgoing packet.<div><br></div><div>Additional info in the review commit message.</div><div><br></div><div>Comments appreciated.<br><div><br></div><div>[1] <a href="https://gerrit.asterisk.org/#/c/5156/">https://gerrit.asterisk.org/#/c/5156/</a></div>-- <br><div class="gmail_signature"><div dir="ltr"><span style="font-size:12.8px">George Joseph</span><br style="font-size:12.8px"><span style="font-size:12.8px">Digium, Inc. | Software Developer</span><span style="font-size:12.8px"><br>445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br></span><span style="font-size:12.8px">Check us out at: </span><a href="http://www.digium.com/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">www.digium.com</a><span style="font-size:12.8px"> & </span><a href="http://www.asterisk.org/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">www.asterisk.org</a><br><div><br></div></div></div>
</div></div>