Detecting abnormal session termination

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

 



Hi,
Functionality to handle this kind of problems is already part of the SIP 
protocol.
Try looking into "Session Timers". It's described in RFC 4028 "Session 
Timers in the Session Initiation Protocol (SIP)"

Regards
Jacob Holmgaard

Den 14-11-2011 13:50, Sandeep Karanth skrev:
> Hi all,
>         Could anyone suggest a solution to overcome the following problem,
> 1) A softphone (UA_1) is used to call a Pjsip based passive user agent 
> (UA_2 which only accepts the call and records it)
> 2) UA_1 calls UA_2 and media session is established
> 3) Now UA_1 application crashes mid-way without sending a BYE to UA_2
> This situation would cause recording to continue indefinitely,as the 
> recording UA waits  for BYE to be sent from UA_1 for the session to 
> terminate and end the recording. I do not wish to add a timer to end a 
> call after a fixed duration like the way its done in pjsua_app.c. Is 
> there any way I can detect this deadlock and break out of it in my 
> appllication.Does pjsip have any callback to detect a situation like 
> this.Am using the pjsip version 1.12.Any help on this would be great 
> for me.
>
> -- 
> Regards,
> Sandeep
>
>
>
> _______________________________________________
> 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/20111114/33fc2552/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