Ok, somewhere in the dialplan I have the following:
exten => talk,n,Set(MONITOR_EXEC=/etc/asterisk/wav2mp3)
exten => talk,n,Set(RecordingFilename=${campaign_id}-${EPOCH}-${dial_number})
exten => talk,n,Monitor(wav,/media/ramdrive/${RecordingFilename},mb)
which generates the following log entry when executed:
[Apr 1 11:16:41] VERBOSE[18524] logger.c: -- Executing
[t...@custom-campaign0:2] Set("SIP/70.42.72.32-06d79110",
"MONITOR_EXEC=/etc/asterisk/wav2mp3") in new stack
[Apr 1 11:16:41] VERBOSE[18524] logger.c: -- Executing
[t...@custom-campaign0:3] Set("SIP/70.42.72.32-06d79110",
"RecordingFilename=3-1238602601-4163678622") in new stack
[Apr 1 11:16:41] VERBOSE[18524] logger.c: -- Executing
[t...@custom-campaign0:4] Monitor("SIP/70.42.72.32-06d79110",
"wav,/media/ramdrive/3-1238602601-4163678622,mb") in new stack
Now later on ini the script, I have the following:
exten =>
s,n,Set(RecordingFilename=${campaign_id}-${EPOCH}-${dial_number}-${MYAGENT2})
exten => s,n,ChangeMonitor(/media/ramdrive/${RecordingFilename})
Which gives the following error in the asterisk log:
[Apr 1 11:16:42] VERBOSE[18524] logger.c: -- Executing
[...@custom-campaign0-doit:23] Set("SIP/70.42.72.32-06d79110",
"RecordingFilename=3-1238602602-4163678622-529") in new stack
[Apr 1 11:16:42] VERBOSE[18524] logger.c: -- Executing
[...@custom-campaign0-doit:24] ChangeMonitor("SIP/70.42.72.32-06d79110",
"/media/ramdrive/3-1238602602-4163678622-529") in new stack
[Apr 1 11:16:42] WARNING[18524] res_monitor.c: Cannot change monitor
filename of channel SIP/70.42.72.32-06d79110 to
/media/ramdrive/3-1238602602-4163678622-529, monitoring not started
Am I missing something really stupid here or is this a bug?
Andre
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]