asterisk freeswitch 对比 学习

简介:

我建了一个 Freeswitch 内核研究 交流群, 45211986, 欢迎加入。 

 

Asterisk to FreeSWITCH Rosetta Stone

While FreeSWITCH is not a drop-in replacement for Asterisk, it does many of the same things that Asterisk does. This page is an attempt to help those familiar with Asterisk to leverage that knowledge and quickly locate that which is equivalent or analogous in FreeSWITCH. In most cases there isn't a direct, one-to-one translation, but rather similarities. For example, the "equivalent" of extensions.conf is (mostly) conf/dialplan/default.xml; but there are also features.xml, public.xml and /conf/dialplan/extensions/*xml.

  • If anyone has thoughts on this then by all means add what you know.

Configuration Files

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

Console Commands

Asterisk Console FreeSWITCH Fs cli
sip show peers/sip show registry sofia status profile internal
core set verbose 9 /log 7
core set debug 9 /debug 7
core show channels show channels / show calls
reload reloadxml
hangup request <channel> uuid_kill <uuid>
sip reload sofia profile internal rescan
sip set debug on sofia global siptrace on
sofia global debug (presence|sla|none)
sofia loglevel all [0-9]
sip set debug (ip|peer) sofia profile (internal|external) siptrace on
module load app_queue.so load mod_callcenter
core show uptime status
core show version version
console dial 1000 pa call 1000 (see mod_portaudio)

Miscellaneous

Asterisk FreeSWITCH
AMI mod_event_socket
asterisk -r fs_cli
asterisk -rx "command" fs_cli -x "command"
set verbose <verbosity> in CLI console loglevel 0-8 or console loglevel debug
chan_local Loopback
stop gracefully shutdown or ...

sip.conf params

Asterisk FreeSWITCH
dtmfmode In dialplan: start_dtmf

Asterisk experts: please add more information

Dialplan

Asterisk FreeSWITCH
exten => <extension></extension> tags
include => Misc._Dialplan_Tools_transfer
Realtime Mod xml curl to fetch the dialplan in XML
Answer Misc._Dialplan_Tools_answer
AGI Event Socket Outbound
Background Usually used for:
ChanSpy Misc._Dialplan_Tools_eavesdrop
Dial see bridge app
Dial(||L(x[:y][:z]) Limiting call time, use sched_hangup for the x and sched_broadcast for the :y and :z
Dial(SIP/${EXTEN}/sipuser) bridge with data="{sip_route_uri=sipuser}user/whatever" or data="sofia/whatever%domain.com^sipuser"
DumpChan Misc._Dialplan_Tools_info
Echo Misc._Dialplan_Tools_echo
Goto Misc._Dialplan_Tools_transfer
GotoIf Conditions in dialplan (<condition field="blah" expression="foo">)
Hangup Misc._Dialplan_Tools_hangup
Log Misc._Dialplan_Tools_log
Macro/GoSub Misc._Dialplan_Tools_execute_extension
MeetMe mod_conference
Monitor Misc._Dialplan_Tools_record_session
Monitor_exec Channel_Variables#api_hangup_hook
MP3Player mod_shout
Musiconhold mod_local_stream
NoCDR <action application="set" data="process_cdr=false"/>
NoOp Usually used for logging - Misc._Dialplan_Tools_log
Park Misc._Dialplan_Tools_park
Playback Misc._Dialplan_Tools_playback
Playtones Misc._Dialplan_Tools_gentones
Progress Misc._Dialplan_Tools_pre_answer
Queue mod_fifo
Read Misc._Dialplan_Tools_read
Record Misc._Dialplan_Tools_record
Set Misc._Dialplan_Tools_set
SetGlobal Misc._Dialplan_Tools_set_global
SIPGetHeader Auto set as variable - ${sip_h_HEADER} where HEADER is the header name
SIPAddHeader Set variable ${sip_h_HEADER} where HEADER is the header name you want to send
System Misc._Dialplan_Tools_system
Transfer Misc._Dialplan_Tools_redirect
Wait Misc._Dialplan_Tools_sleep
WaitExten Misc._Dialplan_Tools_play_and_get_digits


本文转自einyboy博客园博客,原文链接:http://www.cnblogs.com/einyboy/archive/2012/11/15/2771239.html,如需转载请自行联系原作者。



目录
相关文章
|
Linux 开发工具 git
FreeSWITCH小白入门之freeswitch安装篇
技术小白,今天带领大家一起freeswitch源码编译安装。我的上一篇文章已经搭建好了运行环境(centos7-Minimal),有人会说fs官方不是说在debian8下运行最稳定吗?我只能说,我个人爱好而已!
2824 0
|
JSON Ubuntu Linux
FreeSWITCH安装
FreeSWITCH
2059 0
FreeSWITCH安装
Asterisk怎样配置才能出视频
Asterisk怎样配置才能出视频
109 0
|
编解码 网络协议 安全
freeswitch是什么
FreeSwitch是一个开源的电话软交换平台,是一个跨平台的/伸缩性极好的/免费的/多协议的电话软交换平台。同时FreeSWITCH是一个电话的软交换解决方案,包括一个软电话和软交换机用以提供语音和聊天的产品驱动。FreeSWITCH 可以用作交换机引擎、PBX、多媒体网关以及多媒体服务器等。
freeswitch是什么
|
安全 关系型数据库 MySQL
FreeSwitch的安装
本次安装环境是centos 7, 源码目录是
1518 1
|
XML 自然语言处理 搜索推荐
FreeSWITCH 与 Asterisk
Anthony Minssale/文 Seven/译
|
NoSQL 安全 网络协议
FreeSWITCH开源介绍
FreeSWITCH架构设计,灵活、开放、可扩展的开发方式,支持集群特点,对多种协议的可支持,对高级SIP特性的可支持等特性,非常适合用来商业级的通信业务开发。
Freeswitch配置:一台Freeswitch向另外一台Freeswitch转发视频会议命令
Freeswitch配置:一台Freeswitch向另外一台Freeswitch转发视频会议命令
444 0
|
Python
实用的asterisk客户端
系统可以提供事件消息查看机制,事件保存机制,方便查看以及分析asterisk事件,同时提供方便的ami命令操作界面,提供常用命令以及特殊命令的图形化界面,方便对asterisk的结构体系以及ami命令进行了解和测试。
1554 0