[asterisk-users] Call preemption

Steve Edwards asterisk.org at sedwards.com
Wed Nov 8 13:14:55 CST 2017


Please don't top-post.

On Wed, 8 Nov 2017, Markus wrote:

> The task itself sounds like a job for an AGI script to me... check for amount 
> of calls, if 10, hangup one.
>
> But how do you determine the priority of a call?
>
>
> Am 07.11.2017 um 12:21 schrieb Jean Aunis:
>> Hello,
>> 
>> Has anyone already implemented some sort of call preemption in Asterisk ? I 
>> am trying to achieve something like this :
>> [...]
>> 
>> Does anyone have an idea ?

An AGI using AMI to do 'core show channels concise', parse the output, 
pick your victim, AMI to do 'channel request hangup x'

Note that there are 'race condition' opportunities.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
             https://www.linkedin.com/in/steve-edwards-4244281



More information about the asterisk-users mailing list