Pjsua(pjsip客户端)不希望使用TCP

Pjsua(pjsip客户端)不希望使用TCP,sip,pjsip,Sip,Pjsip,我正在尝试使用pjsua(pjsip的SIP客户端,版本2.102020-02-14)向SIP服务器发出SIP请求。以这种方式启动客户端: pjsua-x86_64-apple-darwin19.4.0 --id sip:addreessee@sever_host_name:5061;transport=tcp --no-udp 使用“S”命令发送任意请求,键入要在请求中使用的SIP方法(我尝试了MESSAGE和其他方法),然后添加目标URI“SIP:sever\u host\u name:5

我正在尝试使用pjsua(pjsip的SIP客户端,版本2.102020-02-14)向SIP服务器发出SIP请求。以这种方式启动客户端:

pjsua-x86_64-apple-darwin19.4.0 --id sip:addreessee@sever_host_name:5061;transport=tcp --no-udp
使用“S”命令发送任意请求,键入要在请求中使用的SIP方法(我尝试了MESSAGE和其他方法),然后添加目标URI“SIP:sever\u host\u name:5061”

结果是:

Destination URI: sip:addreessee@sever_host_name:5061 
13:48:02.121           pjsua_core.c  .TX 342 bytes Request msg MESSAGE/cseq=53264 (tdta0x7f96c501cca8) to UDP sever_host_name:5061:
MESSAGE sip:addresse@sever_host_name:5061 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.15:5060;rport;branch=z9hG4bKPjI-s3KUBrnruOqLAKEtCOLnJ.jJPKmoDe
Max-Forwards: 70
From: <sip:addreessee@server_host_name>;tag=1lsf1PY19Qc4fk-8IhoqTV9plx3kX0yC
To: <sip:addreessee@server_host_name>
Call-ID: -X2iZRlerEaevvVvOZlAX5STQnBaGuN2
CSeq: 53264 MESSAGE
Content-Length:  0
目标URI:sip:addreessee@sever_host_name:5061 
13:48:02.121 pjsua_core.c.TX 342字节请求消息/cseq=53264(tdta0x7f96c501cca8)到UDP服务器主机名称:5061:
消息sip:addresse@sever_host_name:5061 SIP/2.0
Via:SIP/2.0/UDP 192.168.1.15:5060;rport;branch=z9hG4bKPjI-s3KUBrnruOqLAKEtCOLnJ.jJPKmoDe
最大前锋:70
发件人:;标签=1lsf1PY19Qc4fk-8IhoqTV9plx3kX0yC
致:
呼叫ID:-x2izrleeavvozlax5stqnbagun2
CSeq:53264消息
内容长度:0

因此,请求是通过UDP传输层而不是TCP发送的。谁能告诉我我做错了什么吗?

你应该加上
;transport=tcp
每次发送到您的请求URI

你可以在这里阅读更多内容()