There's nothing automatic, however you can do this with some dialplan magic. You'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"><extension name="my app" continue="true"><br> <condition field="${sip_authorized}" expression="^true$"/><br> <condition field="${execute_on_any_channel}" expression="^(.+)$"><br>
<action application="${execute_on_any_channel}" data="${any_data_you_think_you_should_put_here}"/><br> </condition><br></extension><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's a value in the chan var named "execute_on_any_channel". 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'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"><<a href="mailto:babak.freeswitch@gmail.com" target="_blank">babak.freeswitch@gmail.com</a>></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><include></div><div> <user id="3003"></div>
<div> <params></div><div> ...</div><div> </params></div><div> <variables></div><div> ...</div><div> <variable name="execute_on_any_channel" value="my_app"/><span style="white-space:pre-wrap">        </span> </div>
<div> </div><div> </variables></div><div> </user></div><div></include></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>