Just checked and this is indeed the correct syntax. It&#39;s documented on the Wiki:<br><a href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files#Gateway">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files#Gateway</a><br>

Scroll down to the example just above the Settings (<a href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files#Settings">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files#Settings</a>) header.<br><br>Does that help?<br>

<br>-Steve<br><br><br><br><div class="gmail_quote">On 11 April 2011 07:50, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div bgcolor="#FFFFFF"><div>You can set channel variables in the &lt;gateway&gt; section, and you can specify the direction too so that variables get set either on inbound, outbound or both.</div><div><br></div><div>I *think* the syntax is:</div>

<div><br></div><div>&lt;gateway&gt;</div><div>   ...</div><div>   &lt;variables&gt;</div><div>       &lt;variable name=&quot;accountcode&quot; value=&quot;ABC&quot; direction=&quot;inbound&quot;/&gt;</div><div>       ...</div>

<div>   &lt;/variables&gt;</div><div>&lt;/gateway&gt;<br><br>Steve on iPhone</div><div><div></div><div class="h5"><div><br>On 8 Apr 2011, at 22:05, FERNANDO VILLARROEL &lt;<a href="mailto:fvillarroel@yahoo.com" target="_blank">fvillarroel@yahoo.com</a>&gt; wrote:<br>

<br></div><div></div><blockquote type="cite"><div><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 href="mailto:mrene_lists@avgs.ca" target="_blank">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 href="mailto:mrene_lists@avgs.ca" target="_blank">mrene_lists@avgs.ca</a>&gt;<br>Subject: Re: [Freeswitch-users] Account ACL<br>

To: &quot;FreeSWITCH Users Help&quot; &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>Date: Friday, April 8, 2011, 4:00 PM<br><br><div><a rel="nofollow" href="http://wiki.freeswitch.org/wiki/ACL#Users" target="_blank"></a><a 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&#39;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"></a><a href="mailto: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> &lt;action application=&quot;set&quot; data=&quot;accountcode=foo&quot;/&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 rel="nofollow" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank"></a><a href="mailto: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>-----Inline
 Attachment Follows-----<br><br><div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank"></a><a href="mailto: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"></a><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"></a><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"></a><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></div></blockquote></td></tr></tbody></table></div></blockquote><blockquote type="cite">

<div><span>_______________________________________________</span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br>

<span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>

<span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br></div></blockquote></div></div></div></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">

</div>