<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hello!<br>
    <br>
    &nbsp;&nbsp;&nbsp; Why You can't use directory entry like this:<br>
    <br>
    &lt;user id="xxx" cidr="yyyy"&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;variables&gt;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;variable name="accountcode" value="zzz"/&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;/variable&gt;<br>
    &lt;/user&gt;<br>
    <br>
    <blockquote cite="mid:386335.42948.qm@web34307.mail.mud.yahoo.com"
      type="cite">
      <table border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td style="font: inherit;" valign="top">Dear Pablo.<br>
              <br>
              Yes i can use condition but accountcode variable is
              assigned to only outbound gateway, but i need setup
              accoundcode for inbound gateway too. I not know how i can
              do this it's.<br>
              <br>
              <br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set"
              data="accountcode=gateway1"/&gt;<br>
              <br>
              Regards.<br>
              <br>
              --- On <b>Fri, 4/8/11, Pablo Hernan Saro <i><a class="moz-txt-link-rfc2396E" href="mailto:pablosaro@gmail.com">&lt;pablosaro@gmail.com&gt;</a></i></b>
              wrote:<br>
              <blockquote style="border-left: 2px solid rgb(16, 16,
                255); margin-left: 5px; padding-left: 5px;"><br>
                From: Pablo Hernan Saro <a class="moz-txt-link-rfc2396E" href="mailto:pablosaro@gmail.com">&lt;pablosaro@gmail.com&gt;</a><br>
                Subject: Re: [Freeswitch-users] Account ACL<br>
                To: "FreeSWITCH Users Help"
                <a class="moz-txt-link-rfc2396E" href="mailto:freeswitch-users@lists.freeswitch.org">&lt;freeswitch-users@lists.freeswitch.org&gt;</a><br>
                Cc: "FERNANDO VILLARROEL" <a class="moz-txt-link-rfc2396E" href="mailto:fvillarroel@yahoo.com">&lt;fvillarroel@yahoo.com&gt;</a><br>
                Date: Friday, April 8, 2011, 7:07 PM<br>
                <br>
                <div id="yiv432829399">Probably it's not the best for
                  you, but the first solution that comes to my mind is
                  setting the accountcode at dialplan. If you are
                  working in a high performance scenario with lot of
                  gateways, then probably you have an objection. Anyway,
                  it would be something like this:
                  <div>
                    <br>
                  </div>
                  <div>&lt;extensio name="Setting account code for
                    gateways"&gt;</div>
                  <div>&nbsp;&nbsp;&lt;condition field="network_addr"
                    expression="^192\.168\.1\.1$" break="on-true"&gt;</div>
                  <div>
                    &nbsp;&nbsp; &nbsp;&lt;action application="set"
                    data="accountcode=gateway1"/&gt;</div>
                  <div>&nbsp;&nbsp;&lt;/condition&gt;<br>
                    <div>
                      <div>
                        <div>&nbsp;&nbsp;&lt;condition field="network_addr"
                          expression="^192\.168\.1\.2$"
                          break="on-true"&gt;</div>
                        <div>&nbsp;&nbsp; &nbsp;&lt;action application="set"
                          data="accountcode=gateway2"/&gt;</div>
                        <div>&nbsp;&nbsp;&lt;/condition&gt;</div>
                        <div>&lt;/extension&gt;</div>
                        <div><br>
                        </div>
                        <div class="yiv432829399gmail_quote">On Fri, Apr
                          8, 2011 at 6:05 PM, FERNANDO VILLARROEL <span
                            dir="ltr">&lt;<a moz-do-not-send="true"
                              rel="nofollow"
                              ymailto="mailto:fvillarroel@yahoo.com"
                              target="_blank"
                              href="/mc/compose?to=fvillarroel@yahoo.com">fvillarroel@yahoo.com</a>&gt;</span>
                          wrote:<br>
                          <blockquote class="yiv432829399gmail_quote"
                            style="border-left: 1px solid rgb(204, 204,
                            204); margin: 0pt 0pt 0pt 0.8ex;
                            padding-left: 1ex;">
                            <table border="0" cellpadding="0"
                              cellspacing="0">
                              <tbody>
                                <tr>
                                  <td style="font: inherit;"
                                    valign="top">Dear Mathieu.<br>
                                    <br>
                                    My user are not in ditrectory.<br>
                                    <br>
                                    My users are gateways authenticated
                                    with ACL.<br>
                                    <br>
                                    How i can use some variable for
                                    identifi like accountcode for
                                    inbound traffic from this
                                    gateways???<br>
                                    <br>
                                    Regards<br>
                                    <br>
                                    --- On <b>Fri, 4/8/11, Mathieu Rene
                                      <i>&lt;<a moz-do-not-send="true"
                                          rel="nofollow"
                                          ymailto="mailto:mrene_lists@avgs.ca"
                                          target="_blank"
                                          href="/mc/compose?to=mrene_lists@avgs.ca">mrene_lists@avgs.ca</a>&gt;</i></b>
                                    wrote:<br>
                                    <blockquote style="border-left: 2px
                                      solid rgb(16, 16, 255);
                                      margin-left: 5px; padding-left:
                                      5px;"><br>
                                      From: Mathieu Rene &lt;<a
                                        moz-do-not-send="true"
                                        rel="nofollow"
                                        ymailto="mailto:mrene_lists@avgs.ca"
                                        target="_blank"
                                        href="/mc/compose?to=mrene_lists@avgs.ca">mrene_lists@avgs.ca</a>&gt;<br>
                                      Subject: Re: [Freeswitch-users]
                                      Account ACL<br>
                                      To: "FreeSWITCH Users Help" &lt;<a
                                        moz-do-not-send="true"
                                        rel="nofollow"
                                        ymailto="mailto:freeswitch-users@lists.freeswitch.org"
                                        target="_blank"
                                        href="/mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
                                      Date: Friday, April 8, 2011, 4:00
                                      PM
                                      <div>
                                        <div class="yiv432829399h5">
                                          <br>
                                          <br>
                                          <div><a moz-do-not-send="true"
                                              rel="nofollow"
                                              target="_blank"
                                              href="http://wiki.freeswitch.org/wiki/ACL#Users">http://wiki.freeswitch.org/wiki/ACL#Users</a>
                                            <div><br>
                                            </div>
                                            <div>You can set variables
                                              directly in the user's
                                              directory entry.</div>
                                            <div><br>
                                              <div>
                                                <div><span
                                                    style="font-size:
                                                    12px;">
                                                    <div>Mathieu Rene</div>
                                                    <div>Avant-Garde
                                                      Solutions Inc</div>
                                                    <div>Office: + 1
                                                      (514) 664-1044
                                                      x100</div>
                                                    <div>Cell: +1 (514)
                                                      664-1044 x200</div>
                                                    <div><a
                                                        moz-do-not-send="true"
                                                        rel="nofollow"
                                                        target="_blank"
href="http://mc/compose?to=mrene@avgs.ca">mrene@avgs.ca</a></div>
                                                    <div><br>
                                                    </div>
                                                    <div><br>
                                                    </div>
                                                  </span></div>
                                                <br>
                                              </div>
                                              <br>
                                              <div>
                                                <div>On 2011-04-08, at
                                                  2:57 PM, FERNANDO
                                                  VILLARROEL wrote:</div>
                                                <br>
                                                <blockquote type="cite">
                                                  <div>Hi Community.<br>
                                                    <br>
                                                    How i can identifi
                                                    inbound traffic
                                                    authorizated on ACL
                                                    with some variable
                                                    like Accountcode.<br>
                                                    <br>
                                                    For aoutbound
                                                    traffic i use:<br>
                                                    <br>
                                                    &lt;action
                                                    application="set"
                                                    data="accountcode=foo"/&gt;<br>
                                                    <br>
                                                    My problem is for
                                                    inbound traffic how
                                                    i can identify
                                                    accounts?<br>
                                                    <br>
                                                    Regards.<br>
                                                    <br>
_______________________________________________<br>
                                                    FreeSWITCH-users
                                                    mailing list<br>
                                                    <a
                                                      moz-do-not-send="true"
                                                      rel="nofollow"
                                                      target="_blank"
                                                      href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
                                                    <a
                                                      moz-do-not-send="true"
                                                      rel="nofollow"
                                                      target="_blank"
                                                      href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                                                    UNSUBSCRIBE:<a
                                                      moz-do-not-send="true"
                                                      rel="nofollow"
                                                      target="_blank"
                                                      href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                                                    <a
                                                      moz-do-not-send="true"
                                                      rel="nofollow"
                                                      target="_blank"
                                                      href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
                                                  </div>
                                                </blockquote>
                                              </div>
                                              <br>
                                            </div>
                                          </div>
                                          <br>
                                        </div>
                                      </div>
                                      -----Inline Attachment
                                      Follows-----
                                      <div class="yiv432829399im"><br>
                                        <br>
                                        <div>_______________________________________________<br>
                                          FreeSWITCH-users mailing list<br>
                                          <a moz-do-not-send="true"
                                            rel="nofollow"
                                            target="_blank"
                                            href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
                                          <a moz-do-not-send="true"
                                            rel="nofollow"
                                            target="_blank"
                                            href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                                          UNSUBSCRIBE:<a
                                            moz-do-not-send="true"
                                            rel="nofollow"
                                            target="_blank"
                                            href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                                          <a moz-do-not-send="true"
                                            rel="nofollow"
                                            target="_blank"
                                            href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
                                        </div>
                                      </div>
                                    </blockquote>
                                  </td>
                                </tr>
                              </tbody>
                            </table>
                            <br>
_______________________________________________<br>
                            FreeSWITCH-users mailing list<br>
                            <a moz-do-not-send="true" rel="nofollow"
                              ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org"
                              target="_blank"
                              href="/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
                            <a moz-do-not-send="true" rel="nofollow"
                              target="_blank"
                              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                            UNSUBSCRIBE:<a moz-do-not-send="true"
                              rel="nofollow" target="_blank"
                              href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                            <a moz-do-not-send="true" rel="nofollow"
                              target="_blank"
                              href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
                            <br>
                          </blockquote>
                        </div>
                        <br>
                      </div>
                    </div>
                  </div>
                </div>
              </blockquote>
            </td>
          </tr>
        </tbody>
      </table>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
&#1057; &#1091;&#1074;&#1072;&#1078;&#1077;&#1085;&#1080;&#1077;&#1084;,
  &#1041;&#1086;&#1088;&#1080;&#1089; &#1050;&#1086;&#1074;&#1072;&#1083;&#1077;&#1085;&#1082;&#1086;
  &#1047;&#1040;&#1054; "&#1058;&#1072;&#1075;&#1085;&#1077;&#1090;"
  (3435) 494991

</pre>
  </body>
</html>