VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
elihayun at gmail.com Guest
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Tue Jul 07, 2009 8:44 am Post subject: [Freeswitch-users] How to get the hook state? |
|
|
What are you trying to accomplish?
/b
On Jul 6, 2009, at 11:53 PM, Eli Hayun wrote:
Quote: | Hi
I am a newbie in FreeSwitch and my question is:
When I am calling to an extension, how should I know in advance what
is
the hook status. I tried to find out a variable that can get me this
information but with no success.
any help?
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
yehavi.bourvine at gma... Guest
|
Posted: Wed Jul 08, 2009 12:03 am Post subject: [Freeswitch-users] How to get the hook state? |
|
|
Hello,
The problem we are trying to solve here is handling a busy state according to the user's prefference (some want a busy to be heard, some want the call to go to voicemail, and some want to get the second call).
The first step is finding that an extension is busy. It would be nice in the future to know also other states of an extension (like - not registered, etc.).
Thanks, __Yehavi:
2009/7/7 Brian West <brian@freeswitch.org (brian@freeswitch.org)>
|
|
Back to top |
|
|
rupa at rupa.com Guest
|
Posted: Wed Jul 08, 2009 7:17 am Post subject: [Freeswitch-users] How to get the hook state? |
|
|
I think you can (mostly) solved this using mod_limit and some dialplan work.
Something like:
if you want the second call to ring, limit should be set to 2 or higher.
for either VM or busy, limit should be set to 1
if limit was reached and the user wants busy, send back busy
if limit was reached and the user wants VM, transfer to voicemail
Remember that you have to check the limit both on outbound calls and on inbound calls so that you get the desired behavior. Also, you'll have to special handle outbound calls so they don't fail if the limit is reached (think transfer).
On Tue, Jul 7, 2009 at 11:40 PM, Yehavi Bourvine <yehavi.bourvine@gmail.com (yehavi.bourvine@gmail.com)> wrote:
--
-Rupa |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Wed Jul 08, 2009 7:21 am Post subject: [Freeswitch-users] How to get the hook state? |
|
|
continue_on_fail=user_busy (not 100% reliable because some devices
won't say that the user is busy and ring the second line)
facility_not_subscribed is what you'll get if they aren't registered.
/b
On Jul 7, 2009, at 11:40 PM, Yehavi Bourvine wrote:
Quote: | Hello,
The problem we are trying to solve here is handling a busy state
according to the user's prefference (some want a busy to be heard,
some want the call to go to voicemail, and some want to get the
second call).
The first step is finding that an extension is busy. It would be
nice in the future to know also other states of an extension (like -
not registered, etc.).
Thanks, __Yehavi:
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|