Unable to create TCP transport

FA
Faiz Ali
Thu, Oct 29, 2020 4:14 AM

Hi I am trying to build PJSUA based softphone. I am creating TCP transport
as

TransportConfig tcfg;
tcfg.port = 5060;
ep.transportCreate(PJSIP_TRANSPORT_TCP, tcfg);

However, when i compile and run this - i am getting error:

22:41:14.303            pjsua_acc.c  ..Unable to generate suitable
Contact header for registration: Unsupported transport
(PJSIP_EUNSUPTRANSPORT) [status=171060]
22:41:14.304            pjsua_acc.c  ..Unable to create registration:
Unsupported transport (PJSIP_EUNSUPTRANSPORT) [status=171060]

What is the missing piece?

Hi I am trying to build PJSUA based softphone. I am creating TCP transport as TransportConfig tcfg; tcfg.port = 5060; ep.transportCreate(PJSIP_TRANSPORT_TCP, tcfg); However, when i compile and run this - i am getting error: 22:41:14.303 pjsua_acc.c ..Unable to generate suitable Contact header for registration: Unsupported transport (PJSIP_EUNSUPTRANSPORT) [status=171060] 22:41:14.304 pjsua_acc.c ..Unable to create registration: Unsupported transport (PJSIP_EUNSUPTRANSPORT) [status=171060] What is the missing piece?