<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Daniel,<br>
    <br>
    Adding double quotes around the second parameter of
    uac_reg_request_to does not help.<br>
    <br>
    route{<br>
    &nbsp;&nbsp;&nbsp; if (method=="REGISTER") {<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $rU = "daniel123";<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(uac_reg_request_to("$rU", "0")){<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog("uac_reg_request_to remote user [$rU] on [$rd] via
    [$du]\n");<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_on_failure("REMOTE_AUTH");<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_relay();<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>
    &nbsp;&nbsp;&nbsp; }<br>
    }<br>
    &nbsp;0(24774) DEBUG: &lt;core&gt; [route.c:929]: fixing
    uac_reg_request_to()<br>
    &nbsp;0(24774) ERROR: &lt;core&gt; [route.c:1216]: fixing failed
    (code=-1) at cfg:/usr/local/etc/kamailio/kamailio.cfg:71<br>
    <br>
    regards,<br>
    Ron<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 8/20/2012 1:06 AM, Daniel-Constantin
      Mierla wrote:<br>
    </div>
    <blockquote cite="mid:5031E1DF.5060006@gmail.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Hello,<br>
      <br>
      <br>
      <div class="moz-cite-prefix">On 8/20/12 1:19 AM, Ron Hopson wrote:<br>
      </div>
      <blockquote cite="mid:5031747A.50307@netweave.com" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        Daniel,<br>
        <br>
        Thank you for your response.&nbsp; I was away the remainder of the
        past week.<br>
        <br>
        Calls to uac_reg_lookup() and uac_reg_request_to(), with prior
        assignment or no assignment, yield "fixing failed (code=-1)".&nbsp;
        For example,<br>
        <br>
        &nbsp;&nbsp;&nbsp;&nbsp; if(uac_reg_request_to("$rU", 0)){&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #line 76<br>
        <br>
        &nbsp;0(16293) DEBUG: &lt;core&gt; [route.c:929]: fixing
        uac_reg_request_to()<br>
        &nbsp;0(16293) ERROR: &lt;core&gt; [route.c:1216]: fixing failed
        (code=-1) at cfg:/usr/local/etc/kamailio/kamailio.cfg:76<br>
        <br>
        I am most interested in function uac_reg_request_to().&nbsp; I expect
        to receive a REGISTER command from a local user and forward it
        with proper credentials to a remote server.&nbsp; I believe
        uac_reg_request_to() will read (a memory image of) the uacreg
        file for the remote user's name and credentials, and manage
        registration at the remote server.&nbsp; Is this correct?<br>
        <br>
        I would like to lookup the registration information by $tU. Both
        of the following code snippets get "fixing failed".<br>
        (1) &nbsp;&nbsp;&nbsp; if(uac_reg_request_to("$tU", 0)){<br>
        and<br>
        (2)&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $rU = $tU;<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; if(uac_reg_request_to("$rU", 0)){<br>
        <br>
        Thank you for any hints or examples of how to use
        uac_reg_request_to().<br>
      </blockquote>
      can you try putting the second parameter between double quotes? It
      should work without in the latest version, quotes being required
      in older releases, but just to check. I cannot test for the moment
      in my side, I will do it when I get a chance.<br>
      <br>
      <blockquote cite="mid:5031747A.50307@netweave.com" type="cite"> <br>
        BTW:&nbsp; How do I become a member of <a moz-do-not-send="true"
          class="moz-txt-link-abbreviated"
          href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>?<br>
        <br>
      </blockquote>
      See:<br>
      <br>
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
        href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
      <br>
      Cheers,<br>
      Daniel<br>
      <br>
      <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a>
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://asipto.com/u/kpw">http://asipto.com/u/kpw</a></pre>
    </blockquote>
    <br>
  </body>
</html>