[Freeswitch-users] mod_limit fall through
bsnipes
bsnipes at snipes.org
Thu Mar 20 08:12:00 PDT 2008
Brian West wrote:
>
> Post your configs... I think I can provide an example of how to handle
> this one error condition. I think the fail over extension shouldn't
> have a limit set on it so they can fail over to the receptionist since
> she'll have either a sidecar or a better ability to take multiple
> calls at once.
>
I think it would be best if it went to voicemail of the original dialed
extension if possible.
Thanks,
Brian
--- directory/default/317.xml
<include>
<user id="317" mailbox="317">
<params>
</params>
<variables>
<variable name="accountcode" value="317"/>
<variable name="user_context" value="default"/>
<variable name="failover_ext" value="417"/>
</variables>
</user>
</include>
--- directory/default/417.xml
<include>
<user id="417" mailbox="317">
<params>
</params>
<variables>
<variable name="accountcode" value="317"/>
<variable name="user_context" value="default"/>
<variable name="failover_ext" value="317"/>
</variables>
</user>
</include>
--- dialplan/default.xml
<extension name="limit" continue="true">
<condition>
<action application="limit" data="inbound ${destination_number}
1"/>
</condition>
</extension>
<extension name="limit_exceeded">
<condition field="destination_number" expression="^limit_exceeded$">
<action application="eval" data="Limit exceeded!!!!"/>
<action application="set_user" data="${rdnis}@$${domain}"/>
<action application="eval" data="[${failover_ext}]"/>
<action application="eval" data="[${rdnis}]"/>
<application="set" data="transfer_ringback=${uk-ring}"/>
<action application="transfer" data="${failover_ext} XML default"/>
</condition>
</extension>
--
View this message in context: http://www.nabble.com/mod_limit-fall-through-tp16128842p16180941.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.
More information about the FreeSWITCH-users
mailing list