<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 12px; ">Kevin,</span></div><span class="Apple-style-span" style="font-size: 12px; "><div><br></div><div>From first sight it looks like you aren't bridging the right uuid.</div><div>Hop on #freeswitch-dev and I can guide you a bit more through the core API.</div><div><br></div><div><br></div></span><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 12px; "><div>Mathieu Rene</div><div>Avant-Garde Solutions Inc</div><div>Office: + 1 (514) 664-1044 x100</div><div>Cell: +1 (514) 664-1044 x200</div><div><a href="mailto:mrene@avgs.ca">mrene@avgs.ca</a></div><div><br></div></span></div></div></span><br class="Apple-interchange-newline"> </div><br><div><div>On 13-Aug-09, at 1:54 PM, Kevin Snow wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div> <font face="Geneva, Verdana, Helvetica, Arial"><span style="font-size:12.0px"><br> Guys,<br> <br> In my module (written in C), I have a call answering edge case that I think there must be an easier way than what I’m doing. Or, more correctly, a right way to do this and I’m currently not doing that.<br> <br> I have an active/established call. An incoming SIP call arrives and I send it off to switch_ivr_originate to ring my endpoints. Based on action outside of Freeswitch, I want to stop the ringing and have an endpoint from the established call answer this ringing call. I have a custom FS event generated to indicate this condition. In this event handler I want to take a channel from the active call and answer this incoming call. <br> <br> Here’s what I’m currently doing. <br> <br> In my event handler I’m taking the endpoint of the active call and sending to a specific dialplan<br> This dialplan has it call my C application.<br> At this point the application is the session of the endpoint and it can get the session that’s currently ringing.<br> It gets the session of the ringing channel<br> It uses switch_channel_answer to answer the ringing channel.<br> Then it uses switch_ivr_uuid_bridge to bridge these two endpoints.<br> <br> Seems simple enough but it’s not working. <br> <br> <br> The problems I have are:<br> <br> Doing this seems to make the switch_ivr_originate that was ringing the endpoints fail with ORIGINATOR_CANCEL. I special case this but it leads me to believe I’m going about this the wrong way. I’m not trying to cancel it, I want to answer it. <br> <br> I’m not breaking the bridge of the original established call. That too seems wrong. I think I should be doing something there but it’s not clear what.<br> <br> <br> Is there a better way to handle this?<br> <br> <br> Thanks<br> <br> Kevin Snow<br> <br> <br> <br> </span></font> </div>  _______________________________________________<br>FreeSWITCH-dev mailing list<br><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev<br>http://www.freeswitch.org<br></blockquote></div><br></body></html>