[Freeswitch-users] Altering arbitrary channels

Isaac Jurado ijurado at econcept.es
Mon Jul 25 19:47:23 MSD 2011


On Mon, Jul 25, 2011 at 2:30 PM, Steven Ayre <steveayre at gmail.com> wrote:
>
> There are 2 types of commands... dialplan apps (which execute on the
> current channel) and API commands (which may or may not involve a
> channel, when they do they always need its UUID).
>
> APIs are generally executed from the console but can be used in the
> dialplan. It's a slightly different syntax though:
> <action application="set" data="result=${api arg1 arg2 arg3}"/>

The mod_commands wiki page shows a slightly different syntax:

<action application="set" data="api_result=${sched_api(+5 none avmd
${uuid} start)}"/>

Are the brackets optional?

And also, a command like "uuid_setvar" probably does not generate any
value if it is evaluated like an expression.  Which value would be
assigned to the channel variable in such case?

Thanks again.

-- 
Isaac Jurado
Internet Busines Solutions eConcept



More information about the FreeSWITCH-users mailing list