Llamarada

Tomar de la élite lo que pertenece a todos

New Useful Freeswitch Tips

| Comments

As we delve deeper into FreeSwitch the discovery of clever little tools makes life easier

Display the value of a variable:

display the value of a variable
1
2
# display the value for the 'domain' variable 
fs>  eval ${domain}

Find out if user exists:

user_exists
1
2
3
4
fs>  user_exists id <domain>
# the value for <domain> can be obtained using the technique mentioned above: 'eval ${domain}'
# in the example below we try to locate user 100 at domain 127.0.0.1
fs>  user_exists 100 127.0.0.1
is a module loaded?
1
2
fs>  module_exists mod_directory
#will return true if  mod_directory has been loaded

Load freeswitch module

load module
1
2
fs>  load mod_directory
#will try to load mod_directory if it has been compiled and installed properly

Display the dialplan

display the contents of the dialplan
1
fs>  xml_locate dialplan

Comments