ennead-70866@mypacks.net
2007-May-22 19:12 UTC
[asterisk-users] Mix Dial, Chanspy and MixMonitor or Monitor
I have an application that requires I be able to dial into an asterisk box, then from there dial out to another user through a PSTN. I'd like to be able to both 1) record this call and 2) let another user dial in using something like ChanSpy to listen to the conversation. I can get this working by executing an auto-dial script to connect one end of a call to an outside Asterisk box which does the recording, and the local end which listens in via ChanSpy. Another user could then dial in and also listen via ChanSpy. The problem with this is that it's very clunky, and I'd like to keep everything local. Problem is that when I try to use Dial, Chanspy and MixMonitor I get no audio, which is why I do it on the outside Asterisk box. Here's a basic framework: ;;Main Asterisk Box [inbound] exten => dialout,1,Set(SPYGROUP=10001) exten => dialout,2,set(ALLREAD=5557771111) exten => dialout,3,dial(SIP/${ALLREAD}@remote_proxy) exten => dialout,4,hangup [listen-in] ; inbound portion of autodial or ; outside caller exten => monitor,1,answer exten => monitor,2,chanspy(all|qg(10001)) exten => monitor,3,hangup ;;Outside Asterisk Box [auto-dial-remote] ; call initiated by autodial exten => s,1,answer exten => s,2,mixmonitor(/tmp/test.wav) exten => s,3,hangup Any help would be appreciated. Best regards, Klive