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
dear alli 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 =1000then do someactionelse do some other actioncan i use xml for this or should use javascript ?regardsbudi
_______________________________________________
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