Re: pjsip Digest, Vol 122, Issue 19

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

 



@bbnnvv aka Andrzej

the only way to "fully kill PJSIP library" is to do something similar to System.unloadLibrary("pjsua2");

But since there is no such call, the closest thing you can do is make a PendingIntent to restart your app; restarting the app will clear out it's stack/memory and cause all libraries to be unloaded and loaded again when the application starts.

However, I didn't notice that PJSIP requires such hacks until now / yet. Only had such problems with Doubango.

On Fri, Oct 27, 2017 at 6:00 PM, <pjsip-request@xxxxxxxxxxxxxxx> wrote:
Send pjsip mailing list submissions to
        pjsip@xxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
or, via email, send a message with subject or body 'help' to
        pjsip-request@xxxxxxxxxxxxxxx

You can reach the person managing the list at
        pjsip-owner@xxxxxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of pjsip digest..."


Today's Topics:

   1. Android issues while enabling video (Srikar Reddy Vundi)
   2. [BUG] Crash calling pjsua_call_answer2() on UAC call. (b17 c0de)
   3. Re: [BUG] Crash calling pjsua_call_answer2() on UAC call.
      (b17 c0de)
   4. Problems with restarting PJSIP library (bbnnvv)


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

Message: 1
Date: Fri, 27 Oct 2017 06:38:19 +0000
From: Srikar Reddy Vundi <srikar.vundi@xxxxxxxxxxxxxxxx>
To: "pjsip@xxxxxxxxxxxxxxx" <pjsip@xxxxxxxxxxxxxxx>
Subject: Android issues while enabling video
Message-ID:
        <PN1PR01MB0350D1DA0B8450BEE8399B5FFA5A0@PN1PR01MB0350.INDPRD01.PROD.OUTLOOK.COM>

Content-Type: text/plain; charset="iso-8859-1"

Hi,


I successfully enabled video in Android by following the steps in given link,

https://trac.pjsip.org/repos/wiki/Getting-Started/Android


But my application is not displaying the video layout, from my observation i figured out that for media type video(index) i was getting

Call media status as  PJSUA_CALL_MEDIA_NONE and

VideoIncomingWindowId == -1(Invalid)


App Logs

   pjsua_media.c  .....Call 1: updating media..
   pjsua_media.c  .......Media stream call01:0 is destroyed
   icetp00  ......Stopping ICE, reason=Remote answer doesn't support ICE
   icetp00  ......Destroying ICE session 0xb7c4739c
   pjsua_aud.c  ......Audio channel update..
   strm0xb7c7839c  .......VAD temporarily disabled
   strm0xb7c7839c  .......Encoder stream started
   strm0xb7c7839c  .......Decoder stream started
   pjsua_media.c  ......Audio updated, stream #0: speex (sendrecv)
   pjsua_media.c  .......Media stream call01:1 is destroyed
   pjsua_media.c  ......Video updated, stream #1:  (inactive)
   icetp01  .......Destroying ICE session 0xb7c55604
   icetp01  ......ICE stream transport 0xb7bbf234 destroyed
   ice_session.c  ......ICE session 0xb7c55604 destroyed
   pjsua_aud.c  .....Conf connect: 0 --> 1
   conference.c  ......Port 0 (Android JNI) transmitting to port 1 (sip:444@inetra.inedasystems.com)
   pjsua_aud.c  .....Conf connect: 1 --> 0
   conference.c  ......Port 1 (sip:id) transmitting to port 0 (Android JNI)
   pjsua_core.c  .....TX 372 bytes Request msg ACK/cseq=14492 (tdta0xb7b7c0e4) to UDP 192.168.43.112:5060:
   ACK sip:444@192.168.43.112:5060 SIP/2.0
   Via: SIP/2.0/UDP 192.168.43.56:6000;rport;branch=z9hG4bKPj46fa210c-8ae7-43f4-a1a5-68e00820381a
10-27 11:46:55.671 19582-19788/org.pjsip.pjsua2.app I/System.out: Max-Forwards: 70
 Call-ID: 1ee51668-6013-4b64-8d0c-4f6af2ad5a26
 CSeq: 14492 ACK
  Content-Length:  0
  --end msg--
 strm0xb7c7839c !VAD re-enabled


Regards,
Srikar


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20171027/028c728b/attachment-0001.html>

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

Message: 2
Date: Fri, 27 Oct 2017 09:49:13 +0200
From: b17 c0de <b17c0de@xxxxxxxxx>
To: pjsip list <pjsip@xxxxxxxxxxxxxxx>
Subject: [BUG] Crash calling pjsua_call_answer2() on UAC call.
Message-ID:
        <CALvB_xQx0=_7zWWAsiaXVNnUB6xfuqW2=+6nxkaak6CyVabThw@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

Hi,
A crash occurs when pjsua_call_answer2() is called on a call_id that is a
UAC.

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=1, address=0x8)
  * frame #0: 0x0000000100a50801
voicebridge`pj_list_insert_after(pos=0x0000000000000000,
node=0x0000611000002a28) at list_i.h:32
    frame #1: 0x0000000100a5094e
voicebridge`pj_list_insert_before(pos=0x0000000100ca4bf0,
node=0x0000611000002a28) at list_i.h:40
    frame #2: 0x000000010050452d
voicebridge`pj_list_push_back(list=0x0000000100ca4bf0,
node=0x0000611000002a28) at list.h:128
    frame #3: 0x000000010050f3a3 voicebridge`pjsua_call_answer2(call_id=0,
opt=0x0000000000000000, code=0, reason=0x00007ffeefbf3b70,
msg_data=0x0000000000000000) at pjsua_call.c:2282
    frame #4: 0x000000010050df44 voicebridge`pjsua_call_answer(call_id=0,
code=0, reason=0x00007ffeefbf3b70, msg_data=0x0000000000000000) at
pjsua_call.c:2174


frame #3: 0x000000010050f3a3 voicebridge`pjsua_call_answer2(call_id=0,
opt=0x0000000000000000, code=0, reason=0x00007ffeefbf3b70,
msg_data=0x0000000000000000) at pjsua_call.c:2282
   2279             answer->msg_data =
pjsua_msg_data_clone(call->inv->pool_prov,
   2280                                                     msg_data);
   2281         }
-> 2282
pj_list_push_back(&call->async_call.call_var.inc_call.answers,
   2283                           answer);
   2284
   2285         PJSUA_UNLOCK();
(lldb) p call->async_call.call_var.inc_call.answers
(call_answer) $1 = {
  prev = 0x0000000000000000
  next = 0x0000000000000000
  msg_data = 0x0000000000000000
  reason = 0x0000000000000000
  code = 0
  opt = 0x0000000000000000
}

An error should be returned instead.

Regards,
Kal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20171027/25a95d32/attachment-0001.html>

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

Message: 3
Date: Fri, 27 Oct 2017 11:55:14 +0200
From: b17 c0de <b17c0de@xxxxxxxxx>
To: pjsip list <pjsip@xxxxxxxxxxxxxxx>
Subject: Re: [BUG] Crash calling pjsua_call_answer2() on UAC
        call.
Message-ID:
        <CALvB_xRXbOHXqPGeEphAYLyE8o2ELd6Fab8up_qO=s4eGY_VZw@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

I should return PJ_EINVALIDOP ?.

On Fri, Oct 27, 2017 at 9:49 AM, b17 c0de <b17c0de@xxxxxxxxx> wrote:

> Hi,
> A crash occurs when pjsua_call_answer2() is called on a call_id that is a
> UAC.
>
> * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
> (code=1, address=0x8)
>   * frame #0: 0x0000000100a50801 voicebridge`pj_list_insert_after(pos=0x0000000000000000,
> node=0x0000611000002a28) at list_i.h:32
>     frame #1: 0x0000000100a5094e voicebridge`pj_list_insert_before(pos=0x0000000100ca4bf0,
> node=0x0000611000002a28) at list_i.h:40
>     frame #2: 0x000000010050452d voicebridge`pj_list_push_back(list=0x0000000100ca4bf0,
> node=0x0000611000002a28) at list.h:128
>     frame #3: 0x000000010050f3a3 voicebridge`pjsua_call_answer2(call_id=0,
> opt=0x0000000000000000, code=0, reason=0x00007ffeefbf3b70,
> msg_data=0x0000000000000000) at pjsua_call.c:2282
>     frame #4: 0x000000010050df44 voicebridge`pjsua_call_answer(call_id=0,
> code=0, reason=0x00007ffeefbf3b70, msg_data=0x0000000000000000) at
> pjsua_call.c:2174
>
>
> frame #3: 0x000000010050f3a3 voicebridge`pjsua_call_answer2(call_id=0,
> opt=0x0000000000000000, code=0, reason=0x00007ffeefbf3b70,
> msg_data=0x0000000000000000) at pjsua_call.c:2282
>    2279             answer->msg_data = pjsua_msg_data_clone(call->
> inv->pool_prov,
>    2280                                                     msg_data);
>    2281         }
> -> 2282         pj_list_push_back(&call->async_call.call_var.inc_call.
> answers,
>    2283                           answer);
>    2284
>    2285         PJSUA_UNLOCK();
> (lldb) p call->async_call.call_var.inc_call.answers
> (call_answer) $1 = {
>   prev = 0x0000000000000000
>   next = 0x0000000000000000
>   msg_data = 0x0000000000000000
>   reason = 0x0000000000000000
>   code = 0
>   opt = 0x0000000000000000
> }
>
> An error should be returned instead.
>
> Regards,
> Kal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20171027/e9ca9715/attachment-0001.html>

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

Message: 4
Date: Fri, 27 Oct 2017 15:57:35 +0200
From: bbnnvv <bbnnvv@xxxxx>
To: pjsip <pjsip@xxxxxxxxxxxxxxx>
Subject: Problems with restarting PJSIP library
Message-ID: <58549f07be95487395d7484f5cee1d50@xxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

Hello,  I&#39;d like to know how to fully kill PJSipLibrary. I&#39;ve got Android application, and sometimes my pjSip library enters some strange error state - PJSIP_SC_SERVICE_UNAVAILABLE. The only thing that helps is to kill application, and start it from beginning.  When I do endpoint.libDestroy() it doesn&#39;t help. Is there any other way I could reset my pjSip    greetings  Andrzej
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20171027/7f04cb3d/attachment-0001.html>

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

Subject: Digest Footer

_______________________________________________
pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


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

End of pjsip Digest, Vol 122, Issue 19
**************************************



--
 
Aleksandar Milenković
 
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[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