Made handler priorities configurable.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2302 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
8dad79841b
commit
f9dc572467
|
@ -4,7 +4,7 @@
|
|||
; account: string: Name of the database account used in queries
|
||||
;account=
|
||||
|
||||
; priority: int: Priority of message handlers
|
||||
; priority: int: Default priority of message handlers, 0 to disable them
|
||||
;priority=50
|
||||
|
||||
; rescan: int: Period of polling for available operators, in seconds
|
||||
|
@ -14,6 +14,23 @@
|
|||
;mintime=500
|
||||
|
||||
|
||||
[priorities]
|
||||
; Handler priorities for each message, override priority from [general]
|
||||
; Each handler can be disabled by setting priority 0
|
||||
|
||||
; call.execute: int: Priority of call.execute handler
|
||||
;call.execute=
|
||||
|
||||
; call.answered: int: Priority of call.answered handler, do not set to 0
|
||||
;call.answered=
|
||||
|
||||
; chan.hangup: int: Priority of chan.hangup handler, do not set to 0
|
||||
;chan.hangup=
|
||||
|
||||
; call.drop: int: Priority of call.drop handler, 0 disables dropping queued calls
|
||||
;call.drop=
|
||||
|
||||
|
||||
[queries]
|
||||
; SQL queries that get data about the queue and operators
|
||||
|
||||
|
|
|
@ -746,10 +746,10 @@ void QueuesModule::initialize()
|
|||
m_init = true;
|
||||
setup();
|
||||
int priority = s_cfg.getIntValue("general","priority",50);
|
||||
installRelay(Execute,priority);
|
||||
installRelay(Answered,priority);
|
||||
installRelay(Private,"chan.hangup",priority);
|
||||
installRelay(Drop,priority);
|
||||
installRelay(Execute,s_cfg.getIntValue("priorities","call.execute",priority));
|
||||
installRelay(Answered,s_cfg.getIntValue("priorities","call.answered",priority));
|
||||
installRelay(Private,"chan.hangup",s_cfg.getIntValue("priorities","chan.hangup",priority));
|
||||
installRelay(Drop,s_cfg.getIntValue("priorities","call.drop",priority));
|
||||
}
|
||||
|
||||
}; // anonymous namespace
|
||||
|
|
Loading…
Reference in New Issue