FreeSWITCH API常用手册

本文档提供了FreeSWITCH API的常用命令查询,包括通道管理、数据库操作、日志控制、系统控制等多个方面。例如,用于检测IP与访问控制列表的`acl`命令,执行后台系统命令的`bg_system`,以及用于创建UUID的`create_uuid`等。这些命令对于管理和操作FreeSWITCH系统至关重要。
摘要由CSDN通过智能技术生成

 

FreeSWITCHAPI

 

 

 

西安睿智电子科技有限公司

地址:陕西省西安市碑林区太白北路太白星座1115室

电话:02968711800

网址:www.verycc.com

                                  

                                                       

acl,<ip><list_name>,Comparean ip to an acl list,mod_commands

检测IP与当前访问控制列表

alias,[add|stickyadd]<alias> <command> | del [<alias>|*]

Alias,mod_commands banner,,Return thesystem banner,mod_commands

别名

bg_system,<command>,

Execute a system command in thebackground,mod_commands

后台执行系统命令

bgapi,<command>[<arg>],

Execute an api command in athread,mod_commands

后台执行API命令

break,<uuid>[all],uuid_break,mod_commands

桥接命令

cdr_csv,parameters,cdr_csvcontrols,mod_cdr_csv

csv格式的CDR()

chat,<proto>|<from>|<to>|<message>|[<content-type>],chat,mod_dptools

发送消息

coalesce,[^^<delim>]<value1>,<value2>,...,

Return first nonemptyparameter,mod_commands

返回第一个非空参数

complete,add<word>|del [<word>|*],Complete,mod_commands

 

cond,<expr>? <true val> : <false val>,Evaluate a conditional,mod_commands

求表达式的值

conference,,Conferencemodule commands,mod_conference

console,loglevel[level]|colorize [on|toggle|off],Console,mod_console

调试日志级别

console_complete,<line>,,mod_commands

 

console_complete_xml,<line>,,mod_commands

 

create_uuid,<uuid><other_uuid>,Createa uuid,mod_commands

创建uuid

db,[insert|delete|select|exists|count|list]/<realm>/<key>/<value>

db get/set,mod_db

获取、设置数据库

db_cache,status,Managedb cache,mod_commands

管理数据库缓存

domain_data,<domain>[var|param|attr] <name>,

Find domain data,mod_commands

查找域名数据

domain_exists,<domain>,Check if a domainexists,mod_commands

检测域名是否存在

echo,<data>,Echo,mod_commands

 

enum,,ENUM,mod_enum

escape,<data>,Escape a string,mod_commands

转义字符串

eval,[uuid:<uuid>]<expression>,eval(noop),mod_commands

 

event_channel_broadcast,<channel><json>,Broadcast,mod_commands

事件广播

event_sink,<webdata>,event_sink,mod_event_socket

 

expand,[uuid:<uuid>]<cmd> <args>

Execute an api with variableexpansion,mod_commands

 

expr,<expr>,Eval an expression,mod_expr

 

fifo,list|list_verbose|count|debug|status|has_outbound|importance[<fifo name>]|reparse [del_all],Return data about a fifo,mod_fifo

 

fifo_add_outbound,<node><url> [<priority>],

Add outbound members to a fifo,mod_fifo

 

fifo_check_bridge,<uuid>|<outbound_id>,check if uuid is in abridge,mod_fifo

 

fifo_member,[add<fifo_name> <originate_string> [<simo_count>][<timeout>] [<lag>] [<expires>] [<taking_calls>] | del<fifo_name> <originate_string>],Add members to a fifo,mod_fifo

 

file_exists,<file>,Check if a file exists onserver,mod_commands

 

find_user_xml,<key><user> <domain>,Finda user,mod_commands

 

fsctl,[recover|send_sighup|hupall|pause[inbound|outbound]|resume [inbound|outbound]|shutdown[cancel|elegant|asap|now|restart]|sps|sps_peak_reset|sync_clock|sync_clock_when_idle|reclaim_mem|max_sessions|min_dtmf_duration[num]|max_dtmf_duration [num]|default_dtmf_duration [num]|min_idle_cpu|loglevel[level]|debug_level [level]],

FS control messages,mod_commands

 

getcputime,[reset],Gets CPU time in milliseconds

 

(user,kernel),mod_commands

getenv,<name>,getenv,mod_commands

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值