Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] How to save RTP-audiostream to a file?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
zolotov at altron.ua
Guest





PostPosted: Mon Sep 01, 2008 12:05 pm    Post subject: [Freeswitch-users] How to save RTP-audiostream to a file? Reply with quote

We had a question:

Quote:
With which application and API is possible to keep full content of RTP audiostream to a file?
Our FreeSWITCH is configured in such manner that RTP-traffic directing throw FreeSWITCH,
but not between UAs.

And took answer on it:

Quote:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_record_session

-------------------------------------------------------------------

On it HELP we have mase such extension :

<extension name="ext-record">
<condition field="destination_number" expression="^4010$">
<action application="set" data="RECORD_TITLE=Recording ${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_COPYRIGHT=(c) 2008, Altron Inc." />
<action application="set" data="RECORD_SOFTWARE=FreeSwitch" />
<action application="set" data="RECORD_ARTIST=Registration" />
<action application="set" data="RECORD_COMMENT=!!!" />
<action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_STEREO=true"/>
<action application="record_session" data="$${base_dir}/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
<action application="set" data="ringback=${us-ring}"/>
<action application="bridge" data="sofia/nat/${dialed_ext}@localhost:5062 ([email]sofia/nat/@localhost:5062[/email])" />
<action application="answer" />
</condition>
</extension>

This draft works already, but there are new questions:

1. It's seems, that record of RTP session can occur only when RTP stream is routed through FS: UA-> FS-> UA, instead of directly (in LAN) UA-> UA.

For this purpose, as we understand, it is necessary to set values in variables of FreeSWITCH:

<action application="set" data="bypass_media=..."/>
<action application="set" data="proxy_media=..."/>
<action application="set" data="inbound_late_negotiation=..."/> ( for SIP profile nat for extension ext-record).

What values need to be set in variables that all RTP traffic passed through FreeSWITCH?


2. At extension ext-record we set record_session then we do bridge to leg B. As it is possible to configurate registration from another extension, for example:

<extension name="XXXX">
<condition field="destination_number" expression="^XXXX$">
...
<action application="execute_extension" data="ext-record XML public "/>
...
<action application="bridge" data="sofia/nat/YYYY" />
...
</condition>
</extension>

- where own extension not call any leg B, but only record session XXXX->YYYY.
How we are able to do this???

Thankful in advance, Evgeniy.
Back to top
mike at jerris.com
Guest





PostPosted: Mon Sep 01, 2008 12:27 pm    Post subject: [Freeswitch-users] How to save RTP-audiostream to a file? Reply with quote

On Sep 1, 2008, at 1:03 PM, ??????? ??????? wrote:
Quote:
We had a question:

Quote:
With which application and API is possible to keep full content of RTP audiostream to a file?
Our FreeSWITCH is configured in such manner that RTP-traffic directing throw FreeSWITCH,
but not between UAs.

And took answer on it:

Quote:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_record_session






Your questions are better suited for the users list. Please stop posting the same question to both lists.


Mike
Back to top
zolotov at altron.ua
Guest





PostPosted: Tue Sep 02, 2008 2:23 am    Post subject: [Freeswitch-users] How to save RTP-audiostream to a file? Reply with quote

My fault, henceforth I promise not to do it!

Evgeniy.

Quote:
From: Michael Jerris (mike@jerris.com)
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Sent: Monday, September 01, 2008 8:26 PM
Subject: Re: [Freeswitch-users] How to save RTP-audiostream to a file?



On Sep 1, 2008, at 1:03 PM, ??????? ??????? wrote:
Quote:
We had a question:

Quote:
With which application and API is possible to keep full content of RTP audiostream to a file?
Our FreeSWITCH is configured in such manner that RTP-traffic directing throw FreeSWITCH,
but not between UAs.

And took answer on it:

Quote:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_record_session






Your questions are better suited for the users list. Please stop posting the same question to both lists.


Mike


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services