hi all i have my asterisk work perfectly thanks to you now i need to apply
some improvements like PIN :(
i need to all people can call in my city with this pattern
exten => _XXXXXXX,1,Dial(${TRUNK}/${EXTEN})
exten => _XXXXXXX,2,Voicemail(u${EXTEN})
this work perfectly but when the people try to call a long distance call i
need to asterisk ask for a PIN
is that possible? this is the pattern to call long distance
exten => _XXXXXXXXXXXXXXX,1,Dial(${TRUNK}/${EXTEN})
exten => _XXXXXXXXXXXXXXX,2,Voicemail(u${EXTEN})
i need to add somenthing in here or in other section in the conf?
thanks all!!!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20060609/42a1679a/attachment.htm
Pietro U wrote:> hi all i have my asterisk work perfectly thanks to you now i need to > apply some improvements like PIN :( > > i need to add somenthing in here or in other section in the conf? >http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Authenticate Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
On 6/9/06, Doug Lytle <support@drdos.info> wrote:> > Pietro U wrote: > > hi all i have my asterisk work perfectly thanks to you now i need to > > apply some improvements like PIN :( > > > > i need to add somenthing in here or in other section in the conf? > > > http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Authenticateyes but this is for extensions numbers, not for longdistance calls, because the same user can call in my city but i need to asterisk ask a pin when this people dial a longdistance Doug> > > -- > > Ben Franklin quote: > > "Those who would give up Essential Liberty to purchase a little Temporary > Safety, deserve neither Liberty nor Safety." > > > _______________________________________________ > --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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060609/22f2a70b/attachment.htm
This may not be the most gracefull approach, but this is how I have done it.
exten => s,n,Setvar(Auth=No)
exten => s,n,DigitTimeout(3)
exten => s,n,ResponseTimeout(5)
exten => s,n,Read(MyPin,agent-pass)
exten => s,n,Gotoif($[${MyPin} = ${GOODPIN}]?n:n+x)
exten => s,n,Background(pin-number-accepted)
exten => s,n,Setvar(Auth=Yes)
on and on...
On 6/9/06, Pietro U <pietrouruguay@gmail.com>
wrote:>
> On 6/9/06, Doug Lytle <support@drdos.info> wrote:
>
> > Pietro U wrote:
> > > hi all i have my asterisk work perfectly thanks to you now i need
to
> > > apply some improvements like PIN :(
> > >
> > > i need to add somenthing in here or in other section in the conf?
> > >
> > http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Authenticate
>
>
>
> yes but this is for extensions numbers, not for longdistance calls,
> because the same user can call in my city but i need to asterisk ask a pin
> when this people dial a longdistance
>
>
>
> Doug
> >
> >
> > --
> >
> > Ben Franklin quote:
> >
> > "Those who would give up Essential Liberty to purchase a little
> > Temporary Safety, deserve neither Liberty nor Safety."
> >
> >
> > _______________________________________________
> > --Bandwidth and Colocation provided by
Easynews.com<http://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
<http://easynews.com/>--
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
-- 
Origination that includes real support!
http://www.VoIPStreet.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20060609/1fc2aeb0/attachment.htm
Here is an example of a dialplan that looks up a post dial code in a
mysql database and updates the accountcode accordingly.
 
exten => _1XXXXXXXXXX,1,Read(postcode|beep|3||1|10)
exten => _1XXXXXXXXXX,2,set(level_auth=0)
exten =>
_1XXXXXXXXXX,3,Realtime(postcodes|postcode|${ACCOUNTCODE}${postcode}|lev
el_)
exten => _1XXXXXXXXXX,4,GotoIf($[${level_auth} > 0]?7)
exten => _1XXXXXXXXXX,5,Congestion(5)
exten => _1XXXXXXXXXX,6,Hangup()
exten => _1XXXXXXXXXX,7,playback(beep)
exten => _1XXXXXXXXXX,8,Set(CDR(accountcode)=${ACCOUNTCODE}${postcode})
exten => _1XXXXXXXXXX,9,Dial(LOCAL/${EXTEN}@subscriber)
 
 
The values in the db for the field auth are 1 and 2, 1 allows this
dialplan to run (US national calls) and 2 is used in similar dialpna to
allow international calls (_011.)
 
If you are not enforcing strict accountcodes, so the user can enter any
code they want, you do not need the database.
 
The authenticate application command was too cumbersome for our use, it
shares prompts with another application (which really should be
changed).
 
 
 
________________________________
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Pietro U
Sent: Friday, June 09, 2006 7:51 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] long distance ask for pin
 
On 6/9/06, Doug Lytle <support@drdos.info> wrote:
	Pietro U wrote:
	> hi all i have my asterisk work perfectly thanks to you now i
need to
	> apply some improvements like PIN :(
	>
	> i need to add somenthing in here or in other section in the
conf?
	>
	
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Authenticate
yes but this is for extensions numbers, not for longdistance calls,
because the same user can call in my city but i need to asterisk ask a
pin when this people dial a longdistance 
 
	 
	Doug
	
	
	--
	
	Ben Franklin quote:
	
	"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety." 
	
	
	_______________________________________________
	--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
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20060609/9b49b1bb/attachment.htm