<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    The change done by registrar server to the Contact URI is not
    compliant -- the address has to stay what the UA has set. Otherwise
    a lot of multi-line SIP phones won't work.<br>
    <br>
    The user part of the Contact in the REGISTER generated by uac module
    is used to match the local user details. If the user part is changed
    then it is not going to be a match when a call comes in with the
    modified Contact address in the R-URI.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 05/03/15 09:09, GG GG wrote:<br>
    </div>
    <blockquote
cite="mid:CAO=zBEfydzAZ3RRAamp_1+=DLP-GGUX=NubQoPToobRVHhOF4Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">Some providers change the Contact header when
        replying the register.
        <div><br>
        </div>
        <div>The provider says 200 OK for register but I got this:
          <div>ERROR: uac [uac_reg.c:876]: uac_reg_tm_callback(): got
            sip response 200 while registering<br>
          </div>
          <div><br>
          </div>
          <div>I think the problem is at <a moz-do-not-send="true"
href="https://github.com/kamailio/kamailio/blob/master/modules/uac/uac_reg.c#L744">https://github.com/kamailio/kamailio/blob/master/modules/uac/uac_reg.c#L744</a></div>
          <div><br>
          </div>
          <div>In my case, the provider change the username part of
            Contact</div>
          <div>in register request: Contact:
            <a class="moz-txt-link-rfc2396E" href="sip:DID_NUMBER@IP_ADDRESS:5060"><sip:DID_NUMBER@IP_ADDRESS:5060></a></div>
          <div>in reply: Contact:
            <a class="moz-txt-link-rfc2396E" href="sip:SiENC*DID_NUMBER**IP_ADDRESS*5060*@IP_ADDRESS"><sip:SiENC*DID_NUMBER**IP_ADDRESS*5060*@IP_ADDRESS></a></div>
          <div><br>
          </div>
          <div>So if username is different, I will never
            get ri->flags |= UAC_REG_ONLINE;</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </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>