pjsip调用:hangup videocall将在网络断开时阻塞线程

时间:2017-08-10 07:54:49

标签: ios objective-c iphone pjsip

我有一个由oc开发的聊天应用程序。我正在使用pjsip库使用PJSIP注册到SIP服务器。我使用pjsua_call_make_call进行videoCall,并使用pjsua_call_hangup挂断电话。当网络可以访问时,一切正常。这是网络断开时的问题。下面是重现的步骤(audiocall是好的,我搜索类似的问题,但没有结果):

  1. 将videoCall发送给其他人,其他人接听电话,将videoCall状态更改为已确认
  2. 我断开了网络
  3. 我挂断视频通话
  4. 然后出现问题:线程将被阻止,挂起失败

    下面的

    是日志:

    14:21:35.527         tsx0x1042f82a8  ....Failed to send Request msg BYE/cseq=2 (tdta0x1042c2ea8)! err=120051 (Network is unreachable)
    
    14:21:35.527         tsx0x1042f82a8  ....State changed from Null to Terminated, event=TRANSPORT_ERROR
    
    14:21:35.527         dlg0x10411a6a8  .....Transaction tsx0x1042f82a8 state changed to Terminated
    
    14:21:35.527           Pjsua_call.c  .......im pjsua_call_get_info get Date Wed, 09 Aug 2017 06:21:06 GMT
    
    14:21:35.527           Pjsua_call.c  .......im pjsua_call_get_info get call_info 1
    
    14:21:35.537        strm0x1042c7a28 !Starting silence
    
    14:21:35.569          pjsua_media.c !.......Call 0: deinitializing media..
    
    14:21:35.569        strm0x1042c7a28  .........JB summary:size=0/eff=0 prefetch=0 level=10 delay (min/max/avg/dev)=360/500/425/45 ms burst (min/max/avg/dev)=1/11/2/2 frames lost=25 discard=29 empty=218
    
    14:21:35.569          pjsua_media.c  .........Media stream call00:0 is destroyed
    
    14:21:35.569            pjsua_vid.c  .........Stopping video stream..
    
    14:21:35.609           darwin_dev.m  ..........Stopping Darwin video stream
    
    14:21:35.663            pjsua_vid.c  ..........Window 1: destroying..
    
    14:21:35.663             vid_port.c  ...........Closing Front Camera..
    

0 个答案:

没有答案