With Asterisk BE I am trying to record calls coming to a queue,. I am getting
the call to record, however the file name that the file saves to, is not the
correct one.
In my extensions.conf, I have the following entry to set the file name.
exten=> 0072,1,Answer
exten=> 0072,2,Ringing
exten=> 0072,3,Wait(2)
exten=> 0072,4,Set(AGENTFILENAME=${CALLERID(number)}-${TIMESTAMP}-${EXTEN:4})
exten=> 0072,5,Monitor(wav,${AGENTFILENAME}),m
exten=> 0072,6,Queue(NOC)
exten=> 0072,7,Hangup
include => parkedcalls
#include <users.conf>
I have also tried
exten=> 0072,4,Set(AGENTFILENAME=${CALLERID(number)}-${TIMESTAMP}-${EXTEN:4})
exten=> 0072,5,Monitor(wav,${AGENTFILENAME},m)
but this is what I am getting in the file name.
agent-1656-1164843488-241-in.wav
agent-1656-1164843230-229-in.wav
In the Asterisk console the name appears correctly however.
-- Executing Set("SIP/1656-b7d10740",
"AGENTFILENAME=1656-20061129-183350-") in new stack
-- Executing Monitor("SIP/1656-b7d10740",
"wav|1656-20061129-183350-|m") in new stack
-- Executing Queue("SIP/1656-b7d10740", "NOC") in new
stack
Ed Nu?ez
IT/Telecom Engineer
4037 Metric Drive
Winter Park, FL
(o) 407-384-4200 x 1656
(f) 407-384-4222
(c) 732-925-0730
Hi Ed -> With Asterisk BE I am trying to record calls coming to a queue,. I am getting the call to record, however the file name that the file saves to, is not the correct one. > In my extensions.conf, I have the following entry to set the file name. > > exten=> 0072,4,Set(AGENTFILENAME=${CALLERID(number)}-${TIMESTAMP}-${EXTEN:4}) > exten=> 0072,5,Monitor(wav,${AGENTFILENAME}),m > exten=> 0072,6,Queue(NOC) > > I have also tried > > exten=> 0072,4,Set(AGENTFILENAME=${CALLERID(number)}-${TIMESTAMP}-${EXTEN:4}) > exten=> 0072,5,Monitor(wav,${AGENTFILENAME},m) > > but this is what I am getting in the file name. > > agent-1656-1164843488-241-in.wav > > In the Asterisk console the name appears correctly however.First off, use the second syntax for Monitor() - i.e. with the 'm' inside the parentheses. Second, the ${EXTEN:4} effectively wipes out your extension number since it is only four digits, so it's not really necessary (unless you're also using it with longer extensions). Beyond that I can tell you that this looks to be an issue with Asterisk BE. I just tested and the same syntax works correctly with Asterisk 1.2.X. It would be a good idea to bring this up with Digium support. - Noah