When I place a call using Asterisk Desktop Assistant (ADA), the Monitor() function is only recording the first leg of the call. i.e. When my local extension is called by Asterisk.
The recording then seems to end, then the call continues to the destination.
Here is an excerpt from the log. Any ideas how I can record the call when using ADA?
Jan 5 13:01:11 VERBOSE[13666] logger.c: – Executing SetCallerID(“Local/666@ada-c0c2,1”, “XXXXXXXXXXX”) in new stack
Jan 5 13:01:11 VERBOSE[13666] logger.c: – Executing NoOp(“Local/666@ada-c0c2,1”, “testingtesting123”) in new stack
Jan 5 13:01:11 VERBOSE[13666] logger.c: – Executing Monitor(“Local/666@ada-c0c2,1”, “|20100105-130111-EXT666-XXXXXXXXXXX|m”) in new stack
Jan 5 13:01:11 VERBOSE[13666] logger.c: – Executing NoOp(“Local/666@ada-c0c2,1”, “666”) in new stack
Jan 5 13:01:11 VERBOSE[13666] logger.c: – Executing Dial(“Local/666@ada-c0c2,1”, “IAX2/gradwell-out/XXXXXXXXXXX”) in new stack
Jan 5 13:01:11 VERBOSE[13666] logger.c: – Called gradwell-out/XXXXXXXXXXX
Jan 5 13:01:13 VERBOSE[13666] logger.c: – IAX2/gradwell-out-4 is making progress passing it to SIP/666-08e988f0
Jan 5 13:01:17 VERBOSE[13666] logger.c: – IAX2/gradwell-out-4 answered SIP/666-08e988f0
Jan 5 13:01:22 VERBOSE[13666] logger.c: – Hungup 'IAX2/gradwell-out-4’
Jan 5 13:01:22 VERBOSE[13666] logger.c: == Spawn extension (ada, XXXXXXXXXXX, 5) exited non-zero on ‘SIP/666-08e988f0’
A file is created by monitor() but it is always 1K in size. If you dial direct from the handset recordings work fine.
The discrepancy between dialplan and log is because I was making various changes all day to attempt to get it to work. Following your post I did alot of reading about the ‘local’ channel and the \n does seem very relevant. However, I can’t see how I could implement it as it looks like where I would put it is part of what ADA sends to the AMI.
Thankfully, the problem does not exist when I try on version 1.6 so I am hoping that upgrading the customer from 1.2.24 to 1.4.28 will resolve it… I am upgrading now, then I will fix all the broken stuff, then I will try it and report back.
Upgrade went OK, ADA started acting very differently, seemed to be giving varying results after restart (well it is beta I guess), then I went to Nojee (the client had been asking for it) and it worked like a charm so I’ll leave it there!