Rosetta Stone

From FreeSWITCH Wiki

(Redirected from Rosetta stone)
Jump to: navigation, search

Contents

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
sip.confconf/directory/*xml
voicemail.confmod_voicemail - voicemail.conf.xml, conf/directory/*xml
zapata.confconf/autoload_configs/openzap.conf.xml

Dialplan

AsteriskFreeSWITCH
exten =><extension></extension> tags
include =>Misc._Dialplan_Tools_transfer
RealtimeXML 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
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
NoOpUsually used for logging - Misc._Dialplan_Tools_log
ParkMisc._Dialplan_Tools_park
PlaybackMisc._Dialplan_Tools_playback
PlaytonesMisc._Dialplan_Tools_gentones
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

For an example on converting an Asterisk dialplan to a FreeSWITCH one see Converting Asterisk Dialplans to FreeSWITCH

SIP Configuration

AsteriskFreeSWITCH
sip.confmod_sofia
Realtimemod_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
set verbose/debug
show channelsshow channels
reloadreloadxml
soft hangup <channel>uuid_kill <uuid>
sip reloadsofia profile internal rescan
sip debugsofia profile internal siptrace on (svn rev 12478)

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 ...

See Also

Personal tools
Community
Support FreeSWITCH