<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@PMingLiU";
        panose-1:2 2 3 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:759639609;
        mso-list-type:hybrid;
        mso-list-template-ids:62061916 67698703 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1
        {mso-list-id:994644222;
        mso-list-type:hybrid;
        mso-list-template-ids:997768106 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l1:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l2
        {mso-list-id:1684472422;
        mso-list-type:hybrid;
        mso-list-template-ids:1621814502 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l2:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>Hello,<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I&#8217;m using event socket outbound and have a framework
that does stuff based on the events that come back (this includes my own IVR). &nbsp;What
I have now is an IVR system that allows 2 users to bridge to one another at
will, and to &#8216;unbridge&#8217; at will by catching DTMF events.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I have 2 requirements:<o:p></o:p></p>

<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span
style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>When one leg hangs up during a bridge, the other leg is
presented with the IVR<o:p></o:p></p>

<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span
style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>After a bridge, when one leg sends a DTMF tone, both
legs will be presented with the IVR and no longer be bridged (they can bridge
with other sessions again after this point if they desire)<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I have done multiple experiments by using netcat and 2
sessions.&nbsp; Here is what I have found:<o:p></o:p></p>

<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l1 level1 lfo3'><![if !supportLists]><span
style='font-family:Symbol'><span style='mso-list:Ignore'>&middot;<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]>The hangup_after_bridge variable does nothing
for me.&nbsp; I&#8217;ve set it on both legs, but whenever one leg hangs up
after a uuid_bridge, the other leg will automatically hang up<o:p></o:p></p>

<p class=MsoListParagraph><o:p>&nbsp;</o:p></p>

<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l1 level1 lfo3'><![if !supportLists]><span
style='font-family:Symbol'><span style='mso-list:Ignore'>&middot;<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]>I&#8217;ve tried setting &#8220;park_after_bridge=true&#8221;
on both legs, and this works to a certain extent.&nbsp; If one leg hangs up,
the other leg will be parked, and I can present that user with my IVR.&nbsp; This
meets requirement #1.&nbsp; However, requirement #2 won&#8217;t be met because:<o:p></o:p></p>

<p class=MsoListParagraph style='margin-left:72.0pt'><o:p>&nbsp;</o:p></p>

<p class=MsoListParagraph style='margin-left:72.0pt;text-indent:-18.0pt;
mso-list:l1 level2 lfo3'><![if !supportLists]><span style='font-family:"Courier New"'><span
style='mso-list:Ignore'>o<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;
</span></span></span><![endif]>If I set &#8220;park_after_bridge=true&#8221;
and one leg sends a DTMF tone to signal an unbridge, I will &#8220;unbridge&#8221;
the legs by &#8220;parking&#8221; both legs and I am able to present them both with
an IVR.&nbsp; If they decide to bridge with each other again (by selecting an
option in the IVR), I will attempt to do a uuid_bridge and this will FAIL! &nbsp;(both
parties do not hear each other.)&nbsp; In the simplest terms, I can&#8217;t do &#8220;uuid_bridge
uuidA uuidB&#8221;, &#8220;park&#8221;, &#8220;uuid_bridge uuidA uuidB&#8221;.<o:p></o:p></p>

<p class=MsoListParagraph style='margin-left:72.0pt'><o:p>&nbsp;</o:p></p>

<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l1 level1 lfo3'><![if !supportLists]><span
style='font-family:Symbol'><span style='mso-list:Ignore'>&middot;<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]>With &#8220;park_after_bridge=false&#8221;
(default), I can do &#8220;uuid_bridge uuidA uuidB&#8221;, &#8220;park&#8221;, &#8220;uuid_bridge
uuidA uuidB&#8221; with no issues, meeting requirement #2.&nbsp; However, this
will not meet requirement #1, because when one leg hangs up, it will trigger a
hangup on the other.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Please help.&nbsp; How can I meet both of my requirements?<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Thanks.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span lang=EN-CA style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Simon
Tang<o:p></o:p></span></p>

<p class=MsoNormal><i><span lang=EN-CA style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>Lead, Server Team</span></i><span lang=EN-CA
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><br>
</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><img
width=41 height=24 id="Picture_x0020_1" src="cid:image001.jpg@01C9903D.B4691480"
alt="cid:image001.jpg@01C8D16A.305E8AE0"></span><span lang=EN-CA
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-CA style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Suite
706, 1155 Robson Street</span><span lang=EN-CA style='font-size:12.0pt;
font-family:"Tahoma","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-CA style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Vancouver,
B.C. </span><span lang=EN-CA style='font-family:"Tahoma","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-CA style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Canada
V6E 1B5</span><span lang=EN-CA style='font-family:"Tahoma","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-CA style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>T:
+1.604.408.2228&nbsp; Ext. 116</span><span lang=EN-CA style='font-family:"Tahoma","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-CA style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>F<span
style='color:black'>: +1.866.874.8136</span></span><span lang=EN-CA
style='font-family:"Tahoma","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-CA style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>E:
<a href="mailto:simon@airg.com"><span style='color:blue'>simon@airg.com</span></a>
<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-CA style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>W:
<a href="http://www.airg.com"><span style='color:blue'>www.airg.com</span></a></span><span
style='font-size:12.0pt;font-family:"Tahoma","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>The
information transmitted is intended only for the person or entity to which it
is addressed and may contain confidential and/or privileged material
communicated under NDA. Any review, retransmission, dissemination or other use
of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received this
in error, please contact the sender and delete the material from any computer.</span><o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>