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