Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/93.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
尝试从PJSIP ios调用时,邀请请求未发出_Ios_Sip_Pjsip - Fatal编程技术网

尝试从PJSIP ios调用时,邀请请求未发出

尝试从PJSIP ios调用时,邀请请求未发出,ios,sip,pjsip,Ios,Sip,Pjsip,我正在尝试为ios制作一个SIP呼叫应用程序,我使用PJSIP作为客户端。我在云上运行Kamailio SIP服务器。我无法从pjsip客户端进行音频/视频呼叫。但是如果我尝试使用其他第三方应用程序,我可以用200 OK接听电话,在这种情况下,视频和音频工作正常。我正在服务器上记录每个邀请请求。因此,当我试图从pjsip客户端进行调用时,它没有被记录在那里,这意味着它从未到达服务器。但如果我尝试其他应用程序,邀请请求将被正确记录 我尝试过的代码如下所示。这有什么不对 pj_str_t uri =

我正在尝试为ios制作一个SIP呼叫应用程序,我使用PJSIP作为客户端。我在云上运行Kamailio SIP服务器。我无法从pjsip客户端进行音频/视频呼叫。但是如果我尝试使用其他第三方应用程序,我可以用200 OK接听电话,在这种情况下,视频和音频工作正常。我正在服务器上记录每个邀请请求。因此,当我试图从pjsip客户端进行调用时,它没有被记录在那里,这意味着它从未到达服务器。但如果我尝试其他应用程序,邀请请求将被正确记录

我尝试过的代码如下所示。这有什么不对

pj_str_t uri = pj_str("sip:901@<MY_IP>:<MY_PORT>");
    AppDelegate *appDelegate = (AppDelegate *) [[UIApplication sharedApplication] delegate];
    pjsua_call_id p_call_id;
    pjsua_call_setting opt;

    pjsua_call_setting_default(&opt);

    opt.vid_cnt = 1;
    opt.aud_cnt = 1;

    pjsua_msg_data msg_data;
    pjsua_msg_data_init(&msg_data);

    pj_status_t status = pjsua_call_make_call(appDelegate.accountId , &uri, 0, NULL, &msg_data, &p_call_id);
    if(status == PJ_SUCCESS){
        NSLog(@"call made successfully from %d with callID %d",appDelegate.accountId,p_call_id);
        if(pjsua_call_is_active(p_call_id)) {
            NSLog(@"call is active");
        }
    }else {
        NSLog(@"call made failed");
    }
帐户已正确注册,但无法调用任何SIP URI

下面是pjsip在XCode中完成的日志

11:43:02.678           pjsua_call.c !Making call with acc #0 to sip:901@<MY_IP>:<MY_PORT>
11:43:02.678            pjsua_aud.c  .Set sound device: capture=-1, playback=-2
11:43:02.678            pjsua_aud.c  ..Opening sound device (speaker + mic) PCM@16000/1/20ms
11:43:02.678        coreaudio_dev.c  ...Using VoiceProcessingIO audio unit
11:43:03.182        coreaudio_dev.c  ...core audio stream started
11:43:03.191          pjsua_media.c  .Call 1: initializing media..
11:43:03.192          pjsua_media.c  ..RTP socket reachable at 192.168.1.185:4004
11:43:03.192          pjsua_media.c  ..RTCP socket reachable at 192.168.1.185:4005
11:43:03.192          pjsua_media.c  ..RTP socket reachable at 192.168.1.185:4006
11:43:03.192          pjsua_media.c  ..RTCP socket reachable at 192.168.1.185:4007
11:43:03.193          pjsua_media.c  ..Media index 0 selected for audio call 1
11:43:03.193         tsx0x102061ca8  ....Temporary failure in sending Request msg INVITE/cseq=12090 (tdta0x102022ca8), will try next server: Unsupported transport (PJSIP_EUNSUPTRANSPORT)
11:43:03.193           pjsua_core.c  ....TX 1350 bytes Request msg INVITE/cseq=12090 (tdta0x102022ca8) to UDP <MY_IP>:<MY_PORT>:
INVITE sip:901@<MY_IP>:<MY_PORT> SIP/2.0

Via: SIP/2.0/UDP 103.78.19.70:<MY_PORT>;rport;branch=z9hG4bKPjlK38zIfNAOehpCfRHKJsAhPsYYBgcZwm

Max-Forwards: 70

From: sip:1001@<MY_IP>;tag=ll1r5bccrs7o9.Y24PntSkfvusfNGjSa

To: sip:901@<MY_IP>

Contact: <sip:1001@103.78.19.70:<MY_PORT>;ob>

Call-ID: UO0bmgkIaqC-svFw1ZmsULsGqnwP9qke

CSeq: 12090 INVITE

Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS

Supported: replaces, 100rel, timer, norefersub

Session-Expires: 1800

Min-SE: 90

User-Agent: AnuranRealSIPObj

Content-Type: application/sdp

Content-Length:   726



v=0

o=- 3771123183 3771123183 IN IP4 192.168.1.185

s=pjmedia

b=AS:386

t=0 0

a=X-nat:0

m=audio 4004 RTP/AVP 98 97 99 104 3 0 8 9 120 96

c=IN IP4 192.168.1.185

b=TIAS:96000

a=rtcp:4005 IN IP4 192.168.1.185

a=sendrecv

a=rtpmap:98 speex/16000

a=rtpmap:97 speex/8000

a=rtpmap:99 speex/32000

a=rtpmap:104 iLBC/8000

a=fmtp:104 mode=30

a=rtpmap:3 GSM/8000

a=rtpmap:0 PCMU/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:9 G722/8000

a=rtpmap:120 opus/48000/2

a=fmtp:120 useinbandfec=1

a=rtpmap:96 telephone-event/8000

a=fmtp:96 0-16

m=video 4006 RTP/AVP 97

c=IN IP4 192.168.1.185

b=TIAS:256000

a=rtcp:4007 IN IP4 192.168.1.185

a=sendrecv

a=rtpmap:97 H264/90000

a=fmtp:97 profile-level-id=42e01e; packetization-mode=1


--end msg--
11:43:03.202                    APP  .......Call 1 state=CALLING
2019-07-03 11:43:03.202285+0530 AnuranRealSIPOBJ[682:115773] call made successfully from 0 with callID 1
2019-07-03 11:43:03.202354+0530 AnuranRealSIPOBJ[682:115773] call is active
11:43:03.205         os_core_unix.c  Info: possibly re-registering existing thread
11:43:03.445           pjsua_core.c  .RX 520 bytes Response msg 407/INVITE/cseq=12090 (rdata0x102057828) from UDP <MY_IP>:<MY_PORT>:
SIP/2.0 407 Proxy Authentication Required

Via: SIP/2.0/UDP 103.78.19.70:<MY_PORT>;rport=<MY_PORT>;branch=z9hG4bKPjlK38zIfNAOehpCfRHKJsAhPsYYBgcZwm;received=103.78.19.70

From: sip:1001@<MY_IP>;tag=ll1r5bccrs7o9.Y24PntSkfvusfNGjSa

To: sip:901@<MY_IP>;tag=74470fdebd33581b6e08c1006f836cbf.6a7c

Call-ID: UO0bmgkIaqC-svFw1ZmsULsGqnwP9qke

CSeq: 12090 INVITE

Proxy-Authenticate: Digest realm="<MY_IP>", nonce="XRxIm10cR28skgjbrHj/f+9ZPGsArPEh"

Server: kamailio (4.4.7 (x86_64/linux))

Content-Length: 0




--end msg--
11:43:03.445           pjsua_core.c  ..TX 373 bytes Request msg ACK/cseq=12090 (tdta0x101865ea8) to UDP <MY_IP>:<MY_PORT>:
ACK sip:901@<MY_IP>:<MY_PORT> SIP/2.0

Via: SIP/2.0/UDP 103.78.19.70:<MY_PORT>;rport;branch=z9hG4bKPjlK38zIfNAOehpCfRHKJsAhPsYYBgcZwm

Max-Forwards: 70

From: sip:1001@<MY_IP>;tag=ll1r5bccrs7o9.Y24PntSkfvusfNGjSa

To: sip:901@<MY_IP>;tag=74470fdebd33581b6e08c1006f836cbf.6a7c

Call-ID: UO0bmgkIaqC-svFw1ZmsULsGqnwP9qke

CSeq: 12090 ACK

Content-Length:  0




--end msg--
11:43:03.445           pjsua_core.c  .......TX 1543 bytes Request msg INVITE/cseq=12091 (tdta0x102022ca8) to UDP <MY_IP>:<MY_PORT>:
INVITE sip:901@<MY_IP>:<MY_PORT> SIP/2.0

Via: SIP/2.0/UDP 103.78.19.70:<MY_PORT>;rport;branch=z9hG4bKPjS73qa.6dveexSsi-gdxX6zxCB0dP.kDv

Max-Forwards: 70

From: sip:1001@<MY_IP>;tag=ll1r5bccrs7o9.Y24PntSkfvusfNGjSa

To: sip:901@<MY_IP>

Contact: <sip:1001@103.78.19.70:<MY_PORT>;ob>

Call-ID: UO0bmgkIaqC-svFw1ZmsULsGqnwP9qke

CSeq: 12091 INVITE


Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS

Supported: replaces, 100rel, timer, norefersub

Session-Expires: 1800

Min-SE: 90

User-Agent: AnuranRealSIPObj

Proxy-Authorization: Digest username="1001", realm="<MY_IP>", nonce="XRxIm10cR28skgjbrHj/f+9ZPGsArPEh", uri="sip:901@<MY_IP>:<MY_PORT>", response="8e9907cc0bb22f5a4f70f40c2f0c98a3"

Content-Type: application/sdp

Content-Length:   726



v=0

o=- 3771123183 3771123183 IN IP4 192.168.1.185

s=pjmedia

b=AS:386

t=0 0

a=X-nat:0

m=audio 4004 RTP/AVP 98 97 99 104 3 0 8 9 120 96

c=IN IP4 192.168.1.185

b=TIAS:96000

a=rtcp:4005 IN IP4 192.168.1.185

a=sendrecv

a=rtpmap:98 speex/16000

a=rtpmap:97 speex/8000

a=rtpmap:99 speex/32000

a=rtpmap:104 iLBC/8000

a=fmtp:104 mode=30

a=rtpmap:3 GSM/8000

a=rtpmap:0 PCMU/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:9 G722/8000

a=rtpmap:120 opus/48000/2

a=fmtp:120 useinbandfec=1

a=rtpmap:96 telephone-event/8000

a=fmtp:96 0-16

m=video 4006 RTP/AVP 97

c=IN IP4 192.168.1.185

b=TIAS:256000

a=rtcp:4007 IN IP4 192.168.1.185

a=sendrecv

a=rtpmap:97 H264/90000

a=fmtp:97 profile-level-id=42e01e; packetization-mode=1


--end msg--
11:43:03.946           pjsua_core.c  .TX 1543 bytes Request msg INVITE/cseq=12091 (tdta0x102022ca8) to UDP <MY_IP>:<MY_PORT>:
INVITE sip:901@<MY_IP>:<MY_PORT> SIP/2.0

Via: SIP/2.0/UDP 103.78.19.70:<MY_PORT>;rport;branch=z9hG4bKPjS73qa.6dveexSsi-gdxX6zxCB0dP.kDv

Max-Forwards: 70

From: sip:1001@<MY_IP>;tag=ll1r5bccrs7o9.Y24PntSkfvusfNGjSa

To: sip:901@<MY_IP>

Contact: <sip:1001@103.78.19.70:<MY_PORT>;ob>

Call-ID: UO0bmgkIaqC-svFw1ZmsULsGqnwP9qke

CSeq: 12091 INVITE

Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS

Supported: replaces, 100rel, timer, norefersub

Session-Expires: 1800

Min-SE: 90

User-Agent: AnuranRealSIPObj

Proxy-Authorization: Digest username="1001", realm="<MY_IP>", nonce="XRxIm10cR28skgjbrHj/f+9ZPGsArPEh", uri="sip:901@<MY_IP>:<MY_PORT>", response="8e9907cc0bb22f5a4f70f40c2f0c98a3"

Content-Type: application/sdp

Content-Length:   726



v=0

o=- 3771123183 3771123183 IN IP4 192.168.1.185

s=pjmedia

b=AS:386

t=0 0

a=X-nat:0

m=audio 4004 RTP/AVP 98 97 99 104 3 0 8 9 120 96

c=IN IP4 192.168.1.185

b=TIAS:96000

a=rtcp:4005 IN IP4 192.168.1.185

a=sendrecv

a=rtpmap:98 speex/16000

a=rtpmap:97 speex/8000

a=rtpmap:99 speex/32000

a=rtpmap:104 iLBC/8000

a=fmtp:104 mode=30

a=rtpmap:3 GSM/8000

a=rtpmap:0 PCMU/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:9 G722/8000

a=rtpmap:120 opus/48000/2

a=fmtp:120 useinbandfec=1

a=rtpmap:96 telephone-event/8000

a=fmtp:96 0-16

m=video 4006 RTP/AVP 97

c=IN IP4 192.168.1.185

b=TIAS:256000

a=rtcp:4007 IN IP4 192.168.1.185

a=sendrecv

a=rtpmap:97 H264/90000

a=fmtp:97 profile-level-id=42e01e; packetization-mode=1


--end msg--
11:43:04.949           pjsua_core.c  .TX 1543 bytes Request msg INVITE/cseq=12091 (tdta0x102022ca8) to UDP <MY_IP>:<MY_PORT>:
INVITE sip:901@<MY_IP>:<MY_PORT> SIP/2.0

Via: SIP/2.0/UDP 103.78.19.70:<MY_PORT>;rport;branch=z9hG4bKPjS73qa.6dveexSsi-gdxX6zxCB0dP.kDv

Max-Forwards: 70

From: sip:1001@<MY_IP>;tag=ll1r5bccrs7o9.Y24PntSkfvusfNGjSa

To: sip:901@<MY_IP>

Contact: <sip:1001@103.78.19.70:<MY_PORT>;ob>

Call-ID: UO0bmgkIaqC-svFw1ZmsULsGqnwP9qke

CSeq: 12091 INVITE

Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS

Supported: replaces, 100rel, timer, norefersub

Session-Expires: 1800

Min-SE: 90

User-Agent: AnuranRealSIPObj

Proxy-Authorization: Digest username="1001", realm="<MY_IP>", nonce="XRxIm10cR28skgjbrHj/f+9ZPGsArPEh", uri="sip:901@<MY_IP>:<MY_PORT>", response="8e9907cc0bb22f5a4f70f40c2f0c98a3"

Content-Type: application/sdp

Content-Length:   726



v=0

o=- 3771123183 3771123183 IN IP4 192.168.1.185

s=pjmedia

b=AS:386

t=0 0

a=X-nat:0

m=audio 4004 RTP/AVP 98 97 99 104 3 0 8 9 120 96

c=IN IP4 192.168.1.185

b=TIAS:96000

a=rtcp:4005 IN IP4 192.168.1.185

a=sendrecv

a=rtpmap:98 speex/16000

a=rtpmap:97 speex/8000

a=rtpmap:99 speex/32000

a=rtpmap:104 iLBC/8000

a=fmtp:104 mode=30

a=rtpmap:3 GSM/8000

a=rtpmap:0 PCMU/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:9 G722/8000

a=rtpmap:120 opus/48000/2

a=fmtp:120 useinbandfec=1

a=rtpmap:96 telephone-event/8000

a=fmtp:96 0-16

m=video 4006 RTP/AVP 97

c=IN IP4 192.168.1.185

b=TIAS:256000

a=rtcp:4007 IN IP4 192.168.1.185

a=sendrecv

a=rtpmap:97 H264/90000

a=fmtp:97 profile-level-id=42e01e; packetization-mode=1


--end msg--
11:43:06.950           pjsua_core.c  .TX 1543 bytes Request msg INVITE/cseq=12091 (tdta0x102022ca8) to UDP <MY_IP>:<MY_PORT>:
INVITE sip:901@<MY_IP>:<MY_PORT> SIP/2.0

Via: SIP/2.0/UDP 103.78.19.70:<MY_PORT>;rport;branch=z9hG4bKPjS73qa.6dveexSsi-gdxX6zxCB0dP.kDv

Max-Forwards: 70

From: sip:1001@<MY_IP>;tag=ll1r5bccrs7o9.Y24PntSkfvusfNGjSa

To: sip:901@<MY_IP>

Contact: <sip:1001@103.78.19.70:<MY_PORT>;ob>

Call-ID: UO0bmgkIaqC-svFw1ZmsULsGqnwP9qke

CSeq: 12091 INVITE

Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS

Supported: replaces, 100rel, timer, norefersub

Session-Expires: 1800

Min-SE: 90

User-Agent: AnuranRealSIPObj

Proxy-Authorization: Digest username="1001", realm="<MY_IP>", nonce="XRxIm10cR28skgjbrHj/f+9ZPGsArPEh", uri="sip:901@<MY_IP>:<MY_PORT>", response="8e9907cc0bb22f5a4f70f40c2f0c98a3"

Content-Type: application/sdp

Content-Length:   726



v=0

o=- 3771123183 3771123183 IN IP4 192.168.1.185

s=pjmedia

b=AS:386

t=0 0

a=X-nat:0

m=audio 4004 RTP/AVP 98 97 99 104 3 0 8 9 120 96

c=IN IP4 192.168.1.185

b=TIAS:96000

a=rtcp:4005 IN IP4 192.168.1.185

a=sendrecv

a=rtpmap:98 speex/16000

a=rtpmap:97 speex/8000

a=rtpmap:99 speex/32000

a=rtpmap:104 iLBC/8000

a=fmtp:104 mode=30

a=rtpmap:3 GSM/8000

a=rtpmap:0 PCMU/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:9 G722/8000

a=rtpmap:120 opus/48000/2

a=fmtp:120 useinbandfec=1

a=rtpmap:96 telephone-event/8000

a=fmtp:96 0-16

m=video 4006 RTP/AVP 97

c=IN IP4 192.168.1.185

b=TIAS:256000

a=rtcp:4007 IN IP4 192.168.1.185

a=sendrecv

a=rtpmap:97 H264/90000

a=fmtp:97 profile-level-id=42e01e; packetization-mode=1


--end msg--
11:43:10.711           pjsua_core.c  .TX 525 bytes Request msg REGISTER/cseq=53776 (tdta0x10186aea8) to UDP <MY_IP>:<MY_PORT>:
REGISTER sip:<MY_IP>:<MY_PORT> SIP/2.0

Via: SIP/2.0/UDP 103.78.19.70:<MY_PORT>;rport;branch=z9hG4bKPjRndxjb7QxFtX.qSuAum124WbvCVkKmG8

Max-Forwards: 70

From: <sip:1001@<MY_IP>>;tag=CeJ4HMtIf04gAl.YecQDR8ozwv3xwKJc

To: <sip:1001@<MY_IP>>

Call-ID: nxID29ven.jgvKV2BBs-Uy-mFXBfTZ8Z

CSeq: 53776 REGISTER

User-Agent: AnuranRealSIPObj

Contact: <sip:1001@103.78.19.70:<MY_PORT>;ob>

Expires: 10

Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS

Content-Length:  0




--end msg--
11:43:10.933           pjsua_core.c  .RX 508 bytes Response msg 401/REGISTER/cseq=53776 (rdata0x101868e28) from UDP <MY_IP>:<MY_PORT>:
SIP/2.0 401 Unauthorized

Via: SIP/2.0/UDP 103.78.19.70:<MY_PORT>;rport=<MY_PORT>;branch=z9hG4bKPjRndxjb7QxFtX.qSuAum124WbvCVkKmG8;received=103.78.19.70

From: <sip:1001@<MY_IP>>;tag=CeJ4HMtIf04gAl.YecQDR8ozwv3xwKJc

To: <sip:1001@<MY_IP>>;tag=74470fdebd33581b6e08c1006f836cbf.8cd0

Call-ID: nxID29ven.jgvKV2BBs-Uy-mFXBfTZ8Z

CSeq: 53776 REGISTER

WWW-Authenticate: Digest realm="<MY_IP>", nonce="XRxIol0cR3aDCkiTUKZEDF1gfQkJ7746"

Server: kamailio (4.4.7 (x86_64/linux))

Content-Length: 0




--end msg--
11:43:10.934           pjsua_core.c  ....TX 708 bytes Request msg REGISTER/cseq=53777 (tdta0x10186aea8) to UDP <MY_IP>:<MY_PORT>:
REGISTER sip:<MY_IP>:<MY_PORT> SIP/2.0

Via: SIP/2.0/UDP 103.78.19.70:<MY_PORT>;rport;branch=z9hG4bKPjLmjahOVyW1Oe5rfU9Ld1lWeGagFLu6-X

Max-Forwards: 70

From: <sip:1001@<MY_IP>>;tag=CeJ4HMtIf04gAl.YecQDR8ozwv3xwKJc

To: <sip:1001@<MY_IP>>

Call-ID: nxID29ven.jgvKV2BBs-Uy-mFXBfTZ8Z

CSeq: 53777 REGISTER

User-Agent: AnuranRealSIPObj

Contact: <sip:1001@103.78.19.70:<MY_PORT>;ob>

Expires: 10

Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS

Authorization: Digest username="1001", realm="<MY_IP>", nonce="XRxIol0cR3aDCkiTUKZEDF1gfQkJ7746", uri="sip:<MY_IP>:<MY_PORT>", response="41971a38daef9fac0d2519f0e90dc26c"

Content-Length:  0




--end msg--
11:43:10.950           pjsua_core.c  .TX 1543 bytes Request msg INVITE/cseq=12091 (tdta0x102022ca8) to UDP <MY_IP>:<MY_PORT>:
INVITE sip:901@<MY_IP>:<MY_PORT> SIP/2.0

Via: SIP/2.0/UDP 103.78.19.70:<MY_PORT>;rport;branch=z9hG4bKPjS73qa.6dveexSsi-gdxX6zxCB0dP.kDv

Max-Forwards: 70

From: sip:1001@<MY_IP>;tag=ll1r5bccrs7o9.Y24PntSkfvusfNGjSa

To: sip:901@<MY_IP>

Contact: <sip:1001@103.78.19.70:<MY_PORT>;ob>

Call-ID: UO0bmgkIaqC-svFw1ZmsULsGqnwP9qke

CSeq: 12091 INVITE

Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS

Supported: replaces, 100rel, timer, norefersub

Session-Expires: 1800

Min-SE: 90

User-Agent: AnuranRealSIPObj

Proxy-Authorization: Digest username="1001", realm="<MY_IP>", nonce="XRxIm10cR28skgjbrHj/f+9ZPGsArPEh", uri="sip:901@<MY_IP>:<MY_PORT>", response="8e9907cc0bb22f5a4f70f40c2f0c98a3"

Content-Type: application/sdp

Content-Length:   726



v=0

o=- 3771123183 3771123183 IN IP4 192.168.1.185

s=pjmedia

b=AS:386

t=0 0

a=X-nat:0

m=audio 4004 RTP/AVP 98 97 99 104 3 0 8 9 120 96

c=IN IP4 192.168.1.185

b=TIAS:96000

a=rtcp:4005 IN IP4 192.168.1.185

a=sendrecv

a=rtpmap:98 speex/16000

a=rtpmap:97 speex/8000

a=rtpmap:99 speex/32000

a=rtpmap:104 iLBC/8000

a=fmtp:104 mode=30

a=rtpmap:3 GSM/8000

a=rtpmap:0 PCMU/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:9 G722/8000

a=rtpmap:120 opus/48000/2

a=fmtp:120 useinbandfec=1

a=rtpmap:96 telephone-event/8000

a=fmtp:96 0-16

m=video 4006 RTP/AVP 97

c=IN IP4 192.168.1.185

b=TIAS:256000

a=rtcp:4007 IN IP4 192.168.1.185

a=sendrecv

a=rtpmap:97 H264/90000

a=fmtp:97 profile-level-id=42e01e; packetization-mode=1


--end msg--
11:43:11.184           pjsua_core.c  .RX 459 bytes Response msg 200/REGISTER/cseq=53777 (rdata0x102057828) from UDP <MY_IP>:<MY_PORT>:
SIP/2.0 200 OK

Via: SIP/2.0/UDP 103.78.19.70:<MY_PORT>;rport=<MY_PORT>;branch=z9hG4bKPjLmjahOVyW1Oe5rfU9Ld1lWeGagFLu6-X;received=103.78.19.70

From: <sip:1001@<MY_IP>>;tag=CeJ4HMtIf04gAl.YecQDR8ozwv3xwKJc

To: <sip:1001@<MY_IP>>;tag=74470fdebd33581b6e08c1006f836cbf.91a1

Call-ID: nxID29ven.jgvKV2BBs-Uy-mFXBfTZ8Z

CSeq: 53777 REGISTER

Contact: <sip:1001@103.78.19.70:<MY_PORT>;ob>;expires=60

Server: kamailio (4.4.7 (x86_64/linux))

Content-Length: 0




--end msg--
11:43:11.184            pjsua_acc.c  ....SIP outbound status for acc 0 is not active
11:43:11.184            pjsua_acc.c  ....sip:1001@<MY_IP>: registration success, status=200 (OK), will re-register in 60 seconds
11:43:11.184            pjsua_acc.c  ....Keep-alive timer started for acc 0, destination:<MY_IP>:<MY_PORT>, interval:30s
从跟踪来看,sip:901@:肯定不是有效的URI;必须用有效值替换占位符

发送请求时暂时失败…:不支持的传输PJSIP_EUNSUPTRANSPORT 请求消息INVITE/cseq=12090 TDTA0x1022CA8到UDP::

邀请sip:901@:sip/2.0


我知道。因为安全问题,我把它们遮住了。;所以这些痕迹是误导性的!很难说,但我希望请求uri应该类似于sip:901@dns-没有IP和端口的fqdn;然后为传输TCP sip添加修饰URI:901@sipserver.net;传输=tcp并解析IP,如sip:901@10.0.0.2;传输=tcp。你得到了这个方法,我想你从一个通用的URI开始,一个一个地添加更改。你找到解决方案了吗?