you set ringback on session and you set instant_ringback in the ovars<br><br><br><div class="gmail_quote">On Fri, Feb 5, 2010 at 12:29 PM, Kevin Snow <span dir="ltr">&lt;<a href="mailto:kevin.snow@ooma.com">kevin.snow@ooma.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
<font face="Verdana, Helvetica, Arial"><span style="font-size: 12px;"><br>
Guys,<br>
<br>
I’m trying something that is seemingly so simple but isn’t working for me. I want to ignore early media and provide instant ringback.<br>
<br>
My module is written in C. I’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’s getting the vars ok because I can tell it’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’s a code snippet.<br>
<br>
</span></font><font size="2"><font face="Monaco, Courier New"><span style="font-size: 10px;"><br>
    switch_event_t* ovars = NULL;<br>
    switch_event_create(&amp;ovars, SWITCH_EVENT_REQUEST_PARAMS);  <br>
    switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM,  &quot;ignore_early_media&quot;, &quot;true&quot;);  <br>
    switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM,  &quot;instant_ringback&quot;, &quot;true&quot;);<br>
    switch_status_t  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: 12px;"><br>
<br>
Thanks in advance.<br>
<br>
Kevin Snow<br>
<br>
</span></font>
</div>


<br>_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:+19193869900<br>