<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">do you set the ringback var too?<div><br><div><div>On Feb 5, 2010, at 1:29 PM, Kevin Snow wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>
<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>
&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;"ignore_early_media", "true"); &nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, &nbsp;"instant_ringback", "true");<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></div></blockquote></div><br></div></body></html>