pjsip销毁导致应用崩溃,场景是正在打电话中网络类型切换,调用pjsua_destory2()销毁pjsip库 再重新注册 请问如何能避免这个问题
附上log
- --end msg--
-
08:15:19.450 tsx0xb4f47444 .Incoming Response msg 183/INVITE/cseq=12001 (rdata0xb4f4162c) in state Proceeding
-
08:15:19.450 tsx0xb4f47444 ..State changed from Proceeding to Proceeding, event=RX_MSG
-
08:15:19.450 dlg0x7f5bccdc ...Received Response msg 183/INVITE/cseq=12001 (rdata0xb4f4162c)
-
08:15:19.450 dlg0x7f5bccdc ...Transaction tsx0xb4f47444 state changed to Proceeding
-
08:15:19.664 inv0x7f5bccdc ....Got SDP answer in Response msg 183/INVITE/cseq=12001 (rdata0xb4f4162c)
-
08:15:19.669 inv0x7f5bccdc ....SDP negotiation done: Success
-
08:15:19.669 pjsua_call.c .....Call 0: remote NAT type is 0 (Unknown)
-
08:15:19.670 pjsua_media.c .....Call 0: updating media..
-
08:15:19.682 pjsua_media.c .......Media stream call00:0 is destroyed
-
08:15:19.683 pjsua_aud.c ......Audio channel update..
-
08:15:19.684 strm0xb4f4984c .......VAD temporarily disabled
-
08:15:19.685 rtp.c .......pjmedia_rtp_session_init: ses=0xb4f4badc, default_pt=0, ssrc=0x7f2d8dc0
-
08:15:19.685 rtp.c .......pjmedia_rtp_session_init: ses=0xb4f4c164, default_pt=0, ssrc=0x7f2d8dc0
-
08:15:19.688 stream.c .......Stream strm0xb4f4984c created
-
08:15:19.688 strm0xb4f4984c .......Encoder stream started
-
08:15:19.688 strm0xb4f4984c .......Decoder stream started
-
08:15:19.689 resample.c .......resample created: high qualiy, large filter, in/out rate=8000/16000
-
08:15:19.689 resample.c .......resample created: high qualiy, large filter, in/out rate=16000/8000
-
08:15:19.689 pjsua_media.c ......Audio updated, stream #0: PCMU (sendrecv)
-
08:15:19.696 pjsua_aud.c .....Conf connect: 1 --> 0
-
08:15:19.696 conference.c ......Port 1 (sip:8001@login.yunzongji.cn:5070) transmitting to port 0 (Master/sound)
-
08:15:19.696 pjsua_aud.c .....Conf connect: 0 --> 1
-
08:15:19.696 conference.c ......Port 0 (Master/sound) transmitting to port 1 (sip:8001@login.yunzongji.cn:5070)
-
08:15:19.861 Master/sound !Underflow, buf_cnt=0, will generate 1 frame
-
08:15:19.864 strm0xb4f4984c Jitter buffer is bufferring (prefetch=0)
-
08:15:19.873 strm0xb4f4984c Start talksprut..
-
08:15:19.881 Master/sound Underflow, buf_cnt=0, will generate 1 frame
-
08:15:20.145 strm0xb4f4984c !RTP status: badpt=0, badssrc=0, dup=0, outorder=0, probation=-1, restart=0
-
08:15:20.166 strm0xb4f4984c !Jitter buffer starts returning normal frames (after 15 empty/lost)
-
08:15:20.325 Master/sound Underflow, buf_cnt=0, will generate 1 frame
-
08:15:20.508 strm0xb4f4984c VAD re-enabled
-
08:15:20.508 strm0xb4f4984c Starting silence
-
08:15:20.728 strm0xb4f4984c Frame lost, recovered!
-
08:15:20.728 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:20.909 strm0xb4f4984c Frame lost, recovered!
-
08:15:20.929 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:21.109 strm0xb4f4984c Frame lost, recovered!
-
08:15:21.109 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:21.250 strm0xb4f4984c Frame lost, recovered!
-
08:15:21.270 strm0xb4f4984c Jitter buffer starts returning normal frames (after 2 empty/lost)
-
08:15:21.290 strm0xb4f4984c Frame lost, recovered!
-
08:15:21.310 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:21.491 strm0xb4f4984c Frame lost, recovered!
-
08:15:21.491 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:21.671 strm0xb4f4984c Frame lost, recovered!
-
08:15:21.691 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:21.874 strm0xb4f4984c Frame lost, recovered!
-
08:15:21.874 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:22.059 strm0xb4f4984c Frame lost, recovered!
-
08:15:22.079 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:22.259 strm0xb4f4984c Frame lost, recovered!
-
08:15:22.259 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:22.439 strm0xb4f4984c Frame lost, recovered!
-
08:15:22.459 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:22.639 strm0xb4f4984c Frame lost, recovered!
-
08:15:22.639 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:22.819 strm0xb4f4984c Frame lost, recovered!
-
08:15:22.839 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:22.888 pjsua_acc.c !Sending 2 bytes keep-alive packet for acc 0 to 121.40.48.253:5070
-
08:15:22.888 tdta0xb4f4e7b4 Destroying txdata raw
-
08:15:23.019 strm0xb4f4984c !Frame lost, recovered!
-
08:15:23.019 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:23.199 strm0xb4f4984c Frame lost, recovered!
-
08:15:23.219 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:23.399 strm0xb4f4984c Frame lost, recovered!
-
08:15:23.399 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:23.579 strm0xb4f4984c Frame lost, recovered!
-
08:15:23.599 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:23.779 strm0xb4f4984c Frame lost, recovered!
-
08:15:23.779 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:24.001 strm0xb4f4984c Frame lost, recovered!
-
08:15:24.001 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:24.243 strm0xb4f4984c Frame lost, recovered!
-
08:15:24.263 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:24.505 silencedet.c Re-adjust threshold (in silence)to 0
-
08:15:24.564 strm0xb4f4984c Frame lost, recovered!
-
08:15:24.564 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:24.846 strm0xb4f4984c Frame lost, recovered!
-
08:15:24.867 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:25.209 strm0xb4f4984c Frame lost, recovered!
-
08:15:25.209 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:25.530 strm0xb4f4984c Frame lost, recovered!
-
08:15:25.550 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:25.921 Master/sound !479 samples reduced, buf_cnt=801
-
08:15:25.921 Master/sound Buffer size adjusted from 1280 to 801 (eff_cnt=910)
-
08:15:25.989 strm0xb4f4984c !Frame lost, recovered!
-
08:15:25.989 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:26.409 strm0xb4f4984c Frame lost, recovered!
-
08:15:26.409 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:26.809 strm0xb4f4984c Frame lost, recovered!
-
08:15:26.809 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:27.309 strm0xb4f4984c Frame lost, recovered!
-
08:15:27.329 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:28.070 strm0xb4f4984c Frame lost, recovered!
-
08:15:28.070 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:28.550 silencedet.c Re-adjust threshold (in silence)to 0
-
08:15:28.590 strm0xb4f4984c Frame lost, recovered!
-
08:15:28.590 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:29.270 strm0xb4f4984c Frame lost, recovered!
-
08:15:29.270 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:29.921 Master/sound !479 samples reduced, buf_cnt=642
-
08:15:29.921 Master/sound Buffer size adjusted from 1121 to 642 (eff_cnt=711)
-
08:15:30.297 strm0xb4f4984c !Frame lost, recovered!
-
08:15:30.317 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:32.572 silencedet.c Re-adjust threshold (in silence)to 0
-
08:15:32.851 strm0xb4f4984c Frame lost, recovered!
-
08:15:32.871 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:33.296 strm0xb4f4984c Jitter buffer empty (prefetch=0), plc invoked
-
08:15:33.581 Master/sound !479 samples reduced, buf_cnt=803
-
08:15:33.581 Master/sound Buffer size adjusted from 1282 to 803 (eff_cnt=693)
-
08:15:34.336 strm0xb4f4984c !Error sending RTCP: Invalid argument
-
08:15:35.080 Master/sound !479 samples reduced, buf_cnt=644
-
08:15:35.081 Master/sound Buffer size adjusted from 1123 to 644 (eff_cnt=679)
-
08:15:35.363 strm0xb4f4984c !Error sending RTCP: Invalid argument
-
08:15:36.382 strm0xb4f4984c Error sending RTCP: Invalid argument
-
08:15:36.604 silencedet.c Re-adjust threshold (in silence)to 0
-
08:15:37.405 strm0xb4f4984c Error sending RTCP: Invalid argument
-
08:15:37.889 pjsua_acc.c !Sending 2 bytes keep-alive packet for acc 0 to 121.40.48.253:5070
-
08:15:37.889 tdta0xb4f4ea14 Destroying txdata raw
-
08:15:37.889 pjsua_acc.c Error sending keep-alive packet: Invalid argument [status=120022]
-
08:15:38.424 strm0xb4f4984c !Error sending RTCP: Invalid argument
-
08:15:39.448 strm0xb4f4984c Error sending RTCP: Invalid argument
-
08:15:40.475 strm0xb4f4984c Error sending RTCP: Invalid argument
-
08:15:40.614 silencedet.c Re-adjust threshold (in silence)to 0
-
08:15:41.498 strm0xb4f4984c Error sending RTCP: Invalid argument
-
08:15:42.100 Master/sound !479 samples reduced, buf_cnt=485
-
08:15:42.100 Master/sound Buffer size adjusted from 964 to 485 (eff_cnt=466)
-
08:15:42.523 strm0xb4f4984c !Error sending RTCP: Invalid argument
-
08:15:43.143 strm0xb4f4984c Jitter buffer starts returning normal frames (after 490 empty/lost)
-
08:15:43.720 Master/sound !479 samples reduced, buf_cnt=326
-
08:15:43.720 Master/sound Buffer size adjusted from 805 to 326 (eff_cnt=466)
-
08:15:44.465 strm0xb4f4984c !Frame lost, recovered!
-
08:15:44.465 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:44.645 silencedet.c Re-adjust threshold (in silence)to 0
-
08:15:45.150 strm0xb4f4984c Frame lost, recovered!
-
08:15:45.150 strm0xb4f4984c Jitter buffer starts returning normal frames (after 1 empty/lost)
-
08:15:45.440 Master/sound !325 samples reduced, buf_cnt=1921
-
08:15:45.470 Master/sound 320 samples reduced, buf_cnt=1921
-
08:15:45.480 Master/sound 320 samples reduced, buf_cnt=1921
-
08:15:45.501 Master/sound 320 samples reduced, buf_cnt=1921
-
08:15:45.520 Master/sound 320 samples reduced, buf_cnt=1921