<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Kevin,<div><br></div><div>You can't call&nbsp;that&nbsp;function&nbsp;directly,&nbsp;you&nbsp;need&nbsp;to&nbsp;tell&nbsp;the&nbsp;core&nbsp;to&nbsp;bridge&nbsp;the&nbsp;2&nbsp;channels&nbsp;together,&nbsp;or&nbsp;else&nbsp;you&nbsp;end&nbsp;up&nbsp;with&nbsp;2&nbsp;threads&nbsp;trying&nbsp;to&nbsp;do&nbsp;media&nbsp;on&nbsp;the&nbsp;same&nbsp;thread.</div><div><br></div><div>Look at&nbsp;switch_ivr_uuid_bridge(const char *originator_uuid, const char *originatee_uuid);</div><div><br></div><div>Also don't forget to&nbsp;switch_core_session_rwunlock() the session you got out of originate, FS uses reader-writer locks as a reference counting system for session structures, the session thread will do a write lock before freeing the memory. If your call doesn't disappear, you probably are missing that unlock (ivr_originate locks it before returning)</div><div><br><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><div><br></div></span></div></div></span><br class="Apple-interchange-newline"> </div><br><div><div>On 13-Jul-09, at 6:20 PM, Kevin Snow wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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; "><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial; font-size: 12px; ">switch_ivr_multi_threaded_bridge</span></span></blockquote></div><br></div></body></html>