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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20160217/5e8149de/attachment.html>