There&#39;s nothing automatic, however you can do this with some dialplan magic. You&#39;ll need to handle calls from the user differently than calls to the user. For calls to the user you can add a condition to the Local_Extension. For calls from the user you can just add something near the top of the dialplan. Try something like this:<br>
<br><span style="font-family:courier new,monospace">&lt;extension name=&quot;my app&quot; continue=&quot;true&quot;&gt;<br>  &lt;condition field=&quot;${sip_authorized}&quot; expression=&quot;^true$&quot;/&gt;<br>  &lt;condition field=&quot;${execute_on_any_channel}&quot; expression=&quot;^(.+)$&quot;&gt;<br>
    &lt;action application=&quot;${execute_on_any_channel}&quot; data=&quot;${any_data_you_think_you_should_put_here}&quot;/&gt;<br>  &lt;/condition&gt;<br>&lt;/extension&gt;<br></span><br>Note the two conditions. The first checks to see if the user is SIP authorized and the second checks to see if there&#39;s a value in the chan var named &quot;execute_on_any_channel&quot;. If both conditions evaluate true then the dialplan tries to add an action to the task list. Just for kicks I added another pretend chan var for application data but that&#39;s totally up to you if you need any args for your app. In any case, the <a href="http://wiki.freeswitch.org/wiki/Reporting_Bugs#Standard_Disclaimer">standard disclaimer</a> applies, so test and tinker before you report back. :)<br>
<br>-MC<br><br><div class="gmail_quote">On Fri, Oct 12, 2012 at 1:43 AM, Babak Yakhchali <span dir="ltr">&lt;<a href="mailto:babak.freeswitch@gmail.com" target="_blank">babak.freeswitch@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi<div>is there any variable to set in directory user variables so that an application is called on every created channel for that user (or on every channel answered)?</div>
<div><div>&lt;include&gt;</div><div>  &lt;user id=&quot;3003&quot;&gt;</div>
<div>    &lt;params&gt;</div><div>      ...</div><div>    &lt;/params&gt;</div><div>    &lt;variables&gt;</div><div>      ...</div><div>      &lt;variable name=&quot;execute_on_any_channel&quot; value=&quot;my_app&quot;/&gt;<span style="white-space:pre-wrap">        </span>  </div>

<div>      </div><div>    &lt;/variables&gt;</div><div>  &lt;/user&gt;</div><div>&lt;/include&gt;</div></div><div>thanx</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>