<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://reviewboard.asterisk.org/r/1992/">https://reviewboard.asterisk.org/r/1992/</a>
     </td>
    </tr>
   </table>
   <br />



 <p>Ship it!</p>



 <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Hooray for tests!</pre>
 <br />







<p>- Matt</p>


<br />
<p>On June 19th, 2012, 10 a.m., Mark Michelson wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('https://reviewboard.asterisk.org/media/rb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Asterisk Developers.</div>
<div>By Mark Michelson.</div>


<p style="color: grey;"><i>Updated June 19, 2012, 10 a.m.</i></p>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This scenario sets up three SIP peers.
One is a UAC (Alice), bound to port 5063. And two are UASes, bound to port 5061 (Carol) and 5065 (Bob). We also have set outboundproxy to be the localhost, port 5062 (Percy).

We run three SIPp scenarios. One corresponds to Carol, one corresponds to Percy, and one corresponds to Alice. Alice attempts to call Bob. Those of you who are observant will notice that we do not have a SIPp scenario running for Bob.

Here is the expected call flow

Alice             *                     Percy              Carol
---INVITE (Bob)--&gt;
                   ---INVITE (Bob)-------&gt;
                   &lt;-401 (Contact: Carol)-
                   --------ACK-----------&gt;
                   ---INVITE (Bob)-------&gt;
                   &lt;-200 (Contact: Carol)-
                   -------------------------ACK--------------&gt;
&lt;-----200 OK------
------ACK--------&gt;
------BYE--------&gt;
&lt;-----200 OK------
                   -------------------------BYE--------------&gt;
                   &lt;---------------------200 OK---------------

The idea is that the outboundproxy should be the destination for the initial INVITE, despite the fact that Bob is the target. Then, despite the fact that Carol is specified as the Contact in the 401 to Asterisk, the ensuing ACK and INVITE with authentication still should go to Percy. Once Percy sends a 200 OK with Carol&#39;s contact, however, then further SIP traffic should be routed to Carol.

I&#39;ve linked in ASTERISK-20008 because without the patch attached to that issue, this test fails.</pre>
  </td>
 </tr>
</table>




<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>


 <a href="https://issues.asterisk.org/jira/browse/ASTERISK-20008">ASTERISK-20008</a>


</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>/asterisk/trunk/tests/channels/SIP/sip_outbound_proxy/configs/ast1/extensions.conf <span style="color: grey">(PRE-CREATION)</span></li>

 <li>/asterisk/trunk/tests/channels/SIP/sip_outbound_proxy/configs/ast1/sip.conf <span style="color: grey">(PRE-CREATION)</span></li>

 <li>/asterisk/trunk/tests/channels/SIP/sip_outbound_proxy/run-test <span style="color: grey">(PRE-CREATION)</span></li>

 <li>/asterisk/trunk/tests/channels/SIP/sip_outbound_proxy/sipp/uac.xml <span style="color: grey">(PRE-CREATION)</span></li>

 <li>/asterisk/trunk/tests/channels/SIP/sip_outbound_proxy/sipp/uas-ackonly.xml <span style="color: grey">(PRE-CREATION)</span></li>

 <li>/asterisk/trunk/tests/channels/SIP/sip_outbound_proxy/sipp/uas.xml <span style="color: grey">(PRE-CREATION)</span></li>

 <li>/asterisk/trunk/tests/channels/SIP/sip_outbound_proxy/test-config.yaml <span style="color: grey">(PRE-CREATION)</span></li>

 <li>/asterisk/trunk/tests/channels/SIP/tests.yaml <span style="color: grey">(3263)</span></li>

</ul>

<p><a href="https://reviewboard.asterisk.org/r/1992/diff/" style="margin-left: 3em;">View Diff</a></p>




  </td>
 </tr>
</table>








  </div>
 </body>
</html>