Ticket #5557 (new Feature Requests)

Opened 1 year ago

Make MONITOR_FILENAME accessable to custom code

Reported by: tonils Assigned to:
Priority: minor Milestone: Undetermined
Component: Queues Version: 2.9-branch
Keywords: MONITOR_FILENAME inheritable Cc:
Confirmation: Unreviewed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

I would like to suggest make MONITOR_FILENAME indefinitely inheritable in [ext-queues] so that custom code to call an agent has access to the call recording filename for integration with other systems.

I believe that all is require is to change

$ext->add('ext-queues', $exten, '', new ext_setvar('MONITOR_FILENAME','/var/spool/asterisk/monitor/q${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID}'));

to

$ext->add('ext-queues', $exten, '', new ext_setvar('__MONITOR_FILENAME','/var/spool/asterisk/monitor/q${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID}'));

in admin/modules/queues/functions.inc.php

Tony