<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <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 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 class="moz-txt-link-rfc2396E" href="mailto:^sip:[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 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 class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a 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>
  </body>
</html>