<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">set ringback before record_session and also set transfer_ringback because record_session causes an pre-answer.<div><br></div><div>/b</div><div><br><div><div>On Sep 21, 2009, at 2:13 PM, Svetik VOIP wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Hi,<br><br>I have trouble recording incoming calls with FreeSwitch.<br><br>I have followed the instruction from Misc. Dialplan Tools record session<br>(<a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_record_session">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_record_session</a>)<br>It works well for outgoing calls, but I have the problem with incoming calls.<br><br>The person who is calling does not hear ring tone, he hears just the silence until<br>I pick up the phone. Everything else is working, we can talk, conversation is recorded.<br><br>Here is a copy of my dialplan for incoming calls<br>/usr/local/freeswitch/conf/dialplan/public/voipms.xml<br><br><include><br> <extension name="voipms"> <!-- your provider or any name you'd like to call it --><br> <condition field="destination_number" expression="XXXXXXXXXX"> <!-- your DID for this gateway--><br> <action application="set" data="RECORD_TITLE=Recording ${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}"/><br> <action application="set" data="RECORD_COPYRIGHT=(c) 2009"/><br> <action application="set" data="RECORD_SOFTWARE=FreeSwitch"/><br> <action application="set" data="RECORD_ARTIST=FreeSwitch"/><br> <action application="set" data="RECORD_COMMENT=FreeSwitch"/><br> <action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/><br> <action application="set" data="RECORD_STEREO=true"/><br> <action application="set" data="RECORD_ANSWER_REQ=true"/><br> <action application="set" data="ringback=${us-ring}"/><br> <action application="record_session" data="$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/><br> <action application="bridge" data="user/user1@${domain_name}"/><br> </condition><br></include></span></blockquote></div><br></div></body></html>