четверг, 27 февраля 2020 г.

Freeswitch tools commands like asterisk

fs_cli  - Консоль
/exit    - Выйти из консоли
fs_cli -x "status"   - выполнить комманду, не заходя в консоль

например: посмотреть sip пиры

fs_cli -x "sofia status gateway"

  • /quit
  • /bye
  • /exit
Other "slash" commands correspond to mod_event_socket commands:
  • /event - Enable events (More Info)
  • /noevents - Disable all events previously enabled with /event
  • /nixevent - Enable all but one type of event (More Info)
  • /log - set loglevel of the FreeSWITCH daemon (e.g. /log info or /log alert) (More Info)
  • /nolog - Disable logging (More Info)
  • /uuid - Filter logs for a single call uuid
  • /filter (More Info)
  • /help - List fs_cli commands
Additional command available only in fs_cli
  • /logfilter <string> - Displays only lines in /log containing <string>. /logfilter without argument disables logfilter


Configuration Files

Asterisk
FreeSWITCH
extensions.confconf/dialplan/default.xml; also features.xml, public.xml, extensions/*xml
logger.confmod_console and mod_syslog
rtp.confconf/autoload_configs/switch.conf.xml
sip.confconf/directory/*.xml (see mod_sofia)
voicemail.confmod_voicemail - voicemail.conf.xml, conf/directory/*xml
zapata.confconf/autoload_configs/openzap.conf.xml
RealtimeUse mod_xml_curl to fetch the user and/or dialplan in XML, mod_ldap for LDAP backend

Console Commands

Asterisk Console
FreeSWITCH Fs cli
Shortcut Key
core show helphelpF1
core show uptimestatusF2
core show channelsshow channelsF3
core show callsshow callsF4
sip show settingssofia status
sofia status profile internal
F5
F9
core reloadreloadxmlF6
core set verbose 0/log 0F7
core set verbose 9/log 7F8
core set debug 9/debug 7
core show versionversionF12
channel originate sip/source extension destinationoriginate user/source destination xml default
channel originate sip/source application appname dataoriginate user/source &appname(data)
console dial 1000pa call 1000 (see  mod_portaudio)
database get family keydb select/family/key
dialplan showxml_locate dialplan
hangup request channeluuid_kill uuid
module load app_queue.soload mod_callcenter

queue show
callcenter_config queue list
callcenter_config tier list 
queue show queue_name
callcenter_config queue list agents queue_name@default
callcenter_config queue list members queue_name@default
sip reloadsofia profile internal rescan
sip set debug onsofia global siptrace on
sofia global debug (presence|sla|none)
sofia loglevel all [0-9]
sip set debug (ip|peer)sofia profile (internal|external) siptrace onsip mesage debug
sip show peerslist_users
sofia status profile internal reg
sip show peer sip_providersofia status gateway sip_provider

пятница, 14 февраля 2020 г.

freeswitch + mod_shout = mp3

1) uncomment formats/mod_shout in modules.conf
2) apt-get install libvorbis0a libogg0 libogg-dev libvorbis-dev libmpg123-dev  libshout3-dev
3) compile ./configure & make & make install
4) restart freeswitch or load mod_shout