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><extensio name="Setting account code for gateways"></div><div> <condition field="network_addr" expression="^192\.168\.1\.1$" break="on-true"></div><div>
<action application="set" data="accountcode=gateway1"/></div>
<div> </condition><br><div><div><div> <condition field="network_addr" expression="^192\.168\.1\.2$" break="on-true"></div><div> <action application="set" data="accountcode=gateway2"/></div>
<div> </condition></div><div></extension></div><div><br></div><div class="gmail_quote">On Fri, Apr 8, 2011 at 6:05 PM, FERNANDO VILLARROEL <span dir="ltr"><<a href="mailto:fvillarroel@yahoo.com">fvillarroel@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">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><<a href="mailto:mrene_lists@avgs.ca" target="_blank">mrene_lists@avgs.ca</a>></i></b> wrote:<br>
<blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px"><br>From: Mathieu Rene <<a href="mailto:mrene_lists@avgs.ca" target="_blank">mrene_lists@avgs.ca</a>><br>Subject: Re: [Freeswitch-users] Account ACL<br>
To: "FreeSWITCH Users Help" <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>Date: Friday, April 8, 2011, 4:00 PM<div><div></div><div class="h5">
<br><br><div><a rel="nofollow" href="http://wiki.freeswitch.org/wiki/ACL#Users" target="_blank">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><a rel="nofollow" href="http://wiki.freeswitch.org/wiki/ACL#Users" target="_blank"></a><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 rel="nofollow" href="http://mc/compose?to=mrene@avgs.ca" target="_blank">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> <action application="set" data="accountcode=foo"/><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 rel="nofollow" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></blockquote></div><br></div></div><br></div></div>-----Inline
Attachment Follows-----<div class="im"><br><br><div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></div></div></blockquote></td></tr></tbody></table><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div>