<br><br><div class="gmail_quote">On Mon, Jul 25, 2011 at 8:47 AM, Isaac Jurado <span dir="ltr"><<a href="mailto:ijurado@econcept.es">ijurado@econcept.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Mon, Jul 25, 2011 at 2:30 PM, Steven Ayre <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>> wrote:<br>
><br>
> There are 2 types of commands... dialplan apps (which execute on the<br>
> current channel) and API commands (which may or may not involve a<br>
> channel, when they do they always need its UUID).<br>
><br>
> APIs are generally executed from the console but can be used in the<br>
> dialplan. It's a slightly different syntax though:<br>
> <action application="set" data="result=${api arg1 arg2 arg3}"/><br>
<br>
The mod_commands wiki page shows a slightly different syntax:<br>
<br>
<action application="set" data="api_result=${sched_api(+5 none avmd<br>
${uuid} start)}"/><br>
<br>
Are the brackets optional?<br></blockquote><div>Curly braces are not optional when using this syntax. When using the set dp app and having ${api_name} in the data argument it will evaluate that argument as an API command. </div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
And also, a command like "uuid_setvar" probably does not generate any<br>
value if it is evaluated like an expression. Which value would be<br>
assigned to the channel variable in such case?<br></blockquote><div>Not sure what you mean. There's no technical reason why you couldn't do this:</div><div><br></div><div><action application="set" data="${uuid_setvar(${uuid} var_name var_value)}"/></div>
<div><br></div><div>However, obviously there's no need to use uuid_setvar on the current channel since you can just use the set application. </div><div><br></div><div>-MC</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Thanks again.<br>
<br>
--<br>
Isaac Jurado<br>
Internet Busines Solutions eConcept<br>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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>
</blockquote></div><br>