pjsua-based-app: shutdown troubles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



IN MY CODE (upon call duration exceeded)
log_call_dump(LV.CallId);
pjsua_conf_disconnect( LV.CallerConferenceBridgeSlot, LV.RecordPort );
pjsua_conf_disconnect( LV.CallerConferenceBridgeSlot, 0 );
pjsua_conf_disconnect( LV.PlayerConferencePortNo , LV.CallerConferenceBridgeSlot );
pjsua_call_hangup (LV.CallId, 408, &CallTimeOut, &msg_data);
pjsua_call_hangup_all();
pjsua_stop_worker_threads();
pjsua_acc_del(LV.MyAcctId);
pjsua_destroy();

IN MY LOG DUMP AND OUTPUT
  [CONFIRMED] To: "aa2" <sip:5 at 192.168.1.254>;tag=b24ffd696p^M
    Call time: 00h:00m:06s, 1st res in 7 ms, conn in 77ms
    #0 audio PCMU @8kHz, sendrecv, peer=192.168.1.141:11098
       SRTP status: Not active Crypto-suite:
       RX pt=0, last update:00h:00m:02.095s ago
          total 253pkt 40.4KB (50.6KB +IP hdr) @avg=45.9Kbps/57.3Kbps
          pkt loss=0 (0.0%), discrd=0 (0.0%), dup=0 (0.0%), reord=0 (0.0%)
                (msec)    min     avg     max     last    dev
          loss period:   0.000   0.000   0.000   0.000   0.000
          jitter     :   0.000   0.353   3.375   0.250   0.612
       TX pt=0, ptime=20, last update:never
          total 352pkt 56.3KB (70.4KB +IP hdr) @avg=63.8Kbps/79.8Kbps
          pkt loss=0 (0.0%), dup=0 (0.0%), reorder=0 (0.0%)
                (msec)    min     avg     max     last    dev
          loss period:   0.000   0.000   0.000   0.000   0.000
          jitter     :   0.000   0.000   0.000   0.000   0.000
       RTT msec      :   0.000   0.000   0.000   0.000   0.000
20:49:28.607    pjsua_aud.c  Conf disconnect: 3 -x- 2
20:49:28.608   conference.c  .Port 3 (sip:5 at 192.168.1.254:5060) stop transmitting to port 2 (/tmp/BroadcastMessage.wav)
20:49:28.608    pjsua_aud.c  Conf disconnect: 3 -x- 0
20:49:28.608   conference.c  .Port 3 (sip:5 at 192.168.1.254:5060) stop transmitting to port 0 (Master/sound)
20:49:28.608    pjsua_aud.c  Conf disconnect: 1 -x- 3
20:49:28.608   conference.c  .Port 1 (/tmp/SplashWave.wav) stop transmitting to port 3 (sip:5 at 192.168.1.254:5060)
20:49:28.608   pjsua_call.c  Call 0 hanging up: code=408..
20:49:28.608       endpoint  ..Request msg BYE/cseq=17697 (tdta0x13f1608) created.
20:49:28.608  inv0x7570242c  ..Sending Request msg BYE/cseq=17697 (tdta0x13f1608)
20:49:28.608  dlg0x7570242c  ...Sending Request msg BYE/cseq=17697 (tdta0x13f1608)
20:49:28.609   tsx0x13f2674  ....Transaction created for Request msg BYE/cseq=17696 (tdta0x13f1608)
20:49:28.609   tsx0x13f2674  ...Sending Request msg BYE/cseq=17696 (tdta0x13f1608) in state Null
20:49:28.609  sip_resolve.c  ....Target '192.168.1.141:5060' type=Unspecified resolved to '192.168.1.141:5060' type=UDP (UDP transport)
20:49:28.609   pjsua_core.c  ....TX 452 bytes Request msg BYE/cseq=17696 (tdta0x13f1608) to UDP 192.168.1.141:5060:
BYE sip:5 at 192.168.1.141:5060 SIP/2.0^M
Via: SIP/2.0/UDP 192.168.1.229:5060;rport;branch=z9hG4bKPjddc3ba5f-673e-4a15-a9ac-b93515ffd961^M
Max-Forwards: 70^M
From: <sip:173@192.168.1.141>;tag=6d649611-64b9-4bfc-a8cb-2d330a112f96^M
To: "aa2" <sip:5 at 192.168.1.254>;tag=b24ffd696p^M
Call-ID: 1657260f-d6a8c66e-fdfb6d6-44678b29 at 192.168.1.141^M
CSeq: 17696 BYE^M
Route: <sip:192.168.1.141:5060;lr>^M
Hanging up: 408/399:"Call Duration Exceeded"^M
Content-Length:  0^M
^M

--end msg--
20:49:28.609   tsx0x13f2674  ....State changed from Null to Calling, event=TX_MSG
20:49:28.610  dlg0x7570242c  .....Transaction tsx0x13f2674 state changed to Calling
In cb_on_call_tsx_state
20:49:28.610 /home/advance/  .......cb_on_call_tsx_state Call 0 state=CONFIRMED
Leaving cb_on_call_tsx_state
20:49:28.611 sip_endpoint.c !Processing incoming message: Response msg 200/BYE/cseq=17696 (rdata0x75700494)
20:49:28.611   pjsua_core.c  .RX 382 bytes Response msg 200/BYE/cseq=17696 (rdata0x75700494) from UDP 192.168.1.141:5060:
SIP/2.0 200 OK^M
Via: SIP/2.0/UDP 192.168.1.229:5060;rport=5060;branch=z9hG4bKPjddc3ba5f-673e-4a15-a9ac-b93515ffd961^M
Record-Route: <sip:192.168.1.141:5060;lr>^M
From: <sip:173@192.168.1.141:5060>;tag=6d649611-64b9-4bfc-a8cb-2d330a112f96^M
To: "aa2" <sip:5 at 192.168.1.254>;tag=b24ffd696p^M
Call-ID: 1657260f-d6a8c66e-fdfb6d6-44678b29 at 192.168.1.141^M
CSeq: 17696 BYE^M
Content-Length: 0^M
^M

--end msg--
20:49:28.611   tsx0x13f2674  .Incoming Response msg 200/BYE/cseq=17696 (rdata0x75700494) in state Calling
20:49:28.612   tsx0x13f2674  ..State changed from Calling to Completed, event=RX_MSG
20:49:28.612  dlg0x7570242c  ...Received Response msg 200/BYE/cseq=17696 (rdata0x75700494)
20:49:28.612  dlg0x7570242c  ...Transaction tsx0x13f2674 state changed to Completed
In cb_on_call_tsx_state
20:49:28.612 /home/advance/  .....cb_on_call_tsx_state Call 0 state=DISCONNCTD
Leaving cb_on_call_tsx_state
In cb_on_call_state
20:49:28.612 /home/advance/  .....cb_on_call_state Call 0 old state CONFIRMED new state=DISCONNCTD event 5 (TSX_STATE)
20:49:29.387   silencedet.c !Starting silence (level=0 threshold=0)
20:49:29.387 strm0x7570fc8c  Starting silence
STARTING CLEAN SHUTDOWN
pjsua_call_hangup_all
20:49:29.610   pjsua_call.c !Hangup all calls..
20:49:29.610   pjsua_call.c  .Call 0 hanging up: code=0..
20:49:31.712   pjsua_call.c  ..Timed-out trying to acquire dialog mutex (possibly system has deadlocked) in pjsua_call_hangup()
pjsua_stop_worker_threads
20:49:32.587   silencedet.c !Re-adjust threshold (in silence)to 0
20:49:34.367 strm0x7570fc8c  Start talksprut..
20:49:34.387 strm0x7570fc8c  Starting silence

MY ANALYSIS/GUESSWORK
1: Note "timed out trying to acquire dialog mutex" suggest I messed up starting, ending, or cleaning up after this call.
2: The last 3 lines repeat many times, not consistent in what order.
3: I can't tell which codec is in use, nor whether the same codec is in use (at the same bit-rate) at both ends; the audio is horrible (screech louder than the message)
4: pjsua_call_hangup_all() does not return (neither does pjsua_destroy() when it isn't nopped out).
5: I wonder if I must stop the player & recorder I created.
6: STARTING CLEAN SHUTDOWN is a printf in my code, not a comment in this post.


---------------------------------------------------------------------------------------------------------------------------- 
Confidentiality Requirement: This communication, including any attachment(s), may contain confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, you are hereby notified that you have received this communication in error and any unauthorized review, use, disclosure, dissemination, distribution or copying of it or its contents is strictly prohibited.  If you have received this communication in error, please notify the sender immediately by telephone or e-mail and destroy all copies of this communication and any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20141119/34848f96/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux