How to handle brute call disconnect

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

 



Thank you for the explanation, we will be implementing polling based
detection.

Best regards

On Wed, Aug 20, 2008 at 12:51 PM, Benny Prijono <bennylp at pjsip.org> wrote:

> On Wed, Aug 20, 2008 at 11:21 AM, Jo?o C?sar <jpcesar at gmail.com> wrote:
>
>> >For the detection part, you can either poll the media statistics to see
>> if RTP packets are still received, or periodically send re-INVITE
>> > or UPDATE to check if remote is still responding.
>>
>> That would be an option, but would not be more efficient to handle that
>> once i receive these:
>>
>> 16:21:17.739   strm0242A31C RTP recv() error: Connection reset by peer
>> (WSAECON
>> RESET) [err:130054]
>> 16:21:17.755   strm0242A31C RTP recv() error: Connection reset by peer
>> (WSAECON
>> RESET) [err:130054]
>> (...)
>>
>> Is this event easily traceable? Can I catch this event once it occur, or,
>> as you say, do I have to check for this polling the media statistics?
>>
>>
> That error is currently not visible to application, so it's not easy to
> catch. And different OS'es reports ICMP unreachable packet differently.
> While on Windows we get it with recv(), you may get it on send() on Linux or
> other OS'es, and you may not even get it at all since we don't do UDP
> connect() in the media transports.
>
> And also some routers may block these ICMP packets from going through.
>
> So I'd say polling is the most reliable way to do the detection.
>
>  -benny
>
>
> _______________________________________________
> 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
>
>


-- 
Joao Cesar
msn: jpcesar at gmail.com
gtalk: jpcesar at gmail.com
icq: 13790802
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080821/00e8d183/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