How to split lines in different groups?

Hi everybody,
Iโ€™m totally new in all of this :blush: , I started work in a company and I found the switchboard configured with Asterisk, in all the branches. :unamused:

In one office we have two machines with Asterisk:
machine a - take the 4 lines (all together in the same group) and brings them to the other one
machine b - switch the line to the telephones

My goal is to split the four lines in two groups in machine a, bring them to machine b and then applicate different rules.

Thank you for your kind cooperation,
Emanuele

This depends on your specific dialplan. We cannot guess what that is.

What channel technology is used for the four lines (dahdi analogue?). What is used between the boxes (SIP or IAX?).

2 lines analogue and 2 ISDN.

IAX2

Thanks a lot,
Emanuele :smile:

Waiting for a kind reply :smiley:

Weโ€™re still waiting for your dialplan.

Hi,
this is my extensions.conf file:

[code]exten => s,n,Hangup()

[from-pstn-1]
; Vodafone analog lines for orgdab
; 010 001 18 15
; 010 798 24 35
exten => s,1,Set(FROM_DID=${EXTEN})
exten => s,n,Noop(โ€œs di UNOโ€)
exten => s,n,Set(CALLERID(Name)=voda ${CALLERID(Name)})
exten => s,n,Dial(IAX2/acege14@astge14/14000,30,t)
exten => s,n,Hangup()

[from-internal]
; calls from-internal come to server astge14 and have to go out
; if they start with zero they go to group 0, telecom ISDN
; if they start with 99 go to group 1, vodafone analog.

exten => _0.,1,Dial(DAHDI/g0/${EXTEN:1},)
exten => _0.,n,Hangup

exten => _99.,1,Dial(DAHDI/g1/${EXTEN:2},)
exten => _99.,n,Hangup[/code]

Use a different context for each group and add a different prefix onto the user part of the IAX address. Pattern match at the other end.