<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Hi David,</div><div><br></div><div>i'm not trying to capture to any variable, i'm using last_matching_digits variable in MY_EXTENSION handling. This works if i add '#' to the end of the regexp. i am trying to get the same result without the need for '#' at the end.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">---------- Forwarded message ----------<br>From: David Ponzone <<a href="mailto:david.ponzone@gmail.com">david.ponzone@gmail.com</a>><br>To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>Cc: <br>Date: Tue, 28 Jun 2016 23:09:19 +0200<br>Subject: Re: [Freeswitch-users] bind_digits_action regexp<br>According the wiki page, it cannot be used for capture.<br>
<br>
David Ponzone<br>
<br>
<br>
<br>
> Le 28 juin 2016 à 20:06, Luis Azedo <<a href="mailto:luis.azedo@factorlusitano.com">luis.azedo@factorlusitano.com</a>> a écrit :<br>
><br>
> Hi,<br>
><br>
> i'm trying to collect as many digits as possible but only getting the first.<br>
><br>
> bind_digit_action(my_domain,'~^\*(\d+)$',exec:execute_extension,MY_EXTENSION XML my_context,both,self)<br>
> 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 ?<br>
><br>
> also tried<br>
> bind_digit_action(my_domain,'~^\*(\d{5,12})$',exec:execute_extension,MY_EXTENSION XML my_context,both,self)<br>
> when i press *123456789, MY_EXTENSION is executed as soon as i type the 5<br>
><br>
> also used 'set(bind_digit_input_timeout=15000)' with no luck<br>
> is there a way to capture until bind_digit_input_timeout ?<br>
><br>
> Thanks<br><br></blockquote></div></div></div>