Hi, i'm trying to collect as many digits as possible but only getting the first. bind_digit_action(my_domain,'~^\*(\d+)$',exec:execute_extension,MY_EXTENSION XML my_context,both,self) if i press *8754, MY_EXTENSION is executed as soon as i type the 8. i guess the regexp is true, but shouldn't it try to capture the rest of the digits ? also tried bind_digit_action(my_domain,'~^\*(\d{5,12})$',exec:execute_extension,MY_EXTENSION XML my_context,both,self) when i press *123456789, MY_EXTENSION is executed as soon as i type the 5 also used 'set(bind_digit_input_timeout=15000)' with no luck is there a way to capture until bind_digit_input_timeout ? Thanks
According the wiki page, it cannot be used for capture. David Ponzone
Le 28 juin 2016 à 20:06, Luis Azedo <luis.azedo@factorlusitano.com> a écrit :
Hi,
i'm trying to collect as many digits as possible but only getting the first.
bind_digit_action(my_domain,'~^\*(\d+)$',exec:execute_extension,MY_EXTENSION XML my_context,both,self) if i press *8754, MY_EXTENSION is executed as soon as i type the 8. i guess the regexp is true, but shouldn't it try to capture the rest of the digits ?
also tried bind_digit_action(my_domain,'~^\*(\d{5,12})$',exec:execute_extension,MY_EXTENSION XML my_context,both,self) when i press *123456789, MY_EXTENSION is executed as soon as i type the 5
also used 'set(bind_digit_input_timeout=15000)' with no luck is there a way to capture until bind_digit_input_timeout ?
Thanks
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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)
-
David Ponzone
-
Luis Azedo