[asterisk-dev] automon and MONITOR_EXEC (fwd)

Kaloyan Kovachev kkovachev at varna.net
Fri Jan 26 00:27:57 MST 2007


 Use M() option in Dial to execute a Macro which sets the variable on the
callee channel when answered.

On Thu, 25 Jan 2007 16:50:14 -0700 (MST), John Williams wrote
> This didn't get any response on asterisk-users, but it's a fairly
> technical issue with how auto-monitor works.  Can anyone on this list give
> me some advice?  Should I submit a bug report: MONITOR_EXEC does not work
> with automon?
> 
> I have been trying to get Asterisk to NOT mix the in and out files from an
> auto-monitored call.  Something like this:
> 
>   exten => s,n,SetVar(MONITOR_EXEC=/bin/true)  ; do not delete files
>   exten => s,n,Dial(Zap/r1/${EXTEN},,wW)
> 
> Pressing *1 records as it should, but the recording is always mixed at the
> end of the call.
> 
> I have figured out that the monitor is being done to the callee channel
> instead of the caller channel (where MONITOR_EXEC is set).  So when the
> call ends, ast_monitor_stop looks for MONITOR_EXEC on the callee channel
> and gets a null.
> 
> Does anyone know a workaround for this?  How can I set a channel variable
> on the callee channel?
> 
> ~ John Williams
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev



More information about the asterisk-dev mailing list