Rosetta stone
From FreeSWITCH Wiki
Contents |
[edit]
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
[edit]
Configuration Files
| Asterisk | FreeSWITCH |
|---|---|
| extensions.conf | conf/dialplan/default.xml; also features.xml, public.xml, extensions/*xml |
| sip.conf | conf/directory/*xml |
| zapata.conf | conf/autoload_configs/openzap.conf.xml |
[edit]
Dialplan
| Asterisk | FreeSWITCH |
|---|---|
| exten=> | <extension></extension> tags |
| Realtime | XML 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 |
[edit]
SIP Configuration
| Asterisk | FreeSWITCH |
|---|---|
| sip.conf | conf/sip_profiles/* |
| Realtime | XML Curl to fetch the user in XML |
[edit]
Miscellaneous
| Asterisk | FreeSWITCH |
|---|---|
| AMI | mod_eventsocket |
| asterisk -r | Perl script: src/scripts/socket/fs.pl |
| set verbose <verbosity> in CLI | Start fs.pl with debug level parameter. I.e. fs.pl DEBUG |
| chan_local | You 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 gracefully | shutdown or ... |
[edit]
