You'll want to learn all about Channels and groups.  You can try here: http://www.voip-info.org/wiki/view/Channels+and+Groups

I've assumed that you have 4 FXO modules (to support 4 external phone lines) and 4 FXS modules (to support 4 local extensions).

Essentially you'll need to define "group"s in your ZAPATA.CONF file.  I've provided an example below (it also includes call groups and pick up groups - I've set it so that any group can pick up a call ringing for someone else)

You'll also need contexts in EXTENSIONS.CONF to control how your users dial.  The entries in ZAPATA.CONF for the (FXS) extensions will invoke the appropriate context in EXTENSIONS.CONF so that the appropriate trunks are used.  Check out the "Dialling a Group" section of http://www.voip-info.org/wiki/index.php?page=Asterisk+Zap+channels for information on the various ways you can have Asterisk select a trunk from a group.  I've used r below - a round-robin search, starting at the next highest channel than last time (aka. ascending rotary hunt group).

Yours,
Hugh


Extensions.conf:

[globals]

BOSS_TRUNK=ZAP/r1

GROUPA_TRUNK=ZAP/r2

GROUPB_TRUNK=ZAP/r3

GROUPC_TRUNK=ZAP/r4

 
[boss-context]

;North American Long Distance

exten => _1XXXXXXXXXX,1,Dial(BOSS_TRUNK/${EXTEN})

 

[groupA-context]

;North American Long Distance

exten => _1XXXXXXXXXX,1,Dial(GROUPA_TRUNK/${EXTEN})

 

[groupB-context]

;North American Long Distance

exten => _1XXXXXXXXXX,1,Dial(GROUPB_TRUNK/${EXTEN})

 

[groupC-context]

;North American Long Distance

exten => _1XXXXXXXXXX,1,Dial(GROUPC_TRUNK/${EXTEN})

 

Zapata.conf:

;FXS Line 1 – The Boss's local extension

language=en

context= boss-context

signalling=fxo_ks

threewaycalling=yes

transfer=yes

callgroup=1

pickupgroup=1,2,3,4

channel=>1

;

;FXS Line 2 – Group A's local extension

language=en

context= groupA-context

signalling=fxo_ks

threewaycalling=yes

transfer=yes

callgroup=2

pickupgroup=1,2,3,4

channel=>1

;

;FXS Line 3 – Group B's local extension

language=en

context= groupB-context

signalling=fxo_ks

threewaycalling=yes

transfer=yes

callgroup=3

pickupgroup=1,2,3,4

channel=>1

;

;FXS Line 4 – Group C's local extension

language=en

context= groupC-context

signalling=fxo_ks

threewaycalling=yes

transfer=yes

callgroup=4

pickupgroup=1,2,3,4

channel=>1

;

;FXO (incoming) Line 1

language=en

context=Boss-FXO

signalling=fxs_ks

usecallerid=yes

echocancel=yes

echocancelwhenbridged=yes

transfer=yes

rxgain=5%

group=1

channel => 1

;

;FXO (incoming) Line 2

language=en

context=general-FXO

signalling=fxs_ks

usecallerid=yes

echocancel=yes

echocancelwhenbridged=yes

transfer=yes

rxgain=5%

group=2

channel => 1

;

;FXO (incoming) Line 3

language=en

context=general-FXO

signalling=fxs_ks

usecallerid=yes

echocancel=yes

echocancelwhenbridged=yes

transfer=yes

rxgain=5%

group=2,3

channel => 1

;

;FXO (incoming) Line 4

language=en

context=general-FXO

signalling=fxs_ks

usecallerid=yes

echocancel=yes

echocancelwhenbridged=yes

transfer=yes

rxgain=5%

group=2,3,4

channel => 1



On 3/20/06, Faisal Inam <[EMAIL PROTECTED]> wrote:
Hello All !!!
 
I have 4 PSTN lines in the PBX server 1,2,3,4.
 
First line will be used by only one extension (i.e. for the boss) for incom ing and outgoing. This line is dedicated for him only.(
 
The remaining lines will be shared by the employees
 
1) Group A have access to lines 2 , 3 & 4.
2) Group B have access to lines  3 & 4 
3) Group C have access to line 4
 
I want to know that how i will make that groups.
 
I will be grateful for ur help.
 
Thanks a lot.
Faisal 
 


Relax. Yahoo! Mail virus scanning helps detect nasty viruses!


_______________________________________________
--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

Reply via email to