I think you can (mostly) solved this using mod_limit and some dialplan work.<br><br>Something like:<br><br>if you want the second call to ring, limit should be set to 2 or higher.<br>for either VM or busy, limit should be set to 1<br>
<br>if limit was reached and the user wants busy, send back busy <br>if limit was reached and the user wants VM, transfer to voicemail<br><br>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).<br>
<br><div class="gmail_quote">On Tue, Jul 7, 2009 at 11:40 PM, Yehavi Bourvine <span dir="ltr"><<a href="mailto:yehavi.bourvine@gmail.com">yehavi.bourvine@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><div>Hello,</div>
<div> </div>
<div> 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).</div>
<div> </div>
<div> 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.).</div>
<div> </div>
<div> Thanks, __Yehavi:<br><br></div>
<div class="gmail_quote">2009/7/7 Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></span><div><div></div><div class="h5"><br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">What are you trying to accomplish?<br><font color="#888888"><br>/b<br></font>
<div>
<div></div>
<div><br>On Jul 6, 2009, at 11:53 PM, Eli Hayun wrote:<br><br>> Hi<br>> I am a newbie in FreeSwitch and my question is:<br>> When I am calling to an extension, how should I know in advance what<br>> is<br>
> the hook status. I tried to find out a variable that can get me this<br>> information but with no success.<br>> any help?<br><br><br>_______________________________________________<br>Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div></div></div></div>
<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>-Rupa<br>