<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Dear Pablo.<br><br>Thank you for you help.<br><br>My problem is setup accountcode for outbound gateway (sip_profiles/external ). I will try and inform to you my tests results.<br><br>For inbound gateway the acoountcode is setup fine the  like this:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set" data="accountcode=foo"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="bridge" data="sofia/gateway/ms6/$1$2"/&gt;<br><br>I need setup CDR accountcode for my sip_profiles/external or in this example for gateway named ms6.<br><br>&lt;include&gt;<br>&nbsp;&nbsp;&nbsp; &lt;gateway name="ms6" cidr="XXX.xx.XXX.170/32"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="username" value="foo"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="password" value="foo@fool"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param
 name="realm" value="XXX.XX.XXX.170/32"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="proxy" value="XXX.XX.XXX.170/32"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="register" value="true"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="context" value="public"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/gateway&gt;<br>&lt;/include&gt;<br><br>Regards.<br><br><br>Regards<br>--- On <b>Sun, 4/10/11, Pablo Hernan Saro <i>&lt;pablosaro@gmail.com&gt;</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 &lt;pablosaro@gmail.com&gt;<br>Subject: Re: [Freeswitch-users] Account ACL<br>To: "FreeSWITCH Users Help" &lt;freeswitch-users@lists.freeswitch.org&gt;<br>Date: Sunday, April 10, 2011, 2:45 PM<br><br><div id="yiv964964579">Hi Fernando, using the dialplan I've suggested you will have the account code set on cdr when one of the conditions match (that is when
 incoming calls arrive to your FS box from one of the IP addresses in the conditions). I'm not sure if it can be rewritten by outbound gateway definition (is that your problem?).<div>

Try that and check your cdr to see which accountcode it's being saved (the one you set at dialplan or the one set in outbound gateway definition).<br><br><div class="yiv964964579gmail_quote">On Sun, Apr 10, 2011 at 1:17 PM, Peter Olsson <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:peter.olsson@visionutveckling.se" target="_blank" href="/mc/compose?to=peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a>&gt;</span> wrote:<br>

<blockquote class="yiv964964579gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">If you use the dial plan example suggested it will set that variable on incoming calls from your gateways. If the gateway IP matched the IP entered it will be executed.<br>


<br>
/Peter<br>
________________________________________<br>
Från: <a rel="nofollow" ymailto="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" href="/mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [<a rel="nofollow" ymailto="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" href="/mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] f&amp;#246;r FERNANDO VILLARROEL [<a rel="nofollow" ymailto="mailto:fvillarroel@yahoo.com" target="_blank" href="/mc/compose?to=fvillarroel@yahoo.com">fvillarroel@yahoo.com</a>]<br>


Skickat: den 10 april 2011 18:10<br>
Till: <a 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>
Ämne: Re: [Freeswitch-users] Account ACL<br>
<div class="yiv964964579im"><br>
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; &lt;action application="set" data="accountcode=gateway1"/&gt;<br>
<br>
Regards.<br>
<br>
--- On Fri, 4/8/11, Pablo Hernan Saro &lt;<a rel="nofollow" ymailto="mailto:pablosaro@gmail.com" target="_blank" href="/mc/compose?to=pablosaro@gmail.com">pablosaro@gmail.com</a>&gt; wrote:<br>
<br>
From: Pablo Hernan Saro &lt;<a rel="nofollow" ymailto="mailto:pablosaro@gmail.com" target="_blank" href="/mc/compose?to=pablosaro@gmail.com">pablosaro@gmail.com</a>&gt;<br>
Subject: Re: [Freeswitch-users] Account ACL<br>
To: "FreeSWITCH Users Help" &lt;<a 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>
Cc: "FERNANDO VILLARROEL" &lt;<a rel="nofollow" ymailto="mailto:fvillarroel@yahoo.com" target="_blank" href="/mc/compose?to=fvillarroel@yahoo.com">fvillarroel@yahoo.com</a>&gt;<br>
Date: Friday, April 8, 2011, 7:07 PM<br>
<br>
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:<br>


<br>
&lt;extensio name="Setting account code for gateways"&gt;<br>
 &nbsp;&lt;condition field="network_addr" expression="^192\.168\.1\.1$" break="on-true"&gt;<br>
 &nbsp; &nbsp;&lt;action application="set" data="accountcode=gateway1"/&gt;<br>
 &nbsp;&lt;/condition&gt;<br>
 &nbsp;&lt;condition field="network_addr" expression="^192\.168\.1\.2$" break="on-true"&gt;<br>
 &nbsp; &nbsp;&lt;action application="set" data="accountcode=gateway2"/&gt;<br>
 &nbsp;&lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
</div><div class="yiv964964579im">On Fri, Apr 8, 2011 at 6:05 PM, FERNANDO VILLARROEL &lt;<a rel="nofollow" ymailto="mailto:fvillarroel@yahoo.com" target="_blank" href="/mc/compose?to=fvillarroel@yahoo.com">fvillarroel@yahoo.com</a>&lt;/mc/compose?to=<a rel="nofollow" ymailto="mailto:fvillarroel@yahoo.com" target="_blank" href="/mc/compose?to=fvillarroel@yahoo.com">fvillarroel@yahoo.com</a>&gt;&gt; wrote:<br>


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>
</div>--- On Fri, 4/8/11, Mathieu Rene &lt;<a rel="nofollow" ymailto="mailto:mrene_lists@avgs.ca" target="_blank" href="/mc/compose?to=mrene_lists@avgs.ca">mrene_lists@avgs.ca</a>&lt;/mc/compose?to=<a rel="nofollow" ymailto="mailto:mrene_lists@avgs.ca" target="_blank" href="/mc/compose?to=mrene_lists@avgs.ca">mrene_lists@avgs.ca</a>&gt;&gt; wrote:<br>
<br>
From: Mathieu Rene &lt;<a rel="nofollow" ymailto="mailto:mrene_lists@avgs.ca" target="_blank" href="/mc/compose?to=mrene_lists@avgs.ca">mrene_lists@avgs.ca</a>&lt;/mc/compose?to=<a rel="nofollow" ymailto="mailto:mrene_lists@avgs.ca" target="_blank" href="/mc/compose?to=mrene_lists@avgs.ca">mrene_lists@avgs.ca</a>&gt;&gt;<br>
<div class="yiv964964579im">Subject: Re: [Freeswitch-users] Account ACL<br>
</div>To: "FreeSWITCH Users Help" &lt;<a 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>&lt;/mc/compose?to=<a 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;&gt;<br>


<div class="yiv964964579im">Date: Friday, April 8, 2011, 4:00 PM<br>
<br>
<br>
<a rel="nofollow" target="_blank" href="http://wiki.freeswitch.org/wiki/ACL#Users">http://wiki.freeswitch.org/wiki/ACL#Users</a><br>
<br>
You can set variables directly in the user's directory entry.<br>
&lt;<a rel="nofollow" target="_blank" href="http://wiki.freeswitch.org/wiki/ACL#Users">http://wiki.freeswitch.org/wiki/ACL#Users</a>&gt;<br>
Mathieu Rene<br>
Avant-Garde Solutions Inc<br>
Office: + 1 (514) 664-1044 x100<br>
Cell: +1 (514) 664-1044 x200<br>
</div><a rel="nofollow" ymailto="mailto:mrene@avgs.ca" target="_blank" href="/mc/compose?to=mrene@avgs.ca">mrene@avgs.ca</a>&lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=mrene@avgs.ca">http://mc/compose?to=mrene@avgs.ca</a>&gt;<br>
<div class="yiv964964579im"><br>
<br>
<br>
<br>
On 2011-04-08, at 2:57 PM, FERNANDO VILLARROEL wrote:<br>
<br>
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>
</div><a 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>&lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br>


<div class="yiv964964579im"><a 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 rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br>
<br>
-----Inline Attachment Follows-----<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
</div><a 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>&lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br>


<div class="yiv964964579im"><a 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 rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
</div><a 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>&lt;/mc/compose?to=<a 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>


<div class="yiv964964579im"><a 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 rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br>
<br>
<br>
</div>!DSPAM:4da1d72c32761895375181!<br>
<div><div></div><div class="yiv964964579h5"><br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a 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 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 rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>FreeSWITCH-users mailing list<br><a ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="/mc/compose?to=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></div></blockquote></td></tr></table>