<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>If you look into the module
        documentation, things are not so complicate and with a bit of an
        effort from your side, you can put things together . At the end
        is about using do_routing() function from DR module (reading
        about its param will reveal how to use the attrs).<br>
        <br>
        Regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 11.09.2014 20:31, Satish Patel wrote:<br>
    </div>
    <blockquote
      cite="mid:C4ECBC0F-3D76-4E17-9A08-F2BC2D65A073@gmail.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div>Appreciate your answer but can you please provide sample code
        or kind of script example... I don't know how to fetch
        attributes values etc.. <br>
        <br>
        Sent from my iPhone</div>
      <div><br>
        On Sep 11, 2014, at 1:20 PM, Bogdan-Andrei Iancu &lt;<a
          moz-do-not-send="true" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>&gt;
        wrote:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div>
          <meta content="text/html; charset=utf-8"
            http-equiv="Content-Type">
          <div class="moz-cite-prefix"><tt>Hi,<br>
              <br>
              Keep the CLI and AUTH info per GW in the attrs field (in
              dr_gateways) - when that GW is used, attrs will become
              available so you can use them.<br>
              <br>
              Regards,<br>
            </tt>
            <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
            On 11.09.2014 18:28, Satish Patel wrote:<br>
          </div>
          <blockquote
cite="mid:CAPgF-fqYUxDSXE9GD3zF=oEm8A5kCD-g1Yn-ma+kitgL6Rrbjw@mail.gmail.com"
            type="cite">
            <div dir="ltr">Currently i have UAC_AUTH working with single
              gateway and configuration look like following, How do i
              configure multiple gateway trunk account? what would be
              the best way to make it happen, also i am worried about 
              "uac_replace_from" address, in multiple gateway account
              won't be same so i how i map that name with gateway IPs..
              Please suggest me best way to handle this kind of
              scenario, also what happen if i use drouting module
              instead of rewritehostport <br>
              <br>
              loadmodule "uac_auth.so"<br>
              <br>
              modparam("uac_auth","auth_username_avp", "$avp(user)")<br>
              modparam("uac_auth","auth_password_avp", "$avp(pass)")<br>
              modparam("uac_auth","auth_realm_avp", "$avp(realm)")<br>
              <br>
              <br>
              route{<br>
              <br>
                      $avp(user) := "1000";<br>
                      $avp(pass) :="1000";<br>
                      $avp(realm) := "freeswitch";<br>
              ...<br>
              ...<br>
                       # PSTN Outside dialiing code<br>
                      if (is_method("INVITE") &amp;&amp;
              (src_ip==xxx.xxx.xxx.xxx)) {<br>
                      if  ( uri=~<a moz-do-not-send="true"
                class="moz-txt-link-rfc2396E"
                href="mailto:%5Esip:[1-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]*@.*">"^sip:[1-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]*@.*"</a>)
              {<br>
                      uac_replace_from(<a moz-do-not-send="true"
                class="moz-txt-link-rfc2396E"
                href="mailto:sip:1000@xx.xxx.xxx.xxx:5060">"sip:1000@xx.xxx.xxx.xxx:5060"</a>);<br>
                      rewritehostport("xxx.xxx.xxx.xxx:5060");<br>
              <br>
              <br>
              <br>
              <br>
            </div>
            <br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <br>
            <pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
          </blockquote>
          <br>
        </div>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>