[asterisk-users] Priority based softhangup
Danny Nicholas
danny at debsinc.com
Tue Mar 30 14:31:41 CDT 2010
AIUI, softhangup is strictly an address-type function. Using Steve's
suggestion, you could set a key with the priority at dial-time and when a
congested condition occurred, match the database for the lowest priority to
hangup. Something like this:
Exten => 100,1,noop(prioritized dialing)
Exten => 100,n,Set(callpri=${DB(Callpri/${EXTEN})})
Exten => 100,n,Dial..
Exten => 100-CONGESTION(softhang.agi,${callpri})
Softhang.agi is a program you write to see if the callpri is high enough to
cancel another call and dial or send back a message.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Steve Edwards
Sent: Tuesday, March 30, 2010 2:09 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Priority based softhangup
On Tue, 30 Mar 2010, mir shahnawaz wrote:
> Is it possible to softhangup a channel based on priority. I mean I want
> to put some calls in higher priority lets say 100. If all channels are
> busy and somebody wants to dial an extension with priority higher than
> 100. How can softhangup drop a line which has priority less than 100? I
> will appreciate your valuable help.
In Asterisk, a "priority" is the "step number" in a dialplan. For example:
exten = *,5, verbose(1,foo)
"5" is the priority.
It sounds like you want to have an "executive" class that can step on an
"underling's" call. Maybe setting a global channel variable or tracking
resource usage in a database would work.
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list