Rosetta stone

From FreeSWITCH Wiki

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

Dialplan

AsteriskFreeSWITCH
exten=><extension></extension> tags
RealtimeXML Curl to fetch the dialplan in XML
Dial(||L(x[:y][:z])Limiting call time, use sched_hangup for the x and sched_broadcast for the :y and :z

SIP Configuration

AsteriskFreeSWITCH
sip.confconf/sip_profiles/*
RealtimeXML Curl to fetch the user in XML

Miscellaneous

AsteriskFreeSWITCH
AMImod_eventsocket
asterisk -rPerl script: src/scripts/socket/fs.pl
set verbose <verbosity> in CLIStart fs.pl with debug level parameter. I.e. fs.pl DEBUG
chan_localYou can bridge the call back into the dialplan with sofia, or you can add extra vars to an outbound leg by prefixing [varname=value] for every leg in the dialstring
stop gracefullyshutdown or ...


See Also

Getting_Started_Guide

Personal tools