[asterisk-users] records inbound and outbound calls

Danny Nicholas danny at debsinc.com
Wed Mar 2 11:52:41 CST 2011


  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of salaheddine
elharit
Sent: Wednesday, March 02, 2011 11:40 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] records inbound and outbound calls

 

<snip>

I copied the test context into my dialplan and ran it.
/var/spool/asterisk/monitor/test.wav was created with the audio of my call
(including the ringing).

How I did it

exten => 3009,1,Answer()

exten => 3009,2,MixMonitor(test.wav|av(0)V(0))

exten => 3009,3,Dial(SIP/144)

exten => 3009,4,Hangup()

 

How I would suggest you do it

exten => 100,1,Answer()

exten => 100,2,MixMonitor(test_${UNIQUEID}.wav|av(0)V(0))

exten => 100,3,Dial(SIP/222)

exten => 100,4,Hangup() 

 

This way, you get a new file for each call instead of overwriting
/v/s/a/m/test.wav each time.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110302/cb58519c/attachment-0001.htm>


More information about the asterisk-users mailing list