19 Jul
2016
19 Jul
'16
7:50 p.m.
Hi Andy, thanks for the help on this. it works as expected.
Hi, Luis
Looking the FS source code, it will return an “ungreedy” match if you are using a regex and it is your and only bind_digit_action. If this matches your scenario, try adding a 2nd bind_digit_action - it doesn’t matter what it is and it doesn’t need to be a regex (it just needs to be something which won’t interfere with anything else).
So, for example, you could try this:
bind_digit_action(my_domain,'~^\*(\d+)$',exec:execute_extension,MY_EXTENSION XML my_context,both,self) bind_digit_action(my_domain,'##',exec:execute_extension,MY_DO_NOTHING_EXTENSION XML my_context,both,self)
I’ve spent quite some time looking at that part of the FS code, so I hope this is helpful.