[Freeswitch-users] Detecting status of User Agent
Jon Bruel
jbr at consiglia.dk
Wed Jan 6 05:33:07 PST 2010
Hi Durk
I tried the situation mentioned by unplugging the UA. FS then reports back (via the channel variable originate_disposition): NORMAL_TEMPORARY_FAILURE, which can then be used to take action. Before bridging to the phone, I have set <action application="set" data="continue_on_fail=true"/>. Hope it assists you.
Anyhow, your cat must be very intelligent since it knows it's a CAT cable.
/Jon
Jon Brüel
Consiglia Telecommunications
DK-2960 Rungsted Kyst
Tel: +45 45 16 1000
Mob: +45 26 15 30 60
CVR: 27047882
________________________________
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Durk.de Beer
Sent: 6. januar 2010 10:04
To: Freeswitch-Users
Subject: [Freeswitch-users] Detecting status of User Agent
Ok I want to do the following thing. If an user agent (UA), some SIP-client for instance X-lite, is of line the call is to be forwarded to an phone number provided by the user how was called.
I succeed doing this if there is no registration for the number dialled. FS is then reporting an USER_NOT_REGISTERED so I am able to alter the dial plan accordingly and redirect the call. So far so good. Now my problem arises when there is an registration on FS but the UA is not online for what ever reason (my cat seems to like to chew on CAT5 cable). If this occurs FS is trying to bridge but it is unable to because there is no response from the UA called. It ends by a RECOVERY_ON_TIMER_EXPIRE but the time it takes for this to happen is far to long. I've tried to set this variable but failed to do so. Other channel variables seem to be only effective if there's an successful bridge. So how do I set the RECOVERY_ON_TIMER_EXPIRE?
Durk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100106/c7e1cd10/attachment-0002.html
More information about the FreeSWITCH-users
mailing list