I am trying to get the feature automon working on my asterisk box. I have the global variable definition DYNAMIC_FEATURES=>automon in my extensions.conf underneath [global], and the command to dial an extension is set as exten => s,4,Dial(SIP/${ARG2},15,rtTwW). My features.conf has the line automon => *1 uncommented. When I press *1 on my phone during a call, nothing happens, nothing is displayed in the asterisk console, and no files are created in /var/spool/asterisk/monitor. What should I do?
check the feature is showing as available. CLI > show features
is automon there ? so you also have a featuredigittimeout set ? are you putting the digits in quickly enough ? is DTMF working correctly (try a Read() and SayDigits() to prove that one)
int3grate: Also if you are running a firewall you may need to open some ports. I also had problems with my SuSe 9.0 box where the adjustment to the UDP ports had to be done manually rather than through yast. You can find more on firewall ports on voip-info.org
baconbuttie: when you say that digits need tp be put in quickly enough I presume that you mean the space between the * and the 1. I have been having intermittent problems recording incoming calls, sometimes it works, sometimes not. I presume that you can press *1 at any time after a call is started? Is a message sent to the asterkisk console if monitoring is successfully started?
i have had a few times where only the default feature settings get loaded … but i haven’t tracked down why/when etc yet.
i’ve also had times when automon is requested but nothing happens. setting featuredigittimeout to longer helps, particularly if your UA isn’t that quick at sending the tones. you should see Asterisk log to the console (depending on your verbosity level) the feature request. and the filename being recorded.
and DTMF not being configured correctly is also a common cause of this problem. i use exten => 475,1,Answer()
exten => 475,n,Playback(beep)
exten => 475,n,Read(mydigits)
exten => 475,n,Wait(1)
exten => 475,n,SayDigits(${mydigits})
exten => 475,n,Hangup()
to be able to see whether DTMF is being “seen” or not.
The command:
Is not not a valid command in my compilation of asterisk.
I tried the code you gave me to test DTFM:
exten => 475,1,Answer()
exten => 475,2,Playback(beep)
exten => 475,3,Read(mydigits)
exten => 475,4,Wait(1)
exten => 475,5,SayDigits(${mydigits})
exten => 475,6,Hangup()
When I dialed 475, then pressed *1 after the beep, and then #, it played back what I had pressed correctly (*1). Featuredigittimeout is set the 500, which is the default.
I also do not have I firewall between my phones and the pbx. What should I try next?
[quote=“int3grate”]The command:
Is not not a valid command in my compilation of asterisk.
[/quote]
what version are you using ?
1.0.9, thats probably why it’s not working…
features in 1.0.9 STABLE were a bit thin IIRC. in HEAD they worked ok, but of course, that became 1.2
any chance of you upgrading ? i might have a good tarball of 1.0.9 HEAD if you can’t, and can’t locate one.
I followed baconbuttie’s advice and injected a 475 extension to check the *1 and all is ok. “star one” returned every time.
Now with the following extensions.conf
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
[globals]
DYNAMIC_FEATURES=automon
[default]
exten => s,1,Answer()
exten => s,n,Monitor()
exten => s,n,Dial(Zap/1,20,wW)
exten => s,n,Playback(vm-nobodyavail)
exten => s,n,Voicemail(u1234@default)
exten => s,n,Hangup()
exten => 20,1,Answer()
exten => 20,n,Dial(Zap/1,20,wW)
exten => 21,1,Answer()
exten => 21,n,Dial(SIP/21,20,wW)
exten => 475,1,Answer()
exten => 475,n,Playback(beep)
exten => 475,n,Read(mydigits)
exten => 475,n,Wait(1)
exten => 475,n,SayDigits(${mydigits})
exten => 475,n,Hangup()
exten => _XXXXXXX,1,Dial(Zap/4/613${EXTEN},wW)
exten => _613XXXXXXX,1,Dial(Zap/4/${EXTEN},wW)
exten => _1613XXXXXXX,1,Dial(Zap/4/${EXTEN},wW)
exten => _1604XXXXXXX,1,Dial(Zap/4/${EXTEN},wW)
exten => _1905XXXXXXX,1,Dial(Zap/4/${EXTEN},wW)
exten => _1403XXXXXXX,1,Dial(Zap/4/${EXTEN},wW)
exten => _1888XXXXXXX,1,Dial(Zap/4/${EXTEN},wW)
exten => _1709XXXXXXX,1,Dial(Zap/4/${EXTEN},wW)
exten => _1877XXXXXXX,1,Dial(Zap/4/${EXTEN},wW)
exten => _1866XXXXXXX,1,Dial(Zap/4/${EXTEN},wW)
exten => _1800XXXXXXX,1,Dial(Zap/4/${EXTEN},wW)
my calls to 7 digit numbers can be recorded every time with *1, but calls to 1-866 numbers are not recorded. I set verbosity to 4 and again, with the 7 digit numbers I get the message that the *1 was received and acted upon, with 1-866 numbers I get no messages apart from the number being dialled. I have not tested other numbers as yet. Is there anything in this conf that would stop automon from being recognized for these numbers?
In answer to my own question, the conf appears to be fine, since *1 is now being recognized where it was not before. It seem to be very important to wait until the call is actually in progress before the *1. I wonder if there is a flag that is set which will allow the *1 to be recognized that just occasionally does not get set properly?
#1 seems to work a lot better than *1 with my setup. I get a lot more effective responses with the #.
The initial # while not recording always generates a native bridge message before detecting the feature combination. This does not happen once the recording is in progress. Using ‘*’ frequently generates the native bridge message and then nothing afterwards.
Anyway, things seem to be better with #.