It seems that call-limit has been deprecated, so I am attempting to limit the amount of calls each peer can have, on a per peer basis.
Ultimately, Im trying to achieve call waiting enabled, or disabled.
I am using real-time for my sip peers, I have set callcounter = yes, and in queues I have set ringinuse = no. But I doubt that will do anything, as the peers arent in any queues.
I dont have a problem checking a field in the database before the call is made, but if thats the case, can anyone point me in the right direction of figuring out how to find channel status of a peer?
I guess the problem with group counts, is that I donât know how group counts work.
Iâve been reading into since posting though.
I found on a thread that call-limit was deprecated, but didnât know what its replacement was.
For reference, Im replacing a box that currently runs Asterisk 1.4.44⌠So Im still learning the ânewâ way. But I still am using the real-time and not AGI way.
Im to a point where if the extension receives an inbound call, they cannot receive another. Perfect.
But, if the extension makes a call out, they can still receive a call while the outbound call is still active. Its like the group count isnât checking for outbound channels?
This is what I have for my group setup. Where âCallInâ is the dialed extension, and âclimitâ is defined in the database as â1â.
exten => s,1,SET(GROUP()={CallIn})
same => n,SET(climit={ODBC_CW-CHECK({CallIn})})
same => n,GotoIf([{GROUP_COUNT()} > {climit}]?10)
same => n,Return()
The group count checks for any channels that are tagged with the group. Youâd need to show the console log showing that a group was set in such cases and to what.