<div dir="ltr">George,<div><br></div><div>May I propose we improve the documentation on the Asterisk Wiki? I thought I would have spent far less time here (though you folks have been mightily helpful, and thanks again!) should the documentation for the TCP transport be improved in both the Wiki and specifically, in ${ASTERISK_HOME}/configs/samples/, bundled as part of the code. I want to see Asterisk as a product succeed (even more) and Asterisk in its new version succeed wildly. </div><div><br></div><div>I don't know if you folks allow outside developers to pitch in, but depending on a number of factors, I might contribute to <a href="https://gerrit.asterisk.org/">https://gerrit.asterisk.org/</a> if that is within Asterisk's policy. Again, depending on a number of factors, including legal.<br></div><div><br>Here, specifically, is the list of improvements I propose:</div><div><br></div><div>(a) One full example showing how a TCP based Asterisk platform should work in the PJSIP world, including both SIP over TCP-compliant SIP trunk configuration using pjsip_wizard.conf</div><div>(b) One complete example reflected in the distributed code samples within Asterisk code, in ${ASTERISK_HOME}/configs/samples/.</div><div>(c) A full SIP trace for Asterisk, the working examples, for all manner of transports (UDP, TCP, TLS), for REGISTER, INVITE etc.</div><div><br></div><div>Hope this helps.</div><div><br>Thanks again!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 17, 2016 at 3:48 PM, George Joseph <span dir="ltr"><<a href="mailto:george.joseph@fairview5.com" target="_blank">george.joseph@fairview5.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_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Feb 17, 2016 at 12:13 PM, Sonny Rajagopalan <span dir="ltr"><<a href="mailto:sonny.rajagopalan@gmail.com" target="_blank">sonny.rajagopalan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Wow. Incredible. That worked. The backslash is important there; I kept trying with no backslash and followed the instructions in pjsip_wizard.conf.sample (in configs/samples) and it says we have to say <div><br></div><div>transport=tcp ; the only example however talks about ipv4.</div><div><br></div><div>Is this documented somewhere and I just missed it??</div><div><br></div><div>So, let me sum the issues and their solutions:<br></div><div><br></div><div>(a) Inside/from-internal calling. Only need transport=tcp in pjsip.conf. No need to update every SIP (user) endpoint's transport, though that did not disrupt anything.</div><div>(b) For pjsip_wizard configuration, add the transport into the remote_hosts line like so noting that the backslash is important otherwise the transport part of the line is a comment!</div><div><br></div><div>remote_hosts = <a href="http://silly.pstn.twilio.com" target="_blank">silly.pstn.twilio.com</a>\;transport=tcp <br></div><div><br></div><div>Simple errors, but vexing, vexing, vexing issues.</div></div></blockquote><div><br></div></span><div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">One thing to be aware of...</div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">There is currently a PJSIP bug when using TCP and TLS that shows up if you explicitly</div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">set transport= on an endpoint (or in the wizard). It's best to leave transport unset and</div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">let PJSIP determine the transport from the ;transport= parameter of the URI.</div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">From a wizard perspective, if you have lots of TCP or TLS endpoints, use a template like so...</div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">[tcp-template](!)</div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><div class="gmail_default">server_uri_pattern = sip:${REMOTE_HOST}\;transport=TCP</div><div class="gmail_default">client_uri_pattern = sip:${REMOTE_HOST}\;transport=TCP</div><div class="gmail_default">contact_pattern = sip:${REMOTE_HOST}\;transport=TCP</div><div class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default">[tls-template](!)</div><div class="gmail_default"><div class="gmail_default">server_uri_pattern = sips:${REMOTE_HOST}\;transport=TLS</div><div class="gmail_default">client_uri_pattern = sips:${REMOTE_HOST}\;transport=TLS</div><div class="gmail_default">contact_pattern = sips:${REMOTE_HOST}\;transport=TLS</div><div class="gmail_default"><br></div></div></div></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">[tcp-provider](tcp-template]<br></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">remote_hosts = <a href="http://my.provider.net" target="_blank">my.provider.net</a></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">Let me know if the wiki can use some clarification. I haven't updated it in a while.</div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><span style="font-family:arial,sans-serif"> </span><br></div></div><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Thanks, George, and thanks Joshua, for your time!<br></div></div><div><div><div class="gmail_extra"><br></div></div></div></blockquote><div><br></div></span></div></div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>