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?
T
tonednguyen1073@gmail.com
Fri, Oct 22, 2021 12:52 AM

check on your SIP account configuration.  the registrar URI needs to include “;transport=tcp” at the end.

# Account configuration idURI/registrarUri/Authenication

acfg = pj.AccountConfig()

acfg.idUri = "sip:" + cr.userID + "@" + cr.sipDomain

acfg.regConfig.registrarUri = "sip:" + cr.sipDomain + ";transport=tcp”

check on your SIP account configuration. the registrar URI needs to include “;transport=tcp” at the end. \# Account configuration idURI/registrarUri/Authenication acfg = pj.AccountConfig() acfg.idUri = "sip:" + cr.userID + "@" + cr.sipDomain acfg.regConfig.registrarUri = "sip:" + cr.sipDomain + ";transport=tcp”