3.
Configuration Example of your IP-PBX
<extensions.conf Example in your Asterisk>
; ------------------
; extensions.conf
; ------------------
; extensions.conf
; ------------------
[general]
writeprotect=no
priorityjumping=yes
; Group 1
; Group 1
[inbound]
exten =>
0312345678
,1,NoOp(EXTEN: ${EXTEN})
exten =>
0312345678
,2,Set(GROUP(CALLS)=GROUP1)
exten =>
0312345678
,3,Set(CURRENTCALLS=${GROUP_COUNT(GROUP1@CALLS)})
exten =>
0312345678
,4,Set(MAXCALLS=
2
)
exten =>
0312345678
,5,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup)
exten =>
0312345678
,6,Dial(SIP/
201
&SIP/
202
,120)
exten =>
0312345678
,6,Dial(SIP/
201
&SIP/
202
,120)
exten =>
0312345678
,7,Congestion
exten =>
0312345678
,106,Busy
; Group 2
exten =>
0312123434
,1,NoOp(EXTEN: ${EXTEN})
exten =>
0312123434
,2,Set(GROUP(CALLS)=GROUP2)
exten =>
0312123434
,3,Set(CURRENTCALLS=${GROUP_COUNT(GROUP2@CALLS)})
exten =>
0312123434
,4,Set(MAXCALLS=
3
)
exten =>
0312123434
,4,Set(MAXCALLS=
3
)
exten =>
0312123434
,5,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup)
exten =>
0312123434
,6,Dial(SIP/
301
&SIP/
302
,120)
exten =>
0312123434
,7,Congestion
exten =>
0312123434
,106,Busy
;<see also next page for the rest settings of extensions.conf>
24
;<see also next page for the rest settings of extensions.conf>