Just wanted to keep this list posted. You are right; it was an Asterisk issue. Specifically, the pjsip_wizard configuration they have for configuring SIP trunks is a tiny bit tricky and once I fixed it, life is good and I can hear the birds chirping (again). (And you are right again re: reg URI) If you are curious, the line in pjsip_wizard.conf that tripped me up is (hope this helps somebody else): remote_hosts = silly.somesip.trunk.com should be changed to remote_hosts = silly.somesip.trunk.com\;transport=tcp note the backslash before the semicolon. That just is an escape character for asterisk configuration where semicolons are the start of comments in a line. In this case, escaping it means that the remote_hosts should be used with that transport param (;transport=tcp). Thank you for your time! On Wed, Feb 17, 2016 at 6:47 AM, David Villasmil Govea < david.villasmil at gmail.com> wrote: > Hello, > > I would say this is a question for asterisk. PJSIP TCP works properly for > me, didn't need to do anything on config.h... on c++ to use a tcp endpoint > is: > > /* Add TCP transport... Please remember to add ";transport=tcp" to the > registration uri (and INVITE) */ > { > pjsua_transport_config cfg; > > pjsua_transport_config_default(&cfg); > cfg.port = 5060; > status = pjsua_transport_create(PJSIP_TRANSPORT_TCP, &cfg, NULL); > if (status != PJ_SUCCESS) error_exit("Error creating transport", > status); > } > > > and when registering you need to add: > > ";transport=tcp" > > to the reg_uri > > > > ? > > On Wed, Feb 17, 2016 at 6:15 AM, Sonny Rajagopalan < > sonny.rajagopalan at gmail.com> wrote: > >> Hello, >> >> I need TCP support for my Asterisk 13.6.0 PBX using PJSIP 2.4.5. I >> compiled it per the instructions in >> https://wiki.asterisk.org/wiki/display/AST/Building+and+Installing+pjproject >> and I can confirm that UDP works, but I cannot get TCP to work. >> >> I see the following error: The client sends the SIP request, but the >> server does not respond, and I see this error: >> >> [Feb 17 00:10:26] WARNING[10340]: pjsip:0 <?>: tsx0x126bed8 .Temporary >> failure in sending Request msg OPTIONS/cseq=31133 (tdta0x1500dc0), will try >> next server: Unsupported transport (PJSIP_EUNSUPTRANSPORT) >> [Feb 17 00:10:26] WARNING[10340]: pjsip:0 <?>: tsx0x126bed8 .Temporary >> failure in sending Request msg OPTIONS/cseq=31133 (tdta0x1500dc0), will try >> next server: Unsupported transport (PJSIP_EUNSUPTRANSPORT) >> [Feb 17 00:10:26] WARNING[10340]: pjsip:0 <?>: tsx0x126bed8 .Temporary >> failure in sending Request msg OPTIONS/cseq=31133 (tdta0x1500dc0), will try >> next server: Unsupported transport (PJSIP_EUNSUPTRANSPORT) >> [Feb 17 00:10:26] WARNING[10340]: pjsip:0 <?>: tsx0x126bed8 .Failed to >> send Request msg OPTIONS/cseq=31133 (tdta0x1500dc0)! err=171060 >> (Unsupported transport (PJSIP_EUNSUPTRANSPORT)) >> >> >> I tried to add support explicitly like so: >> >> /usr/local/src/pjproject-2.4.5$ more pjlib/include/pj/config_site.h >> #define PJ_HAS_TCP 1 >> >> and re-added the libraries to asterisk etc (recompiled asterisk as well). >> but I still don't see any change (same error). >> >> It appears from my research that TCP support is not baked in to PJSIP. >> How do I fix this problem? >> >> Any help is appreciated. >> >> Thanks, >> Sonny. >> >> >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip at lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> > > > -- > DVG > > -- > Imagination is more important than knowledge > Albert Einstein > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20160217/b9fcb72a/attachment.html>