<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/1532/">https://reviewboard.asterisk.org/r/1532/</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;">This is the right fix. I don&#39;t think this should be controversial for anyone.</pre>
 <br />







<p>- Simon</p>


<br />
<p>On October 18th, 2011, 2:57 p.m., Terry Wilson 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 Terry Wilson.</div>


<p style="color: grey;"><i>Updated Oct. 18, 2011, 2:57 p.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 small patch fixes two issues:
1) If someone does exten =&gt; _XXXX,1,Dial(SIP/${EXTEN}) and ends up trying to dial a non-existent SIP peer, we currently resolve the numeric peer to an IP. While representing an IP as 1050 is technically legal, no one does this in the real world. IMHO, it is much better to not treat 1050 as 0.0.4.26 and send the request there when in the context of Asterisk this is almost always going to be expected to be a peer/extension. Granted, people shouldn&#39;t use extensions as peer names for a whole host of reasons, but they do it anyway and I think we should be following the principle of least surprise here. I have been told that earlier versions of Asterisk did not do lookups for numeric addresses either, so this was an accidental change of behavior in the first place.

2) 1.8 currently will try to contact a host even if the address lookup fails. This is silly. The patch fixes it.</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </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;">I&#39;ve tried dialing existing and non-existing numeric peers. Things work now, I don&#39;t see any breakage.</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-17146">ASTERISK-17146</a>, 

 <a href="https://issues.asterisk.org/jira/browse/ASTERISK-17716">ASTERISK-17716</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>/branches/1.8/channels/chan_sip.c <span style="color: grey">(341249)</span></li>

</ul>

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




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








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