[Freeswitch-users] bind_digits_action regexp
Luis Azedo
luis.azedo at factorlusitano.com
Tue Jun 28 22:06:27 MSD 2016
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160628/a75d6ca4/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list