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?
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”