VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
zolotov at altron.ua Guest
|
Posted: Mon Sep 01, 2008 12:05 pm Post subject: [Freeswitch-users] How to save RTP-audiostream to a file? |
|
|
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:
-------------------------------------------------------------------
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
|
Posted: Mon Sep 01, 2008 12:27 pm Post subject: [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:
|
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
|
Posted: Tue Sep 02, 2008 2:23 am Post subject: [Freeswitch-users] How to save RTP-audiostream to a file? |
|
|
My fault, henceforth I promise not to do it!
Evgeniy.
|
|
Back to top |
|
|
|
|
|
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
|