Pawlowski Julian
2004-Sep-17 03:21 UTC
AW: [Asterisk-Users] dial '0' for outside line and get a dialtone...
> I'd like to create the following: a user picks up the phone > (gets a dial tone), dials '0' for an 'outside' line, gets a > second (different?) dialtone, and is able to enter an > external phone number.Klaus-Peter Junghanns has something like this on his page: http://83.137.99.170/jn/relaunch/asterisk/page19.html It didn't work for me correctly so I changed a lot to fit it to my dialplan. Give it a try for you... Regards, Julian Pawlowski
Andy Powell
2004-Sep-23 10:30 UTC
AW: [Asterisk-Users] dial '0' for outside line and get a dialtone...
On 17/09/2004 at 12:21 Pawlowski Julian wrote:>> I'd like to create the following: a user picks up the phone >> (gets a dial tone), dials '0' for an 'outside' line, gets a >> second (different?) dialtone, and is able to enter an >> external phone number. > >Klaus-Peter Junghanns has something like this on his page: > >http://83.137.99.170/jn/relaunch/asterisk/page19.html > >It didn't work for me correctly so I changed a lot to fit it to my >dialplan. Give it a try for you... > > >Regards, >Julian PawlowskiAll seems a little OTT for me, why don't you just have: exten => 0,1,DISA(no-password,mydialout) [mydialout] exten => _XX.,1,Dial(ZAP/g1/${EXTEN}) you could, if you wanted, add an _00X. or _0XXXXXX (depends on local number lengths) to be able to dial straight out... seems a lot simpler than the macro above... although you aren't getting a different tone... AIMHO Andy