<HTML>
<HEAD>
<TITLE>Using instant_ringback</TITLE>
</HEAD>
<BODY>
<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>
<BR>
Thanks in advance.<BR>
<BR>
Kevin Snow<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>