<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-dev] Using instant_ringback</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Ahhh....That makes sense and works perfectly. I knew I was missing something.<BR>
<BR>
Thanks!<BR>
<BR>
Kevin<BR>
<BR>
<BR>
<BR>
On 2/5/10 11:23 AM, &quot;Michael Jerris&quot; &lt;mike@jerris.com&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>actually, your passing these to originate, &#8230; but your not setting anything on the session doing the originate, ringback should be there, not in params iirc. &nbsp;Possibly instant_ringback as well. &nbsp;We should probably have better docs on which leg vars effect.<BR>
<BR>
Mike<BR>
<BR>
On Feb 5, 2010, at 2:05 PM, Kevin Snow wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>I tried with with and without setting, when I copy/pasted below was the without. It didn&#8217;t seem to matter.<BR>
<BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:10.0px'>switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, &nbsp;&quot;ringback&quot;, &quot;%(2000, 4000, 440.0, 480.0)&quot;); &nbsp;<BR>
<BR>
Should I set it differently? Maybe that&#8217;s my issue.<BR>
<BR>
Kevin<BR>
<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
<BR>
<BR>
On 2/5/10 10:49 AM, &quot;Michael Jerris&quot; &lt;mike@jerris.com&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>do you set the ringback var too?<BR>
<BR>
On Feb 5, 2010, at 1:29 PM, Kevin Snow wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
Guys,<BR>
<BR>
I&#8217;m trying something that is seemingly so simple but isn&#8217;t working for me. I want to ignore early media and provide instant ringback.<BR>
<BR>
My module is written in C. I&#8217;m setting ignore_early_media and instant_ringback to true in a switch_event header and passing it in via the ovars param to switch_ivr_originate. It&#8217;s getting the vars ok because I can tell it&#8217;s ignoring early media, but there is no ring back to the caller. <BR>
<BR>
Are there other flags I need in conjunction with these two to hear ringback? I must be missing something.<BR>
<BR>
Here&#8217;s a code snippet.<BR>
<BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:10.0px'><BR>
&nbsp;&nbsp;&nbsp;&nbsp;switch_event_t* ovars = NULL;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;switch_event_create(&amp;ovars, SWITCH_EVENT_REQUEST_PARAMS); &nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, &nbsp;&quot;ignore_early_media&quot;, &quot;true&quot;); &nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, &nbsp;&quot;instant_ringback&quot;, &quot;true&quot;);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;switch_status_t &nbsp;rc = switch_ivr_originate(session, &amp;sipSession, &amp;cause, data, timelimit, NULL, caller_name, caller_num, NULL, ovars, SOF_NONE);<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:10.0px'>_______________________________________________<BR>
FreeSWITCH-dev mailing list<BR>
FreeSWITCH-dev@lists.freeswitch.org<BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a> <a href="http://www.freeswitch.org/">&lt;http://www.freeswitch.org/&gt;</a> <BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:10.0px'><BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>_______________________________________________<BR>
FreeSWITCH-dev mailing list<BR>
FreeSWITCH-dev@lists.freeswitch.org<BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:10.0px'>_______________________________________________<BR>
FreeSWITCH-dev mailing list<BR>
FreeSWITCH-dev@lists.freeswitch.org<BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:10.0px'><BR>
</SPAN></FONT></FONT>
</BODY>
</HTML>