[asterisk-users] outgoing call restriction in extention.conf

Keshav K. kesh.keshav at yahoo.com
Fri Sep 14 13:08:57 CDT 2007


The best way of restricting users from STD is making different context in extensions.conf, in that context allow STD. and in sip.conf for those users make that context.

 extensions.conf

[local]
exten => _0[1-9].,1,Answer
exten => _0[1-9].,2,Dial(${TRUNK}/${EXTEN:1}w)
exten => _0.,3,Hangup


[STD]
exten => _0.,1,Answer
exten => _0.,2,Dial(${TRUNK}/${EXTEN:1}w)
exten => _0.,3,Hangup
include => local


and sample sip.conf---
if User 101 is allowed for Local only and if 102 is for STD also ----

[101]
type=friend
username=101
;secret=101
host=dynamic
port=5060
dtmfmode=rfc2833
canreinvite=no
context=local
disallow=all
allow=ulaw


[102]
type=friend
username=102
;secret=102
host=dynamic
port=5060
dtmfmode=rfc2833
canreinvite=no
context=STD
disallow=all
allow=ulaw




----------------------------------
----------------------------------

You can also use "Authenticate"  command in your dial plan  for password authenticate if  you want.

Regards,
Kesh 



satish patel <satish_patel_2000_2000 at yahoo.com> wrote: Dear all

               I have asterisk PBX and 100 endpoint i want to block STD for specific users or password protect so is it possible users can set passwd on his/her phone and password automaticaly reflacted on asterisk in short i want to restrict STD call of users of outgoing 

Regards

satish patel
        

---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. _______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Regards,
Kesh
" Lets change the future...lets change the world."

       
---------------------------------
Pinpoint customers who are looking for what you sell. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070914/c5d080a7/attachment.htm 


More information about the asterisk-users mailing list