[RESOLVED] Hit and miss with automon

Solution to following problem was to open up enough UDP ports in the firewall. Now all is fine. I hope someone else can benefit from this experience.


I’m having problems with automon. Recording sometimes works and sometimes not depending on which extensions are in use and from which set *1 is initiated. This seems to be consistent with the exception of calls to the PSTN network, where calls may sometimes be recorded, other times not. I don’t see anything in /var/log/messages or asterisk messages. Suggestions would be appreciated.

setup:

Asterisk 1.2.9.1 running on Suse 9.0 (192.168.0.101)
Digium TDM100 with one FXO and one FXS
20 is a VTech analog cordless phone connected to FXS
21 is an X-Lite version 3 - 29712 SIP softphone on win2000 desktop (192.168.0.23)
connection to PSTN via FXO card

observed (all calls go through no problem)

  1. call from 20 to 21, *1 attempt to record from 20 succeeds
  2. call from 20 to 21, *1 from 21 fails
  3. call from 21 to 20, *1 from 21 fails
  4. call from 21 to 20, *1 from 20 succeeds
  5. call from 21 to PSTN network number, *1 from 21 fails
  6. call from 20 to PSTN network number, *1 sometimes fails, sometimes succeeds

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,Dial(Zap/1,20,wW)
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 => _XXXXXXX,1,Dial(Zap/4/613${EXTEN},wW)
exten => _613XXXXXXX,1,Dial(Zap/4/${EXTEN},wW)

features.conf

[general]
parkext => 700 ; What ext. to dial to park
parkpos => 701-720 ; What extensions to park calls on
context => parkedcalls ; Which context parked calls are in

[featuremap]
automon => *1 ; One Touch Record
atxfer => *2 ; Attended transfer

[applicationmap]
;testfeature => #9,callee,Playback,tt-monkeys ;Play tt-monkeys to
;callee if #9 was pressed

monitor directory contents
-rw-r–r-- 1 root root 277164 Jun 24 08:36 auto-1151152597-Zap-1-1-5458550.wav
-rw-r–r-- 1 root root 119404 Jun 24 09:25 auto-1151155541-Zap-1-1-21.wav
-rw-r–r-- 1 root root 88364 Jun 24 09:59 auto-1151157581-20-21.wav
-rw-r–r-- 1 root root 216044 Jun 25 14:44 auto-1151261070-Zap-1-1-21-in.wav
-rw-r–r-- 1 root root 217324 Jun 25 14:44 auto-1151261070-Zap-1-1-21-out.wav
-rw-r–r-- 1 root root 170284 Jun 25 14:46 auto-1151261153-20-21-in.wav
-rw-r–r-- 1 root root 171244 Jun 25 14:46 auto-1151261153-20-21-out.wav