PJSUA: notification if the network connection is lost

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

 



I dont think PJSIP supports this, why don't you do it from application
layer using OS provided event notifications.


On Mon, Sep 9, 2013 at 2:34 PM, Norbert Weyrich <
norbert.weyrich at tennet-hh.de> wrote:

>  Hello,
>
> thank you for advice Khoa Pham.
>
> I have made some tests with the callback function but PJSUA has never
> called the callback function.
>
> I think the main problem is the use of the UDP protocol.
>
> I hope someone has an idea to resolve this problem.
>
> Norbert
>
>
>
>
> Am 06.09.2013 13:53, schrieb Khoa Pham:
>
> Have you taken a look at pjsua_med_tp_state_cb ?
>
>
> On Fri, Sep 6, 2013 at 6:14 PM, Norbert Weyrich <
> norbert.weyrich at tennet-hh.de> wrote:
>
>> Hello,
>>
>> I'm writing an application with PJSUA and everything works fine!
>>
>> Next I need the possibility to detect the disconnection of the network
>> connection.
>> I didn't find any callback or other method which the application notifies
>> that the network connection is disconnected.
>>
>> I have tested with pjsua_transport_info but there is no information about
>> the state of the network connection (used protocol and the SIP server IP
>> address).
>>
>> The application works with the memory/buffer-based capture and pjsip
>> fills the buffer with the silence pattern if no RTP packages are received.
>> But I can not see any notification that the connection is lost.
>>
>> I use the UDP as transfer protocol.
>>
>> Has anybody an idea to resolve this problem?
>>
>> Thank you very much
>>
>> Norbert
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Visit our blog: http://blog.pjsip.org
>>
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>
>
>
>
>  --
> Khoa Pham
> HCMC University of Science
> www.fantageek.com
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing listpjsip at lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> 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/20130909/259517d3/attachment-0001.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