[Asterisk-Users] Dialplan help

Steve Totaro stotaro at totarotechnologies.com
Sun Nov 27 11:22:57 MST 2005


This might work if you switch it around a little.

http://www.voip-info.org/wiki-Asterisk+cmd+Flash

> -----Original Message-----
> From: MZ [mailto:ultor_forum at jefmart.com]
> Sent: Sunday, November 27, 2005 12:54 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] Dialplan help
> 
> 
> Thanks Steve,
> 
> But this will not work for me because after "yourcodehere" the line
will
> give a confirmation tone (similar to a congestion tone only faster)
then
> after flashing or certain period will turn into a busytone and to get
the
> dialtone again i need to Flash again before i can dial ${EXTEN}.
> 
> 
> 
> On 11/28/05, Steve Totaro <stotaro at totarotechnologies.com> wrote:
> 
> 	How about this?
> 
> 	exten => 1234567890,1,Dial(Zap/g1/yourcodehere${EXTEN})
> 	-or-
> 	exten => 1234567890,1,Dial(Zap/g1/yourcodeherewwww${EXTEN})
> 
> 	I have not seen restrictions set before dialing since local
numbers
> 	would not fall under the restriction but that is what you said.
> Usually
> 	you dial the number first and if it is a long distance call,
they
> prompt
> 	for a code with a tone or something.  The second example shoud
give
> you
> 	a two second pause before dialing the rest of the number (wwww).
> 
> 	Thanks,
> 	Steve
> 
> 
> 	>
> 	> thanks steve,
> 	>
> 	> the reason i cannot remove the restriction on the telco line
is
> that
> 	an
> 	> analog fone is connected to the phone jack of the x101p and
some
> 	visitors
> 	> occasionally use the fone and they're supposed to only call
local
> toll
> 	> free numbers.
> 	>
> 	> Your suggestion of doing the restrictions within asterisk is
good
> but
> 	i
> 	> have yet to buy an FXS port for the analog fone so i cannot do
so.
> 	>
> 	> and for the extensions connected via softphones to asterisk, i
> wanted
> 	> asterisk to take care of opening the lock before dialing the
> desired
> 	phone
> 	> number.
> 	>
> 	> i was thinking of using the "SendDTMF" but i dont know how to
get
> the
> 	zap
> 	> line go off hook.
> 	>
> 	>
> 	> On 11/27/05, Steve Totaro < stotaro at totarotechnologies.com
> <mailto:stotaro at totarotechnologies.com>
> 	> <mailto:stotaro at totarotechnologies.com> > wrote:
> 	>
> 	>       >
> 	>       > hi,
> 	>       >
> 	>       > can anyone please guide me as to how i can implement
this
> in
> 	>       > extensions.conf:
> 	>       >
> 	>       > my PSTN line normally has its longdistance capability
> "locked"
> 	> which
> 	>       can
> 	>       > be opened by dialing some keys and the PIN.
> 	>       >
> 	>       > if i wanted some users to be allowed to call long
distance
> 	using
> 	> the
> 	>       zap
> 	>       > channel, how can i initially offhook then send some
DTMF
> then
> 	> Flash
> 	>       twice
> 	>       > before proceeding with the dialing EXTEN.
> 	>
> 	>
> 	>       Do you want asterisk to take care of the DTMF for you?
When
> you
> 	say
> 	>       users, do you mean certain extensions?
> 	>
> 	>       Why not cancel your restrictions with the telco and
> implement
> 	>       restrictions within asterisk.  You can use authenticate
> before
> 	your
> 	> dial
> 	>       statement to prompt for a pin when dialing long distance
or
> you
> 	can
> 	>       create different contexts for phones that you want to
access
> 	long
> 	>       distance and for phones that you don't
> 	>
> 	>       Thanks,
> 	>       Steve
> 	>       _______________________________________________
> 	>       --Bandwidth and Colocation provided by Easynews.com --
> 	>
> 	>       Asterisk-Users mailing list
> 	>       To UNSUBSCRIBE or update options visit:
> 	>
http://lists.digium.com/mailman/listinfo/asterisk-users
> 	>
> 	>
> 
> 	_______________________________________________
> 	--Bandwidth and Colocation provided by Easynews.com --
> 
> 	Asterisk-Users mailing list
> 	To UNSUBSCRIBE or update options visit:
> 	   http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 




More information about the asterisk-users mailing list