<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    reg-id=0 is considered like no-outbound is advertised, so probaly 
    no real outbound routing is done. If that's ok for you, then you can
    test a bit for side effects and keep the patch to run for you until
    aastra is fixing it.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 23/02/15 21:21, GG GG wrote:<br>
    </div>
    <blockquote
cite="mid:CAO=zBEdDwW3VPFQiLR7jQMqWb9Sfqfmiqx+HCzrB+OiC5uMTaQ@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span style="font-size:12.8000001907349px">Hi !</span>
        <div style="font-size:12.8000001907349px"><br>
        </div>
        <div style="font-size:12.8000001907349px">Aastra phone can
          support outbound (RFC 5626) but they put reg-id=0 in the SIP
          REGISTER.</div>
        <div style="font-size:12.8000001907349px"><br>
        </div>
        <div style="font-size:12.8000001907349px">So the registrar
          server can't save the AOR and says "invalid reg-id value". I
          know Aastra should change that for reg-id=1, I already
          reported an issue but no feedback...</div>
        <div style="font-size:12.8000001907349px"><br>
        </div>
        <div style="font-size:12.8000001907349px">Finally I applied a
          patch in modules/registrar/save.c:</div>
        <div style="font-size:12.8000001907349px"><br>
        </div>
        <div style="font-size:12.8000001907349px">--
          if(str2int(&_c->reg_id->body, &ci.reg_id)<0
          || ci.reg_id==0)<br>
        </div>
        <div style="font-size:12.8000001907349px">++
          if(str2int(&_c->reg_id->body, &ci.reg_id)<0)</div>
        <div style="font-size:12.8000001907349px">
          <div>{</div>
          <div>   LM_ERR("invalid reg-id value\n");</div>
          <div>   goto error;</div>
          <div>}</div>
        </div>
        <div style="font-size:12.8000001907349px"><br>
        </div>
        <div style="font-size:12.8000001907349px">Do you think it's safe
          to do that ?</div>
        <div style="font-size:12.8000001907349px"><br>
        </div>
        <div style="font-size:12.8000001907349px">Thank you !</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
sr-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>