<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face="Courier New" size=2>You have not covered very much of the
configuration that can be done here. So with that I have come up with a
very generic config for you that I have not tested and is to the best of my
memory but I will give it to you as a starting point. I am posting the
extensions.conf, zapata.conf and voicemail.conf.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>It may make sense it may not. I hope
it at least helps and does not hinder.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Assuming FXO are channels 1 and
2</FONT></DIV>
<DIV><FONT face="Courier New" size=2>Assuming FXS are channels 3 through
5 </FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Since you do not have a direct mapping
between users and extensions I gave users 1-3 direct access to Zap/3-5 and User
4 gets stuck with a voicemail only extension.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>You did not mention if you wanted a menu
system for incoming calls so I did not create one. Instead all incoming
calls from either line will just ring all three extensions. If no one
picks up it goes to a generic voicemail box of 1000.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>User 1 can dial 9 1234 ??????? etc with
1234 being the password for user 1</FONT></DIV>
<DIV>
<DIV><FONT face="Courier New" size=2>User 2 can dial 9 2345 ??????? etc
with 1234 being the password for user 2</FONT></DIV>
<DIV><FONT face="Courier New" size=2>etc...</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Now in reality it would probably be a
cleaner and nicer config using the Authentication app that is available to you
but you asked for the user to be able to just dial 9 1-4 phone number. I
chose 4 digit passwords. If you modify that make sure you modify the
${EXTEN:5} to what is needed. the :5 is trimming off the 9 and 4 additional
digits for the password so if you were using 2 digit passwords you would want to
change that to a :3.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Voicemail for each user is mute at this
point as you have no menu system to direct a caller to a specific user hence
voicemail here will be interoffice only at this point until you create a menu
system or direct incoming lines to a specific user.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Use this at your own risk. I did not
try this configuration on any box. I did this from memory and copying and
tweaking some of my configs and my memory basically sucks so take that as you
will. Most of what I know came from samples around the net so you will see
a lot of stuff from various people around the internet. I am a newbie at
this as well and did not see anyone replying to your message so I thought I
would give it a shot at least to get you going in the right
direction.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>I am sure I forgot a lot of stuff that you
would need but hopefully I covered what you asked for at least.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>* NO FLAMES * NO FLAMES * NO FLAMES * NO
FLAMES * NO FLAMES * NO FLAMES * NO FLAMES * NO FLAMES * NO FLAMES *
</FONT></DIV>
<DIV><FONT face="Courier New" size=2>I know I use a lot of whitespace and have
been told numerous times not too but my system works as it is supposed
to</FONT></DIV>
<DIV><FONT face="Courier New" size=2>so I guess I have the whitespaces in the
proper area. Too bad if it uses more bandwidth here it makes it easier
for</FONT></DIV>
<DIV><FONT face="Courier New" size=2>my brain to understand so you will just
have to live with it all. If you don't like the whitespace then don't read
the</FONT></DIV>
<DIV><FONT face="Courier New" size=2>email.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Good luck and happy holidays,</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Robert</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New"
size=2>_______________________________________________________________________________________________________________________</FONT></DIV></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>;zapata.conf<BR>; Channels definitions for
zapata.conf file<BR>[channels]</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New"
size=2>language
= en</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>; FXO
Channels<BR>signalling
= fxs_ks ; Assuming you are using KewlStart if not change this to what you
use.<BR>group
=
1<BR>callgroup
=
1<BR>pickupgroup
=
1<BR>usecallerid
=
yes<BR>callerid
=
asreceived<BR>hidecallerid
=
no<BR>callwaiting
= yes<BR>callwaitingcallerid =
yes<BR>threewaycalling =
yes<BR>transfer
= yes<BR>cancallforward =
yes<BR>echocancel
= yes<BR>echocancelwhenbridged =
yes<BR>rxgain
=
0.6<BR>txgain
=
0.6<BR>immediate
=
no<BR>busydetect
=
no<BR>callprogress
=
no<BR>musiconhold
= random<BR>; Analog phone line attached to:
???-???-????<BR>context
=
fxo-line1-in<BR>mailbox
= 1000 ; Not mapped to a specific user have them both go to generic vm
1000<BR>channel
=> 1 ; X101P Card<BR>; Analog phone line attached to:
???-???-????<BR>context
=
fxo-line2-in<BR>mailbox
= 1000 ; Not mapped to a specific user have them both go to generic vm
1000<BR>channel
=> 2 ; X101P Card</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>; FXS
Channels<BR>signalling
= fxo_ks ; Assuming you are using KewlStart if not change this to what you
use.<BR>group
=
2<BR>callgroup
=
2<BR>pickupgroup
=
2<BR>callwaiting
= yes<BR>callwaitingcallerid =
yes<BR>threewaycalling =
yes<BR>transfer
= yes<BR>cancallforward =
yes<BR>echocancel
= yes<BR>echocancelwhenbridged =
yes<BR>mailbox
=
<BR>callerid
= "Zap 3"
<1><BR>context
=
fxo-out<BR>channel
=> 3 ; TDM30B Port
1<BR>mailbox
=
<BR>callerid
= "Zap 4"
<2><BR>context
=
fxo-out<BR>channel
=> 4 ; TDM30B Port
2<BR>mailbox
=
<BR>callerid
= "Zap 5"
<3><BR>context
=
fxo-out<BR>channel
=> 5 ; TDM30B Port 3</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>;extensions.conf<BR>[globals]</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>[general]</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New"
size=2>static
= yes ; These two
lines prevent the command-line
interface<BR>writeprotect
= yes ; from
overwriting the config file. Leave them here.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New"
size=2>[macro-exten]<BR>exten
=>
s,1,Dial(${arg1}/${MACRO_EXTEN},${arg2})<BR>exten
=>
s,2,VoiceMail2(u${MACRO_EXTEN})<BR>exten
=>
s,3,Hangup<BR>exten
=>
s,102,VoiceMail2(b${MACRO_EXTEN})<BR>exten
=>
s,103,Hangup</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New"
size=2>[macro-no-exten]<BR>exten
=>
s,1,VoiceMail2(u${MACRO_EXTEN})<BR>exten
=>
s,2,Hangup</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>[extensions]</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>exten
=>
2000,1,Macro(exten,Zap/3,20) ; User 2000 with a 20 sec ring before
voicemail<BR>exten
=> 2001,1,Macro(exten,Zap/4,20) ; User
2001 with a 20 sec ring before
voicemail<BR>exten
=> 2002,1,Macro(exten,Zap/5,20) ; User
2002 with a 20 sec ring before
voicemail<BR>exten
=> 2003,1,Macro(no-exten,Zap/g2,20) ;
User 2003 no extension straight voicemail</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>exten =>
2500,1,VoiceMailMain2(2000) ; User 1 dials 2500 to check their
voicemail</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>exten =>
2501,1,VoiceMailMain2(2001) ; User 2 dials 2501 to check their
voicemail</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>exten =>
2502,1,VoiceMailMain2(2002) ; User 3 dials 2502 to check their
voicemail</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>exten =>
2503,1,VoiceMailMain2(2003) ; User 4 dials 2503 to check their
voicemail</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>exten =>
3000,1,VoiceMailMain2(1000) ; General voicemail gets checked with 3000<BR>; To
set up a new user just copy the lines above and increment the 2003 to 2004 and
so on.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>[fxo-line1-in]<BR>; There are so many
scenarios for this. All phones ring for 30 seconds before going to general
voicemail<BR>exten
=>
s,1,Dial(Zap/3&Zap/4&Zap/5,30)<BR>exten
=>
s,2,VoiceMail2(u1000)<BR>exten
=>
s,3,Hangup<BR>exten
=>
s,102,VoiceMail2(b1000)<BR>exten
=>
s,103,Hangup</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>[fxo-line2-in]<BR>; There are so many
scenarios for this. All phones ring for 30 seconds before going to general
voicemail<BR>exten
=>
s,1,Dial(Zap/3&Zap/4&Zap/5,30) ; Rings for 30 seconds before going to
voicemail<BR>exten
=>
s,2,VoiceMail2(u1000)<BR>exten
=>
s,3,Hangup<BR>exten
=>
s,102,VoiceMail2(b1000)<BR>exten
=>
s,103,Hangup</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>[fxo-out]<BR>;User 1 with a password of
1234<BR>exten
=>
_91234NXXXXXX,1,Dial(Zap/g1/${EXTEN:5}) ; User 1 can dial U.S. local
calls<BR>exten
=>
_91234XNXXNXXXXXX,1,Dial(Zap/g1/${EXTEN:5}) ; User 1 can dial U.S. Long Distance
calls<BR>exten
=> _91234911,1,Dial(Zap/g1/${EXTEN:5})
; User 1 can dial U.S. 911 calls<BR></FONT><FONT face="Courier New" size=2>;User
2 with a password of 2345<BR>exten
=>
_92345NXXXXXX,1,Dial(Zap/g1/${EXTEN:5}) ; User 2 can dial U.S. local
calls<BR>exten
=> _92345911,1,Dial(Zap/g1/${EXTEN:5})
; User 2 can dial U.S. 911 calls</FONT></DIV>
<DIV><FONT face="Courier New" size=2>;User 3 with a password of
3456<BR>exten
=>
_93456NXXXXXX,1,Dial(Zap/g1/${EXTEN:5}) ; User 3 can dial U.S. local
calls</FONT></DIV>
<DIV><FONT face="Courier New" size=2>;User 4 with a password of
4567<BR>exten
=>
_94567XNXXNXXXXXX,1,Dial(Zap/g1/${EXTEN:5}) ; User 1 can dial U.S. Long Distance
calls</FONT></DIV>
<DIV><FONT face="Courier New" size=2>; We are including the extensions so we may
call phone to phone or phone to voicemail.</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>include =>
extensions</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>;voicemail.conf</FONT></DIV>
<DIV><FONT face="Courier New" size=2>;General definitions for the voicemail.conf
file.<BR>[general]<BR>format =
wav|gsm</FONT></DIV>
<DIV><FONT face="Courier New" size=2>serveremail
= yoursmtpserver</FONT></DIV>
<DIV><FONT face="Courier New" size=2>append
=
yes<BR>maxgreet
= 30<BR>maxmessage
= 180<BR>;<BR>; Local extension voicemail
boxes.<BR>[extensions]</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>1000 =>
9876,General Voicemail,allusers@yourdomain.com<BR>2000
=> 1234,User 1,user1@yourdomain.com</FONT></DIV>
<DIV><FONT face="Courier New" size=2>2001
=> 2345,User
2,user2@yourdomain.com</FONT></DIV>
<DIV><FONT face="Courier New" size=2>2002
=> 3456,User
2,user2@yourdomain.com</FONT></DIV>
<DIV><FONT face="Courier New" size=2>2003
=> 4567,User
2,user2@yourdomain.com</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New"
size=2>________________________________________________________________________________________________________________________</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>----- Original Message ----- </FONT>
<DIV><FONT face="Courier New" size=2>From: "Isianto Istiadi" <</FONT><A
href="mailto:isianto.istiadi@adirarental.com"><FONT face="Courier New"
size=2>isianto.istiadi@adirarental.com</FONT></A><FONT face="Courier New"
size=2>></FONT></DIV>
<DIV><FONT face="Courier New" size=2>To: <</FONT><A
href="mailto:Asterisk-Users@lists.digium.com"><FONT face="Courier New"
size=2>Asterisk-Users@lists.digium.com</FONT></A><FONT face="Courier New"
size=2>></FONT></DIV>
<DIV><FONT face="Courier New" size=2>Sent: Monday, December 22, 2003 8:31
PM</FONT></DIV>
<DIV><FONT face="Courier New" size=2>Subject: [Asterisk-Users]
Authentication</FONT></DIV></DIV>
<DIV><BR><FONT face="Courier New" size=2></FONT></DIV><FONT face="Courier New"
size=2>Dear all,<BR>I have a question regarding the configuration of *. I have 3
port FXS, and 2 <BR>port FXO. I have 4 users that use analog phone connected to
FXS (I have 3 <BR>phones). I need to limit the user's capability (user A can
call <BR>International, user B can call long distance, etc). I want to implement
the <BR>password say to call , he/she needs to puch 9(for outgoing call)2-4
digits <BR>password,then the digits. I need the password to see who is calling,
and to <BR>limit his/her capability.<BR><BR>Is it possible to do it with *, if I
can do it can you give me the sample <BR>conf. I read about authentication
applications, but is it the correct
one?<BR><BR>_______________________________________________<BR>Asterisk-Users
mailing list<BR></FONT><A href="mailto:Asterisk-Users@lists.digium.com"><FONT
face="Courier New" size=2>Asterisk-Users@lists.digium.com</FONT></A><BR><A
href="http://lists.digium.com/mailman/listinfo/asterisk-users"><FONT
face="Courier New"
size=2>http://lists.digium.com/mailman/listinfo/asterisk-users</FONT></A><BR></BODY></HTML>