mod_ivr with condition
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
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
budi wibowo
-
Michael Collins