Summary:ASTERISK-07312: automon appears to ignore MONITOR_EXEC outbound
Reporter:zedders (zedders)Labels:
Date Opened:2006-07-09 10:10:13Date Closed:2007-03-05 10:44:53.000-0600
Versions:Frequency of
Description:I have 2 contexts, one for inbound calls and one for outbound. My dialplan is implemented in AEL and both contexts call the same macro to set the MONITOR_EXEC variable:


I modified the shell script to write debugging information and it turns out that it only gets called when automon is called on an incoming call. An outgoing one appears to ignore the variable completely (/bin/cmpenc.sh does not get executed).

I am specifying wW as options in the Dial() application.


Reported as a bug because I can't see a reason why it would only work on incoming calls and not on outgoing ones when they are set up the same way. I checked the asterisk console log and the variables are being correctly set each time.

Comments:By: zedders (zedders) 2006-07-09 10:11:30

I'm off to a great start with an incorrect summary - it honours the variable for inbound calls but does not for outgoing.

Hope that clears up the confusion.

By: Serge Vecher (serge-v) 2006-07-10 09:25:10

I wonder if we'll see anything useful with debug output ...

1) Make sure your logger.conf has the following line:
  console => notice,warning,error,debug
3) restart Asterik.
4) Save complete console log to file and _attach_ said file to the bug.


By: Jason Parker (jparker) 2006-07-10 11:55:22

Can you include a small example of a failing incoming and outgoing dialplan?

By: Serge Vecher (serge-v) 2006-08-08 11:15:40

no response from reporter. Please reopen if you are able to reproduce and ready to answer questions.

By: Jared Smith (jsmith) 2007-03-05 10:44:53.000-0600

I don't know if anybody cares anymore, but here's a simple way to fix this problem.


Notice the underscores before the variable names?  That tells Asterisk that they should be inherited across to the *called* channel.