Skip to content

Commit

Permalink
Do not register an extra REMOVEMEMBER in queue_log as asterisk does t…
Browse files Browse the repository at this point in the history
…hat for us since a long time. Prevents events with device instead of name polluting the queue_log
  • Loading branch information
asternic committed Jul 30, 2024
1 parent 3acc867 commit 409d77a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions queues/functions.inc/dialplan.php
Original file line number Diff line number Diff line change
Expand Up @@ -884,9 +884,9 @@ function queue_agent_del_toggle() {
$ext->add($id, $c, '', new ext_macro('user-callerid,SKIPTTL'));
$ext->add($id, $c, '', new ext_setvar('CALLBACKNUM','${AMPUSER}'));
$ext->add($id, $c, '', new ext_removequeuemember('${QUEUENO}','Local/${CALLBACKNUM}@from-queue/n'));
$ext->add($id, $c, '', new ext_gotoif('$["${MEMBERTECH}" = "Local"]', 'skiplocal'));
$ext->add($id, $c, '', new ext_removequeuemember('${QUEUENO}','${MEMBERTECH}/${CALLBACKNUM}'));
$ext->add($id, $c, '', new ext_userevent('RefreshQueue'));
$ext->add($id, $c, '', new ext_queuelog('${QUEUENO}','MANAGER','${IF($[${LEN(${AMPUSERCIDNAME})}>0]?${AMPUSERCIDNAME}:${AMPUSER})}','REMOVEMEMBER'));
$ext->add($id, $c, 'skiplocal', new ext_userevent('RefreshQueue'));
$ext->add($id, $c, '', new ext_macroexit());
}

Expand Down

0 comments on commit 409d77a

Please sign in to comment.