[Freeswitch-users] Trouble with transfer and voicemail password
Trever L. Adams
trever.adams at gmail.com
Wed Mar 28 20:41:41 MSD 2012
On 03/27/2012 10:09 AM, Michael Collins wrote:
> Trever,
>
> I think there is a better way to do this. Look at this example:
> http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bind_digit_action#Catching_the_Digits_Dialed
>
> I think if you use the last digits dialed you should be able to avoid
> the play_and_get_digits altogether. You'll need to strip off the
> leading and trailing digits but that shouldn't be too difficult.
>
> -MC
>
Michael,
Thank you for the response. The problem with your suggestion is that
what I am trying to do is in the documentation, slightly different
situation, at http://wiki.freeswitch.org/wiki/Conference_Add_Call_Example
Additionally, since this is a POTS setup, your suggestion puts more
tones in the callers ear.
One final problem is that is that I am not sure how to strip off the *0#
from the extension. I know the regex would be ^*0#(\d{4})$. I am just
not sure how to match that against last_matching_digits and save it or
use $1 elsewhere.
Thank you,
Trever
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list