<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19154">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>I found a way to replace transfer_ringback</FONT></DIV>
<DIV><FONT size=2>and produce a non blocking tone in case of a-leg answered 
already</FONT></DIV>
<DIV><FONT size=2>(like after an ivr option)</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp; &lt;action application="displace_session" 
data="$${sounds_dir}/extras/ringback.wav m"/&gt;<BR>&nbsp;&nbsp;&lt;action 
application="set" data="send_silence_when_idle=1400"/&gt;</FONT></DIV>
<DIV><FONT size=2>&nbsp; if you&nbsp; wish to use sleep before answer or bridge 
you can use it, slience_when_idle is done to send RTP packets</FONT></DIV>
<DIV><FONT size=2>and let the a-leg to continue to hear the tone</FONT></DIV>
<DIV><FONT size=2>&nbsp; &lt;action application="sleep" 
data="2000"/&gt;</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>unfortunately displace_session doesn't have any stop option, 
so it needs to use uuid_displace</FONT></DIV>
<DIV><FONT size=2>&lt;action application="set" data="api_res=${uuid_displace 
${uuid} stop $${sounds_dir}/extras/ringback.wav}"/&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>or use it with execute_on_answer for example if you don't when the b-leg 
will answer...</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hope it helps</DIV>
<DIV>&nbsp;</DIV>
<DIV>Franck<BR>&nbsp; </FONT></DIV>
<DIV><FONT size=2>&nbsp;</DIV></FONT>
<DIV><FONT size=2>&nbsp;</DIV></FONT>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
dir=ltr>
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=infos@madovsky.org href="mailto:infos@madovsky.org">Madovsky</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=freeswitch-users@lists.freeswitch.org 
  href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, October 29, 2011 4:41 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> transfer_ringback and ivr</DIV>
  <DIV><BR></DIV>
  <DIV><FONT size=2>I didnt' succeed to make transfer_ringback work</FONT></DIV>
  <DIV><FONT size=2>after an ivr and play_and_get digits and before transfer 
  app.</FONT></DIV>
  <DIV><FONT size=2>must I set something else or is it the wrong variables to 
  create</FONT></DIV>
  <DIV><FONT size=2>a ringback if a-leg answered already ?</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>Thanks</FONT></DIV>
  <DIV><FONT size=2><BR>Franck</FONT></DIV></BLOCKQUOTE></BODY></HTML>