Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > FreeSWITCH Controller > Modules > freeswitch
command/3
Description
command/3 is an Erlang function exported by "freeswitch" module.
Sends FreeSWITCH API command with parameters.
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.
Result
Value or Type
{freeswitch, response, Respone}
On success returns a Response terms.
Code Sample
> freeswitch:command(test, reloadxml).
{freeswitch, response, "+OK [Success]\n"}
> freeswitch:command(test, undefined_command).
{freeswitch, error, "undefined_command: Command not found!\n"}