[Freeswitch-users] mod_ivr with condition
Michael Collins
msc at freeswitch.org
Mon May 17 14:24:58 PDT 2010
When you say you setup IVR successfully does that mean you created a new
<menu> like in conf/ivr_menus.xml? If so, then you can accept digits from
the caller while he is in the IVR. To match exactly "1000" from the caller
do this:
<entry action="menu-exec-app" digits="/^(1000)$/" param="transfer $1 XML
features"/>
You could then have a less specific regex to handle all other input, even if
it's more or less than four digits:
<entry action="menu-exec-app" digits="/^(\d+)$/" param="transfer $1 XML
features"/>
You just need to decide what to do when the caller dials the digits:
menu-exec-app or menu-sub or whatever.
-MC
On Sun, May 16, 2010 at 6:46 AM, budi wibowo <bwibowo at gmail.com> wrote:
> dear all
> i setup ivr successfully following xml sample, i want to add functionality
> to give condition based on calling number,
> generally i want this:
> if calling_id =1000
> then do someaction
> else do some other action
>
>
> can i use xml for this or should use javascript ?
>
> regards
>
> budi
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100517/1af0db67/attachment.html
More information about the FreeSWITCH-users
mailing list