<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
I can be wrong but most likely it is possible via event_socket only. So you have to listen events on FS from some script and when the call is &nbsp;bridged, &nbsp;the script must playback the beep to both legs.<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: rstevens@robcoit.com<br>Date: Mon, 29 Oct 2012 00:03:51 -0400<br>To: freeswitch-users@lists.freeswitch.org<br>Subject: [Freeswitch-users] Recording calls with a beep<br><br><div><span style="">Hi All,<br><br><br><br>I have been searching the wiki for a good way to insert a beep every 10 seconds into a call that is being recorded (I plan on recording all calls to Comcast from here on out). &nbsp;This is my dialplan:<br><br>&lt;extension name="CallCentric.18002662278" &gt;<br>&nbsp;&nbsp;&lt;condition field="destination_number" expression="<a target="_blank">18002662278</a>" &gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set" data="sip_h_X-accountcode=${accountcode}" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set" data="sip_h_X-Tag=" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set" data="call_direction=outbound" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set" data="hangup_after_bridge=true" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set" data="effective_caller_id_name=${outbound_caller_id_name}" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set" data="effective_caller_id_number=${outbound_caller_id_number}" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set" data="inherit_codec=true" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set" data="RECORD_TITLE=Recording ${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set" data="RECORD_COPYRIGHT=(c) 2012" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set" data="RECORD_ARTIST=FreeSwitch" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set" data="RECORD_COMMENT=FreeSwitch" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set" data="RECORD_STEREO=true" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="displace_session" data="tone_stream://%(100,15000,800);loops=-1" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="record_session" data="$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="bridge" data="sofia/gateway/CallCentric/18002662278" /&gt;<br><br>&nbsp;&nbsp;&lt;/condition&gt;<br>&lt;/extension&gt;<br><br>I would also like to playback a tone so they know I'm recording them (for legal reasons). &nbsp;Per the wiki, the displace_session does indeed play back a tone every 15 seconds. &nbsp;But I'm afraid it never bridges the call.. &nbsp;It's probably something stupid, but what am I doing wrong here? &nbsp;I hear the intial beep after dialing the number but no early media with dead air on the line. &nbsp;What is the best way to insert a tone every x seconds while both legs of the call are in progress and so that each party hears the tone?<br><br><br>Also, when testing this without tone_stream, the recording works (horaah) but the recording itself is really ssssssssllllooowwwwww. &nbsp;I am still working on that one, its probably in the wiki, i'm looking now, but if anyone has a suggestion let me know.<br><br><br></span><br><span style="">Best regards,</span><div style=""><br></div><div style="">Robert Stevens</div></div><br>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

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</div>                                               </div></body>
</html>