Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > FreeSWITCH Controller > Modules > freeswitch
command_async/4
Description
command_async/4 is an Erlang function exported by "freeswitch" module.
Sends FreeSWITCH API command with parameters in the background (asynchronously).
References
•FreeSWITCH API Documentation
Parameters
Name
Type
Server
atom()
Identifier for FreeSWITCH server.
Command
FreeSWITCH command. Refer to FreeSWITCH API for more details.
Params
string()
FreeSWITCH command's parameters.
Timeout
integer()
Controls the response timeout in milliseconds.
Result
Value or Type
{freeswitch, response, UUID}
On success returns a UUID
Code Sample
> freeswitch:command_async(test, reloadxml, "", 1000).
{freeswitch, response, "44f3690a-6d34-4c86-a980-848cf8762e5c"}