<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, "Michael Jerris" <mike@jerris.com> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>actually, your passing these to originate, … but your not setting anything on the session doing the originate, ringback should be there, not in params iirc. Possibly instant_ringback as well. 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’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, "ringback", "%(2000, 4000, 440.0, 480.0)"); <BR>
<BR>
Should I set it differently? Maybe that’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, "Michael Jerris" <mike@jerris.com> 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’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:10.0px'><BR>
switch_event_t* ovars = NULL;<BR>
switch_event_create(&ovars, SWITCH_EVENT_REQUEST_PARAMS); <BR>
switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "ignore_early_media", "true"); <BR>
switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "instant_ringback", "true");<BR>
switch_status_t rc = switch_ivr_originate(session, &sipSession, &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/"><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><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>