Concurrent Call limit on static agents


#1

Hi everyone!

I need to add the concurrent call limit on static agents(external number). But I don’t have any idea regarding concurrent call limit on static agents.

Thank you in advance.
With regards, Sophia.


#2

Hi,
You can use function GROUP and GROUP_COUNT


#3

Hi Sugiharto,
Can you please explain this method. How to pass the external number in GROUP and GROUP_COUNT.


#4

As part of the group name


#5

I implemented GROUP and GROUP_COUNT method. It’s working good in case of extension to extension call.
But in case of external number there are multiple channels. So it’s creating issue.


#6

Hi,
I implemented the GROUP and GROUP_COUNT in the following way:-

exten => xxxx,1,Set(GROUP()={EXTEN}) exten => xxxx,n,GotoIf([{GROUP_COUNT({EXTEN})}>4]?busy)
exten => xxxx,n,Set(OUTBOUND_GROUP=${EXTEN})
exten => xxxx,n,Dial(SIP/{EXTEN})
exten => xxxx,n(busy),Hangup

In above code, xxxx is virtual extension and in follow me of that extension some external number is used.
I want to limit the number of calls on this external number.

Thank you in advance.
With regards, Sophia.


#7
exten => xxxx,1,Set(GROUP()={EXTEN})
exten => xxxx,n,GotoIf([{GROUP_COUNT({EXTEN})}>4]?busy)
exten => xxxx,n,Set(OUTBOUND_GROUP=${EXTEN})
exten => xxxx,n,Dial(SIP/{EXTEN})
exten => xxxx,n(busy),Hangup

If I’ve reconstructed this properly, there are many missing "$"s.


#8

Hi David,
Thankyou for your support.
By using ${EXTEN} , It’s working good in case of extension. But I am using static agent as an external number then there is one localchannel channel like Local/xxxxx-xxxx and this dst cdr variable contains the external number. I need to make group according to this cdr dst variable. I tried but it’s not working.

After that I implemented a logic using virtual extension with follow me as external number.
Below is my code:-

exten => xxxx,1,Set(GROUP()={CDR(dst)}) exten => xxxx,n,GotoIf([{GROUP_COUNT({CDR(dst)})}>5]?busy)
exten => xxxx,n,Set(OUTBOUND_GROUP={CDR(dst)}) exten => xxxx,n,Dial(SIP/trunk-name/{CDR(dst)})
exten => xxxx,n(busy),Hangup

where xxxx is virtual extension which uses external number(xxxxxxxxxx) in follow me. And in local channel ${CDR(dst)} contains external number.

Thank you in advance


#9

More missing “$”. Please also mark your dialplan a preformatted text, using the </> button


#10

Thank you so much for your support. Above issue is resolved.