<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>To understand properly -- you don't have access to the user
      profile at all? The server where the registration is forwarded is
      not managed by you?</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 20/01/2017 13:50, anfecora wrote:<br>
    </div>
    <blockquote
cite="mid:CAHjGmHmd0qT2fVMMCojODO9NwcMPKgPJcTbHeV-7NUrhxVGFuQ@mail.gmail.com"
      type="cite">
      <div dir="auto">Thank you Daniel. It will work if i have username
        and password in db or something else.
        <div dir="auto"><br>
        </div>
        <div dir="auto">In this case i am getting the register from the
          sip client and i dont have the passwd but i need to forward it
          somehow via uac and on challenge pass it back to the sip
          client.</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">I have done this with $du and works but when an
          invite comes from the b side(sbc) to the a side(thesip client)
          there is no aor or anything i can lookup to pass it along.
          Which is what i am trying to resolve.</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">The sbc do not support path and ob header
          correctly. And cries when it gets any ipv6 address.</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Jan 20, 2017 12:41 AM,
          "Daniel-Constantin Mierla" <<a moz-do-not-send="true"
            href="mailto:miconda@gmail.com">miconda@gmail.com</a>>
          wrote:<br type="attribution">
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <p>Hello,</p>
              <p>you have to set authentication username and password
                inside the $uac_req(...) -- see the attributes for it
                at:</p>
              <p>  -
                <a moz-do-not-send="true"
                  class="m_-2804969548158635570moz-txt-link-freetext"
href="https://www.kamailio.org/wiki/cookbooks/4.4.x/pseudovariables#uac_req_key"
                  target="_blank">https://www.kamailio.org/wiki/<wbr>cookbooks/4.4.x/<wbr>pseudovariables#uac_req_key</a></p>
              <p>Cheers,<br>
                Daniel<br>
              </p>
              <br>
              <div class="m_-2804969548158635570moz-cite-prefix">On
                20/01/2017 07:26, anfecora wrote:<br>
              </div>
              <blockquote type="cite">
                <div dir="ltr">can someone please guide me where to find
                  the usage of auc module, thanks in advance.
                  <div><br>
                  </div>
                  <div>
                    <div>
                      <div>I am registering the uac in one end then i
                        want to forward that registration to an external
                        registrar, if i use $du some domain, some of the
                        ipv6 info is going to be forwarded, i need to
                        make it look more like an a b2bua than a
                        outbound proxy therefore i need to use the auc
                        module(also i need to cover all ipv6 info since
                        i am proxying from ipv4 to ipv6).</div>
                      <div><br>
                      </div>
                      <div>i am able to register the client to kamailio,
                        then kamailio send the registration to the
                        external registrar, but when the registrar sends
                        back the challenge uac does not reply, any ideas
                        how can achieve this.</div>
                      <div><br>
                      </div>
                      <div>uac(linphone etc)
                        --registration--->kamailio(<wbr>registrar
                        module)------register(uac)---><wbr>SBC</div>
                      <div><br>
                      </div>
                      <div>sbc----invite---->kamailio(<wbr>lookup)---------invite----><wbr>uac(linphone
                        etc)</div>
                      <div><br>
                      </div>
                      <div>this is the code i am using.</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div>
                        <div><br>
                        </div>
                        <div># Handle SIP registrations</div>
                        <div>route[REGISTRAR] {</div>
                        <div>xlog("REGISTERING ");</div>
                        <div>        if (is_method("REGISTER"))</div>
                        <div>        {</div>
                        <div>                if(isflagset(FLT_NATS))</div>
                        <div>                {</div>
                        <div>                        setbflag(FLB_NATB);</div>
                        <div>                        # uncomment next
                          line to do SIP NAT pinging</div>
                        <div>                        ##
                          setbflag(FLB_NATSIPPING);</div>
                        <div>                }</div>
                        <div>                if(af==INET6)</div>
                        <div>                        setbflag(FLB_IPV6);</div>
                        <div>xlog("IT IS  IPV6");</div>
                        <div>                if (!save("location"))</div>
                        <div>                        sl_reply_error();</div>
                        <div>route(REGSBCFWD);</div>
                        <div>        exit;</div>
                        <div>        }</div>
                        <div>}</div>
                        <div><br>
                        </div>
                        <div>route[REGSBCFWD]{</div>
                        <div>xlog("CREATING OTHER LEG TO THE SBC");</div>
                        <div>if(!is_method("REGISTER"))</div>
                        <div>        {</div>
                        <div>                return;</div>
                        <div>        }</div>
                        <div>xlog("CREATING PACKAGE $si -- $fU--
                          $au--$du-- $tU --$ru");</div>
                        <div><br>
                        </div>
                        <div>        $var(rip) = "<a
                            moz-do-not-send="true"
                            href="http://sip.somedomain.com"
                            target="_blank">sip.somedomain.com</a>";</div>
                        <div>        $uac_req(method)="REGISTER";</div>
                        <div>        $uac_req(ruri)="sip:" + $var(rip) +
                          ":" + "5060";</div>
                        <div>        $uac_req(furi)="sip:" + $tU + "@" +
                          $var(rip);</div>
                        <div>        $uac_req(turi)="sip:" + $tU + "@" +
                          $var(rip);</div>
                        <div>        $uac_req(hdrs)="Contact: <sip:"
                          + $tU + "@"</div>
                        <div>                                +
                          "10.0.0.222"</div>
                        <div>                                + ":"
                          "5060" + ">\r\n";</div>
                        <div>        if($sel(contact.expires) != $null)</div>
                        <div>                $uac_req(hdrs)=
                          $uac_req(hdrs) + "Expires: " +
                          $sel(contact.expires) + "\r\n";</div>
                        <div>        else</div>
                        <div>                $uac_req(hdrs)=
                          $uac_req(hdrs) + "Expires: " + $hdr(Expires) +
                          "\r\n";</div>
                        <div>        uac_req_send();</div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>                }</div>
                      </div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>REGISTER sip:<a moz-do-not-send="true"
                            href="http://sip.somedomain.com:5060"
                            target="_blank">sip.somedomain.com:5060</a>
                          SIP/2.0.</div>
                        <div>Via: SIP/2.0/UDP 10.0.0.222:5060;branch=<wbr>z9hG4bK285f.<wbr>13a7f0c00000000000000000000000<wbr>00.0.</div>
                        <div>To: <<a moz-do-not-send="true"
                            href="mailto:sip%3A14052423@sip.somedomain.com"
                            target="_blank">sip:14052423@sip.somedomain.<wbr>com</a>>.</div>
                        <div>From: <<a moz-do-not-send="true"
                            href="mailto:sip%3A14052423@sip.somedomain.com"
                            target="_blank">sip:14052423@sip.somedomain.<wbr>com</a>>;tag=<wbr>a82eaf71666096790d1397845fbd32<wbr>54-ebaa.</div>
                        <div>CSeq: 10 REGISTER.</div>
                        <div>Call-ID: <a moz-do-not-send="true"
                            href="mailto:357e21ae51d8416d-26605@10.0.0.222"
                            target="_blank">357e21ae51d8416d-26605@10.0.0.<wbr>222</a>.</div>
                        <div>Max-Forwards: 70.</div>
                        <div>Content-Length: 0.</div>
                        <div>User-Agent: kamailio (4.4.4
                          (x86_64/linux)).</div>
                        <div>Contact: <<a moz-do-not-send="true"
                            href="http://sip:140524@10.0.0.222:5060"
                            target="_blank">sip:140524@10.0.0.222:5060</a>>.</div>
                        <div>Expires: 3600.</div>
                        <div>.</div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>SIP/2.0 401 Unauthorized.</div>
                        <div>Via: SIP/2.0/UDP 10.0.0.222:5060;branch=<wbr>z9hG4bK4b53.<wbr>ad8427570000000000000000000000<wbr>00.0.</div>
                        <div>To: <<a moz-do-not-send="true"
                            href="mailto:sip%3A14052423@sip.somedomain.com"
                            target="_blank">sip:14052423@sip.somedomain.<wbr>com</a>>.</div>
                        <div>From: <<a moz-do-not-send="true"
                            href="mailto:sip%3A14052423@sip.somedomain.com"
                            target="_blank">sip:14052423@sip.somedomain.<wbr>com</a>>;tag=<wbr>a82eaf71666096790d1397845fbd32<wbr>54-37da.</div>
                        <div>Call-ID: <a moz-do-not-send="true"
                            href="mailto:357e21ae51d8416d-26603@10.0.0.222"
                            target="_blank">357e21ae51d8416d-26603@10.0.0.<wbr>222</a>.</div>
                        <div>CSeq: 10 REGISTER.</div>
                        <div>WWW-Authenticate: Digest realm="<a
                            moz-do-not-send="true"
                            href="http://sip.somedomain.com"
                            target="_blank">sip.somedomain.com</a>",
                          nonce="f5831435-3e69-4b78-<wbr>ab6d-dcb0897e477b",
                          algorithm=MD5, qop="auth".</div>
                        <div>User-Agent: <a moz-do-not-send="true"
                            href="http://somedomain.com" target="_blank">somedomain.com</a>
                          Host:some proxy.</div>
                        <div>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS,
                          MESSAGE, INFO, UPDATE, REGISTER, REFER,
                          NOTIFY, PUBLISH, SUBSCRIBE.</div>
                        <div>Content-Length: 0.</div>
                        <div>.</div>
                      </div>
                    </div>
                  </div>
                </div>
                <br>
                <fieldset
                  class="m_-2804969548158635570mimeAttachmentHeader"></fieldset>
                <br>
                <pre>______________________________<wbr>_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="m_-2804969548158635570moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="m_-2804969548158635570moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a>
</pre>
    </blockquote>
    

    <pre class="m_-2804969548158635570moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="m_-2804969548158635570moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a moz-do-not-send="true" class="m_-2804969548158635570moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a moz-do-not-send="true" class="m_-2804969548158635570moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
  </div>


______________________________<wbr>_________________

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>

<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a>


</blockquote></div></div>



</blockquote>
<pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre></body></html>