[mycontext]
;disa
exten=>*4,1,Authenticate(/etc/asterisk/premiun_pass.conf,a)
same=n,Disa(no-password,mobile)
exten=>*5,1,Authenticate(/etc/asterisk/local_pass.conf,a)
same=n,Disa(no-password,localphone)
Create 2 password files, one with the premium pins, for call to mobiles and local and the second one just with the pins for local calls.
User with pins for calls to mobiles dial *4 and Asterisk will ask for the pin if the pin it is correct will be get access to the mobile context.
User with pins for just dial local dial *5 and Asterisk will ask for the pin if the pin it is correct will get access to the local context.
;disa
exten=>*4,1,Authenticate(/etc/asterisk/premiun_pass.conf,a)
same=n,Disa(no-password,mobile)
exten=>*5,1,Authenticate(/etc/asterisk/local_pass.conf,a)
same=n,Disa(no-password,localphone)
Create 2 password files, one with the premium pins, for call to mobiles and local and the second one just with the pins for local calls.
User with pins for calls to mobiles dial *4 and Asterisk will ask for the pin if the pin it is correct will be get access to the mobile context.
User with pins for just dial local dial *5 and Asterisk will ask for the pin if the pin it is correct will get access to the local context.
No hay comentarios:
Publicar un comentario