[Asterisk-Users] I finally did IT!!!! Internal dial tone

Alex Lopez alex at opsys.com
Tue Feb 10 15:54:48 MST 2004


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 at bkw.org>
To: asterisk-users at lists.digium.com
Subject: Re: [Asterisk-Users] I finally did IT!!!! Internal dial tone
Reply-To: asterisk-users at 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 little
bit
> of a kludge, but it does work!!!
>
>
>
>
>
> Please feel free to improve, comment, or simply use.
>
>
>
>


--__--__--

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users


End of Asterisk-Users Digest



More information about the asterisk-users mailing list