Using Dial() with option w

has any body even used Dial() with w option for one touch recording? I’ve tried doing that but it din’t work.
my features.conf:

[featuremap]
;blindxfer => #1 ; Blind transfer
;disconnect => *0 ; Disconnect
automon => *1 ; One Touch Record
;atxfer => *2 ; Attended transfer

and my extention:


exten => 336,1,Set(DYNAMIC_FEATURES=automon)
exten => 336,n,Dial(SIP/336,wW)
exten => 336,n,Hangup

Any idea?

use it all the time, and can’t see why your example wouldn’t work. what version of Asterisk are you using ?

I am using 1.2.4-netsec on my test machine and 1.2.0-rc1 on another machine. The calls got thru the extension but no recorded files found in /var/spool/asterisk/monitor. Is there any thing to put in in the asterisk.conf?

make sure you have the right permissions in /var/spool/asterisk/* as missing dirs or dirs without perms for ‘asterisk’ can silently cause things to fail.

permission could hardly be a problem because MixMonitor() works.


exten => 336,1,Answer()
exten => 336,n,MixMonitor(/var/spool/asterisk/monitor/${UNIQUEID}.wav)
exten => 336,n,Dial(SIP/hoaianh)
exten => 336,n,StopMonitor()
exten => 336,n,Hangup()

recoded file found in /var/spool/asterisk/monitor


ast-test:/var/spool/asterisk/monitor# ls
1138864239.5.wav

asterisk runs as root

do other DTMF-reliant apps work ok ?

is there any logging during the call that would show a problem ?

well, other DTMF-reliant things work well.

No Warning, No Error shown in the debug console during the call, just no files found in /var/spool/asterisk/monitor when using Dial() with wW.