[asterisk-users] records inbound and outbound calls

Danny Nicholas danny at debsinc.com
Wed Mar 2 12:00:52 CST 2011


I made a sub-context 3009 in default to let me call from my phone "sipphone"
to my phone "144" and record the conversation.

 

  _____  

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:59 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] records inbound and outbound calls

 

thank you i have one question waht is 3009 is the called 

 

Regards

2011/3/2 Danny Nicholas <danny at debsinc.com>

  _____  

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.

 

 


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com
<http://www.api-digital.com/>  --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

 

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


More information about the asterisk-users mailing list