[Asterisk-Users] How to use * and # as part of number in dial
command
Michel Koenen
michel.koenen at gmail.com
Sun Aug 28 14:31:17 MST 2005
Hi Damon and others,
Your example is still doing what I tried already, so eventually the
dial command ends like:
Dial(zap/4/*21*)
or
Dial(zap/4/*31*)
I prefer to use Dial(zap/4/*21*<thenumber>)
or Dial(zap/4/*31*<thenumber>)
But whatever I try, the error message as in my first post shows up and
the line hangs up before the connection is made. So I assume the so
called 'keypad protocol' which is used here in the Netherlands and
possible in other countries is messing it up. I still hope there is
somebody out there who can help out.
Btw: my problem is not about how to use the Asterisk extension
(because that can be any extension where I want to put the dial
command after).
Best regards,
Michel Koenen
Damon Estep wrote:
>* # are valid in a dialplan
>you would start your exten => with the vertical service code *21*
>then play prompt, collect digits, play prompt, dial
>${exten}$(var_for_collected_digits}
>BUT, unless I have missed something, You can just send *21* to the PSTN
>and then follow their prompts! As long as DTMF is configured correctly
>it should work. If they don't prompt you still dial the same way,
>activate the vertical service code with *21*
>Exten *21*,1,Dial(ZAP/CHAN/{$EXTEN})
>That's all! Then just enter the rest of the digits, allowing the PSTN
>switch to collect the DTMF and activate the code.
>You may want to use something like this to specify which ZAP channel
>your forward (or which line).
>Add a line number first like this
>Exten 1*21*,1,Dial(ZAP/CH1/*21*)
>Notice we don't send the 1, but we do use it to pick the zap channel.
More information about the asterisk-users
mailing list