pjsua_destroy() fails to return

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

 



Hello,

 

We are experiencing the same issue on Android.
Here are the logs:

10-29 13:14:43.030  2074  6442 D libpjsip: 13:14:43.034   pjsua_core.c
Shutting down, flags=0...
10-29 13:14:43.030  2074  6442 D libpjsip: 13:14:43.034   pjsua_core.c
PJSUA state changed: RUNNING --> CLOSING
10-29 13:14:43.030  2074  6442 D libpjsip: 13:14:43.038   pjsua_call.c
.Hangup all calls..
10-29 13:14:43.030  2074  6442 D libpjsip: 13:14:43.038  pjsua_media.c
.Call 0: deinitializing media..
10-29 13:14:43.030  2074  6442 D libpjsip: 13:14:43.039  pjsua_media.c
.Call 1: deinitializing media..
10-29 13:14:43.030  2074  6442 D libpjsip: 13:14:43.039  pjsua_media.c
.Call 2: deinitializing media..
10-29 13:14:43.030  2074  6442 D libpjsip: 13:14:43.039  pjsua_media.c
.Call 3: deinitializing media..
10-29 13:14:43.030  2074  6442 D libpjsip: 13:14:43.039   pjsua_pres.c
.Shutting down presence..
10-29 13:14:43.030  2074  6442 D libpjsip: 13:14:43.040    pjsua_acc.c  .Acc
3: setting unregistration..
10-29 13:14:43.030  2074  6442 V libpjsip: 13:14:43.042       endpoint
..Request msg REGISTER/cseq=17594 (tdta0x77fbb350) created.
10-29 13:14:43.030  2074  6442 D libpjsip: 13:14:43.042      sip_reg.c
..Unable to send request, regc has another transaction pending
10-29 13:14:43.030  2074  6442 V libpjsip: 13:14:43.042 tdta0x77fbb350
..Destroying txdata Request msg REGISTER/cseq=17594 (tdta0x77fbb350)
10-29 13:14:43.030  2074  6442 E libpjsip: 13:14:43.043    pjsua_acc.c
..Unable to create/send REGISTER: Object is busy (PJSIP_EBUSY)
[status=171001]
10-29 13:14:47.090  2074  6442 D libpjsip: 13:14:47.100   pjsua_core.c
.Destroying...
10-29 13:14:47.090  2074  6442 D libpjsip: 13:14:47.100  pjsua_media.c
.Shutting down media..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.296    pjsua_vid.c
..Destroying video subsystem..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.296    pjsua_vid.c
...Window 0: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.296    pjsua_vid.c
...Window 1: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.296    pjsua_vid.c
...Window 2: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.296    pjsua_vid.c
...Window 3: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.296    pjsua_vid.c
...Window 4: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.296    pjsua_vid.c
...Window 5: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.296    pjsua_vid.c
...Window 6: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.296    pjsua_vid.c
...Window 7: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.296    pjsua_vid.c
...Window 8: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.296    pjsua_vid.c
...Window 9: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.297    pjsua_vid.c
...Window 10: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.297    pjsua_vid.c
...Window 11: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.297    pjsua_vid.c
...Window 12: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.297    pjsua_vid.c
...Window 13: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.297    pjsua_vid.c
...Window 14: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.297    pjsua_vid.c
...Window 15: destroying..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.297 android_jni_de
..Android sound library shutting down..
10-29 13:14:47.290  2074  6442 V libpjsip: 13:14:47.298 sip_endpoint.c
.Destroying endpoing instance..
10-29 13:14:47.290  2074  6442 D libpjsip: 13:14:47.298 sip_transactio
.Stopping transaction layer module
10-29 13:14:47.290  2074  6442 V libpjsip: 13:14:47.298  tsx0x76454b4c
.Request to terminate transaction
10-29 13:15:19.970  2074  6522 D libpjsip: 13:15:19.976  sip_resolve.c
!.Failed to resolve 'myserver.com'. Err=70018 (gethostbyname() has returned
error (PJ_ERESOLVE))
10-29 13:15:19.970  2074  6522 W libpjsip: 13:15:19.977  tsx0x76454b4c
.Failed to send Request msg REGISTER/cseq=17594 (tdta0x76497df0)! err=70018
(gethostbyname() has returned error (PJ_ERESOLVE))
10-29 13:15:19.970  2074  6522 V libpjsip: 13:15:19.978  tsx0x76454b4c
.State changed from Null to Terminated, event=TRANSPORT_ERROR
10-29 13:15:19.970  2074  6522 W libpjsip: 13:15:19.978    pjsua_acc.c
...SIP registration failed, status=502 (gethostbyname() has returned error
(PJ_ERESOLVE))
10-29 13:15:19.970  2074  6522 D libpjsip: 13:15:19.979    pjsua_acc.c
...Scheduling re-registration retry for acc 3 in 0 seconds..
10-29 13:15:20.020  2074  6442 D libpjsip: 13:15:20.024 sip_transactio
.Stopped transaction layer module
10-29 13:15:20.020  2074  6442 D libpjsip: 13:15:20.025 sip_endpoint.c
.Module "mod-unsolicited-mwi" unregistered
10-29 13:15:20.020  2074  6442 D libpjsip: 13:15:20.025 sip_endpoint.c
.Module "mod-pjsua-options" unregistered
10-29 13:15:20.020  2074  6442 D libpjsip: 13:15:20.026 sip_endpoint.c
.Module "mod-pjsua-im" unregistered
10-29 13:15:20.020  2074  6442 D libpjsip: 13:15:20.026 sip_endpoint.c
.Module "mod-pjsua-pres" unregistered
10-29 13:15:20.020  2074  6442 D libpjsip: 13:15:20.027 sip_endpoint.c
.Module "mod-pjsua" unregistered
10-29 13:15:20.020  2074  6442 D libpjsip: 13:15:20.027 sip_endpoint.c
.Module "mod-stateful-util" unregistered
10-29 13:15:20.020  2074  6442 D libpjsip: 13:15:20.028 sip_endpoint.c
.Module "mod-refer" unregistered
10-29 13:15:20.020  2074  6442 D libpjsip: 13:15:20.028 sip_endpoint.c
.Module "mod-mwi" unregistered
10-29 13:15:20.020  2074  6442 D libpjsip: 13:15:20.029 sip_endpoint.c
.Module "mod-presence" unregistered
10-29 13:15:20.030  2074  6442 D libpjsip: 13:15:20.036 sip_endpoint.c
.Module "mod-evsub" unregistered
10-29 13:15:20.030  2074  6442 D libpjsip: 13:15:20.037 sip_endpoint.c
.Module "mod-invite" unregistered
10-29 13:15:20.030  2074  6442 D libpjsip: 13:15:20.037 sip_endpoint.c
.Module "mod-100rel" unregistered
10-29 13:15:20.030  2074  6442 D libpjsip: 13:15:20.038 sip_endpoint.c
.Module "mod-ua" unregistered
10-29 13:15:20.030  2074  6442 D libpjsip: 13:15:20.038 sip_transactio
.Transaction layer module destroyed
10-29 13:15:20.030  2074  6442 D libpjsip: 13:15:20.038 sip_endpoint.c
.Module "mod-tsx-layer" unregistered
10-29 13:15:20.030  2074  6442 D libpjsip: 13:15:20.038 sip_endpoint.c
.Module "mod-reg-tracker" unregistered
10-29 13:15:20.030  2074  6442 D libpjsip: 13:15:20.039 sip_endpoint.c
.Module "mod-earlylock" unregistered
10-29 13:15:20.030  2074  6442 D libpjsip: 13:15:20.039 sip_endpoint.c
.Module "mod-opus-sdp-rewriter" unregistered
10-29 13:15:20.030  2074  6442 D libpjsip: 13:15:20.039 sip_endpoint.c
.Module "mod-msg-print" unregistered
10-29 13:15:20.030  2074  6442 D libpjsip: 13:15:20.039 sip_endpoint.c
.Module "mod-pjsua-log" unregistered
10-29 13:15:20.030  2074  6442 V libpjsip: 13:15:20.039 sip_transport.
.Destroying transport manager
10-29 13:15:20.030  2074  6522 V libpjsip: 13:15:20.039  tsx0x76454b4c
!.Transaction destroyed!
10-29 13:15:20.030  2074  6522 D libpjsip: 13:15:20.039      sip_reg.c
Error sending request, status=70018
10-29 13:15:20.030  2074  6522 V libpjsip: 13:15:20.039 tdta0x76497df0
Destroying txdata Request msg REGISTER/cseq=17594 (tdta0x76497df0)



 

 

From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] On Behalf Of Bill Gardner
Sent: Wednesday, November 05, 2014 12:31 AM
To: pjsip at lists.pjsip.org
Subject: Re: pjsua_destroy() fails to return

 

Try just calling pjsua_destroy, it will hangup calls and delete everything.
The REGISTER you see is actually an unregister caused by deleting the
account. Clients unregister by sending a REGISTER with expiration of 0.

Bill

On 11/4/2014 2:59 PM, Brunner, Brian T. wrote:

Shutting down my app, I call 
pjsua_call_hangup_all();
pjsua_stop_worker_threads();
pjsua_acc_del();
pjsua_destroy();

pjsua_destroy() never returns.

The last messages from PJ_LOG are (It seems to me that a registration
attempt is underway.  Confusing to me.)
18:44:27.461   pjsua_call.c !Hangup all calls..
18:44:27.464    pjsua_acc.c  Deleting account 0..
18:44:27.465    pjsua_acc.c  .Acc 0: setting unregistration..
18:44:27.465       endpoint  ..Request msg REGISTER/cseq=35846
(tdta0x1569f38) created.
18:44:27.466   tsx0x156afa4  ...Transaction created for Request msg
REGISTER/cseq=35847 (tdta0x1569f38)
18:44:27.466   tsx0x156afa4  ..Sending Request msg REGISTER/cseq=35847
(tdta0x1569f38) in state Null
18:44:27.466  sip_resolve.c  ...Target '192.168.1.141:0' type=Unspecified
resolved to '192.168.1.141:5060' type=UDP (UDP transport)
18:44:27.466   pjsua_core.c  ...TX 393 bytes Request msg REGISTER/cseq=35847
(tdta0x1569f38) to UDP 192.168.1.141:5060:
REGISTER sip:192.168.1.141 SIP/2.0
Via: SIP/2.0/UDP
192.168.1.229:5060;rport;branch=z9hG4bKPja4c88e04-0d60-466c-845d-553594feb97
7
Max-Forwards: 70
From:  <sip:173@192.168.1.229>
<sip:173 at 192.168.1.229>;tag=c0cb1b9b-f177-4183-80c6-be32e7766387
To:  <sip:173 at 192.168.1.229> <sip:173 at 192.168.1.229>
Call-ID: 87b57a8e-cd56-4e18-821e-5c79d19bc558
CSeq: 35847 REGISTER
Contact:  <sip:173 at 192.168.1.229:5060> <sip:173 at 192.168.1.229:5060>
Expires: 0
Content-Length:  0


--end msg--
18:44:27.466   tsx0x156afa4  ...State changed from Null to Calling,
event=TX_MSG
In cb_on_reg_started
18:44:27.467 /home/advance/  ..cb_on_reg_started: Account 0 UnRegistration 
Leaving cb_on_reg_started
18:44:27.467    pjsua_acc.c  ..Acc 0: Unregistration sent
18:44:27.467    pjsua_acc.c  .Account id 0 deleted
ACCOUNT DELETED!
CALLING PJSUA_DESTROY()!
18:44:29.468   pjsua_core.c  Shutting down, flags=0...
18:44:29.468   pjsua_core.c  PJSUA state changed: RUNNING --> CLOSING
18:44:29.468   pjsua_call.c  .Hangup all calls..
18:44:29.469  pjsua_media.c  .Call 0: deinitializing media..
18:44:29.469   pjsua_pres.c  .Shutting down presence..
18:44:29.469    pjsua_aud.c  .Closing sound device after idle for 1
second(s)
In cb_on_snd_dev_operation




 


  _____  


----------------------------------------------------------------------------
------------------------------------------------ 

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.






_______________________________________________
Visit our blog: http://blog.pjsip.org
 
pjsip mailing list
pjsip at lists.pjsip.org <mailto:pjsip at lists.pjsip.org> 
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20141105/68aa0bbb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6047 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20141105/68aa0bbb/attachment.p7s>


[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