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

AsteriskFreeSWITCH
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 ConsoleFreeSWITCH Fs cli
sip show peers/sip show registrysofia status profile internal
core set verbose 9/log 7
core set debug 9/debug 7
core show channelsshow channels / show calls
reloadreloadxml
hangup request <channel>uuid_kill <uuid>
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 on
module load app_queue.soload mod_callcenter
core show uptimestatus
core show versionversion
console dial 1000pa call 1000 (see mod_portaudio)

Miscellaneous

AsteriskFreeSWITCH
AMImod_event_socket
asterisk -rfs_cli
asterisk -rx "command"fs_cli -x "command"
set verbose <verbosity> in CLIconsole loglevel 0-8 or console loglevel debug
chan_localLoopback
stop gracefullyshutdown or ...
sip.conf params
AsteriskFreeSWITCH
dtmfmodeIn dialplan: start_dtmf

Asterisk experts: please add more information

Dialplan

AsteriskFreeSWITCH
exten =><extension></extension> tags
include =>Misc._Dialplan_Tools_transfer
RealtimeMod xml curl to fetch the dialplan in XML
AnswerMisc._Dialplan_Tools_answer
AGIEvent Socket Outbound
BackgroundUsually used for:
ChanSpyMisc._Dialplan_Tools_eavesdrop
Dialsee 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"
DumpChanMisc._Dialplan_Tools_info
EchoMisc._Dialplan_Tools_echo
GotoMisc._Dialplan_Tools_transfer
GotoIfConditions in dialplan (<condition field="blah" expression="foo">)
HangupMisc._Dialplan_Tools_hangup
LogMisc._Dialplan_Tools_log
Macro/GoSubMisc._Dialplan_Tools_execute_extension
MeetMemod_conference
MonitorMisc._Dialplan_Tools_record_session
Monitor_execChannel_Variables#api_hangup_hook
MP3Playermod_shout
Musiconholdmod_local_stream
NoCDR<action application="set" data="process_cdr=false"/>
NoOpUsually used for logging - Misc._Dialplan_Tools_log
ParkMisc._Dialplan_Tools_park
PlaybackMisc._Dialplan_Tools_playback
PlaytonesMisc._Dialplan_Tools_gentones
ProgressMisc._Dialplan_Tools_pre_answer
Queuemod_fifo
ReadMisc._Dialplan_Tools_read
RecordMisc._Dialplan_Tools_record
SetMisc._Dialplan_Tools_set
SetGlobalMisc._Dialplan_Tools_set_global
SIPGetHeaderAuto set as variable - ${sip_h_HEADER} where HEADER is the header name
SIPAddHeaderSet variable ${sip_h_HEADER} where HEADER is the header name you want to send
SystemMisc._Dialplan_Tools_system
TransferMisc._Dialplan_Tools_redirect
WaitMisc._Dialplan_Tools_sleep
WaitExtenMisc._Dialplan_Tools_play_and_get_digits
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值