Ticket #2875 (closed Bugs: fixed)

Opened 4 years ago

Last modified 4 years ago

macro-auto-blkvm

Reported by: josefu Assigned to:
Priority: crash Milestone: 2.5
Component: Queues Version: 2.4-branch
Keywords: queues auto- Cc:
Confirmation: Need testing SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

When i define a queue, in extensions_aditional.conf freepbx write this: exten => QUEUE_NUMBER,n,Set(_DIAL_OPTIONS=${DIAL_OPTIONS}M(auto-blkvm))

I think that de _DIAL_OPTIONS is not cleared correctly.

When a queue goes to itself after a "Max wait time", in the dial command, the macro-auto-blkvm gets added to the dial parameters again.

In the CLI i read this when the queue dials extensions (example after some entries in the queue):

-- Executing [s@macro-record-enable:5] NoOp?("Local/20@from-internal-912c,2", "No recording needed") in new stack

-- Executing [s@macro-exten-vm:9] Macro("Local/20@from-internal-912c,2", "dialtTwWM(auto-blkvm)M(auto-blkvm)M(auto-blkvm)M(auto-blkvm)M(auto-blkvm)M(auto-blkvm)M(auto-blkvm)|20") in new stack

PD: sorry for my bad english.

Change History

07/12/08 16:53:09 changed by p_lindheimer

  • confirmation changed from Unreviewed to Confirmed.
  • milestone changed from Cut Line to 2.5.

I think this is a dupe but for now moving to 2.5 either way to address

07/13/08 10:51:58 changed by p_lindheimer

  • confirmation changed from Confirmed to Need testing.

can you try this to the queues functions.inc.php:

Index: functions.inc.php
===================================================================
--- functions.inc.php (revision 5985)
+++ functions.inc.php (working copy)
@@ -174,7 +180,7 @@                                                                                                                                                                     
          $ext->add('ext-queues', $exten, '', new ext_setvar('__BLKVM_OVERRIDE', 'BLKVM/${EXTEN}/${CHANNEL}'));                                                                         
          $ext->add('ext-queues', $exten, '', new ext_setvar('__BLKVM_BASE', '${EXTEN}'));                                                                                              
          $ext->add('ext-queues', $exten, '', new ext_setvar('DB(${BLKVM_OVERRIDE})', 'TRUE'));                                                                                         
-         $ext->add('ext-queues', $exten, '', new ext_setvar('_DIAL_OPTIONS', '${DIAL_OPTIONS}M(auto-blkvm)'));                                                                         
+         $ext->add('ext-queues', $exten, '', new ext_execif('$["${REGEX("(M[(]auto-blkvm[)])" ${DIAL_OPTIONS})}" != "1"]', 'Set', '_DIAL_OPTIONS=${DIAL_OPTIONS}M(auto-blkvm)'));      
                                                                                                                                                                                        
          // Inform all the children NOT to send calls to destinations or voicemail                                                                                                     
          //                                                                                                                                                                            

07/13/08 19:34:51 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.