3.
Configuration Example of your IP-PBX
<extensions.conf Example in your Asterisk>
; Group 1
[group1_outbound]
exten => _0., 1,Set(CALLERID(num)=
0312345678
)
exten => _0., 1,Set(CALLERID(num)=
0312345678
)
exten => _0., 2,Set(CALLERID(name)=GROUP1)
exten => _0., 3,Set(GROUP(CALLS)=GROUP1)
exten => _0., 4,Set(CURRENTCALLS=${GROUP_COUNT(GROUP1@CALLS)})
exten => _0., 5,Set(MAXCALLS=
2
)
exten => _0., 6,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup)
exten => _0., 7,Dial(SIP/${EXTEN}@0000123456,120)
exten => _0., 8,Congestion exten => _0.,106,Busy
exten => _0., 8,Congestion exten => _0.,106,Busy
exten => _1., 1,Set(CALLERID(num)=
0312345678
)
exten => _1., 2,Set(CALLERID(name)=GROUP1)
exten => _1., 3,Set(GROUP(CALLS)=GROUP1)
exten => _1., 4,Set(CURRENTCALLS=${GROUP_COUNT(GROUP1@CALLS)})
exten => _1., 5,Set(MAXCALLS=
2
)
exten => _1., 6,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup)
exten => _1., 6,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup)
exten => _1., 7,Dial(SIP/${EXTEN}@0000123456,120)
exten => _1., 8,Congestion exten => _0.,106,Busy
exten => _ XXX, 1,Dial(SIP/${EXTEN},120,T)
exten => _ XXX, 2,Congestion
exten => _ XXX, 102,Busy
; Group 2
; Group 2
[group2_outbound]
exten => _0., 1,Set(CALLERID(num)=
0312123434
)
exten => _0., 2,Set(CALLERID(name)=GROUP2)
exten => _0., 3,Set(GROUP(CALLS)=GROUP2)
exten => _0., 4,Set(CURRENTCALLS=${GROUP_COUNT(GROUP2@CALLS)})
exten => _0., 5,Set(MAXCALLS=
3
)
exten => _0., 6,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup)
exten => _0., 6,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup)
exten => _0., 7,Dial(SIP/${EXTEN}@
0000123456
,120)
exten => _0., 8,Congestion
exten => _0.,106,Busy
exten => _1., 1,Set(CALLERID(num)=
0312123434
)
exten => _1., 2,Set(CALLERID(name)=GROUP2)
exten => _1., 3,Set(GROUP(CALLS)=GROUP2)
exten => _1., 4,Set(CURRENTCALLS=${GROUP_COUNT(GROUP2@CALLS)})
exten => _1., 4,Set(CURRENTCALLS=${GROUP_COUNT(GROUP2@CALLS)})
exten => _1., 5,Set(MAXCALLS=
3
)
exten => _1., 6,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup)
exten => _1., 7,Dial(SIP/${EXTEN}@
0000123456
,120)
exten => _1., 8,Congestion
exten => _1.,106,Busy
exten => _ XXX, 1,Dial(SIP/${EXTEN},120,T)
25
exten => _ XXX, 1,Dial(SIP/${EXTEN},120,T)
exten => _ XXX, 2,Congestion
exten => _ XXX, 102,Busy