After having this bother me for a while and trying to do it via the source I finally got * to give me a different dial tone for internal calls versus an outside PSTN call. I have included the dial plan from extensions.conf. Background info: Inside is the context defined in my Zapata.conf file as the context to use for the zap devices. Allextensions is just that, all my internal extensions. Asttrunk is simply our main asterisk server that is connected to the PSTN. I throw all the outbound calls toward this machine and have the dial plan setup there. You can simply and your trunk configurations here if you like. Matching here would be the whole number to be dialed without the 9. I had to change the dial tones in indications.conf under [us] to be something different I am using the au tones as ii is most like the inside tone that I am used to on my other PBX. ________________________________________________________________________ _______ ; ; Rest of extensions.conf snipped ; [inside] include => allextensions exten => 9,1,Goto(outsidedialtone,s,1) [outsidedialtone] exten => s,1,Playtones(350+440) ; US standard dialtone from indications.conf exten => _X,1,SetVar(FIRSTNUM=${EXTEN}) ; Had to get the first digit dialed and hold on to it!! exten => _X,2,StopPlaytones() exten => _X,3,Goto(outgoingdial,s,1) [outgoingdial] exten => s,1,NoOp() ; needed b/c I send the call here via Goto exten => _X.,1,Goto(asttrunk,${FIRSTNUM}${EXTEN},1) ; This is where the rest of the number gets read sans dial tone. [asttrunk] exten => _X.,1,Dial(IAX2/[user]:[password]@[machine]/${EXTEN}) ________________________________________________________________________ _______ CAVEOTS I have not changed any source files in order to do this, (that speaks wonders for the flexibility of the dial plan!!) However, this does require changes to the default install. I know that it is a little bit of a kludge, but it does work!!! Please feel free to improve, comment, or simply use. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040210/92f38d4b/attachment.htm
If its all zap what was wrong with ignorepat? does it not do this ? I may be wrong. bkw On Tue, 10 Feb 2004, Alex Lopez wrote:> After having this bother me for a while and trying to do it via the > source I finally got * to give me a different dial tone for internal > calls versus an outside PSTN call. > > > > I have included the dial plan from extensions.conf. > > > > Background info: > > > > Inside is the context defined in my Zapata.conf file as the context to > use for the zap devices. > > > > Allextensions is just that, all my internal extensions. > > > > Asttrunk is simply our main asterisk server that is connected to the > PSTN. I throw all the outbound calls toward this machine and have the > dial plan setup there. You can simply and your trunk configurations > here if you like. Matching here would be the whole number to be dialed > without the 9. > > > > I had to change the dial tones in indications.conf under [us] to be > something different I am using the au tones as ii is most like the > inside tone that I am used to on my other PBX. > > > ________________________________________________________________________ > _______ > > ; > > ; Rest of extensions.conf snipped > > ; > > [inside] > > include => allextensions > > > > exten => 9,1,Goto(outsidedialtone,s,1) > > > > [outsidedialtone] > > exten => s,1,Playtones(350+440) ; US standard dialtone from > indications.conf > > > > exten => _X,1,SetVar(FIRSTNUM=${EXTEN}) ; Had to get the first > digit dialed and hold on to it!! > > exten => _X,2,StopPlaytones() > > exten => _X,3,Goto(outgoingdial,s,1) > > > > [outgoingdial] > > exten => s,1,NoOp() ; needed b/c I send the call here via Goto > > exten => _X.,1,Goto(asttrunk,${FIRSTNUM}${EXTEN},1) ; This > is where the rest of the number gets read sans dial tone. > > > > [asttrunk] > > exten => _X.,1,Dial(IAX2/[user]:[password]@[machine]/${EXTEN}) > > > > ________________________________________________________________________ > _______ > > CAVEOTS > > > > I have not changed any source files in order to do this, (that speaks > wonders for the flexibility of the dial plan!!) However, this does > require changes to the default install. I know that it is a little bit > of a kludge, but it does work!!! > > > > > > Please feel free to improve, comment, or simply use. > > > >
Good point Brian, but ignorepat only gives you the SAME dial tone not a different one!!! I would love to see an option for ignorepat that would do this!!! Say ignorepat => 9,Playtone(350+440) Alex Date: Tue, 10 Feb 2004 16:36:05 -0600 (CST) From: Brian West <brian@bkw.org> To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] I finally did IT!!!! Internal dial tone Reply-To: asterisk-users@lists.digium.com If its all zap what was wrong with ignorepat? does it not do this ? I may be wrong. bkw On Tue, 10 Feb 2004, Alex Lopez wrote:> After having this bother me for a while and trying to do it via the > source I finally got * to give me a different dial tone for internal > calls versus an outside PSTN call. > > > > I have included the dial plan from extensions.conf. > > > > Background info: > > > > Inside is the context defined in my Zapata.conf file as the context to > use for the zap devices. > > > > Allextensions is just that, all my internal extensions. > > > > Asttrunk is simply our main asterisk server that is connected to the > PSTN. I throw all the outbound calls toward this machine and have the > dial plan setup there. You can simply and your trunk configurations > here if you like. Matching here would be the whole number to be dialed > without the 9. > > > > I had to change the dial tones in indications.conf under [us] to be > something different I am using the au tones as ii is most like the > inside tone that I am used to on my other PBX. > > >________________________________________________________________________> _______ > > ; > > ; Rest of extensions.conf snipped > > ; > > [inside] > > include => allextensions > > > > exten => 9,1,Goto(outsidedialtone,s,1) > > > > [outsidedialtone] > > exten => s,1,Playtones(350+440) ; US standard dialtone from > indications.conf > > > > exten => _X,1,SetVar(FIRSTNUM=${EXTEN}) ; Had to get the first > digit dialed and hold on to it!! > > exten => _X,2,StopPlaytones() > > exten => _X,3,Goto(outgoingdial,s,1) > > > > [outgoingdial] > > exten => s,1,NoOp() ; needed b/c I send the call here via Goto > > exten => _X.,1,Goto(asttrunk,${FIRSTNUM}${EXTEN},1) ; This > is where the rest of the number gets read sans dial tone. > > > > [asttrunk] > > exten => _X.,1,Dial(IAX2/[user]:[password]@[machine]/${EXTEN}) > > > >________________________________________________________________________> _______ > > CAVEOTS > > > > I have not changed any source files in order to do this, (that speaks > wonders for the flexibility of the dial plan!!) However, this does > require changes to the default install. I know that it is a littlebit> of a kludge, but it does work!!! > > > > > > Please feel free to improve, comment, or simply use. > > > >--__--__-- _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users End of Asterisk-Users Digest
Stephen Davies
2004-Feb-11 01:22 UTC
[Asterisk-Users] I finally did IT!!!! Internal dial tone
On Tue, 10 Feb 2004, Alex Lopez wrote:> [outsidedialtone] > > exten => s,1,Playtones(350+440) ; US standard dialtone from indications.conf > exten => _X,1,SetVar(FIRSTNUM=${EXTEN}) ; Had to get the first digit dialed and hold on to it!! > exten => _X,2,StopPlaytones() > exten => _X,3,Goto(outgoingdial,s,1)Hi, Interesting work-around - but you could instead use the PlayInterruptableTones command that I sent in as a patch a while back - check the bugs.digium.com. Regards, Steve