<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    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 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 class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<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 Advanced Training, Seattle, USA, Sep 23-26, 2012 - <a 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 class="moz-txt-link-freetext" href="http://asipto.com/u/kpw">http://asipto.com/u/kpw</a></pre>
  </body>
</html>