{{tag>Setup FreeSWITCH PBX Configuration}} ====== FreeSWITCH ====== === Getting Started with FreeSWITCH === The below configuration should be used as an example. == Setting up the Gateway == :!: Don't forget to start the new gateway on the FreeSWITCH console: freeswitch> sofia profile external rescan reloadxml This assumes the gateway was created in the external profile. == Inbound Routing == Example: == Outbound Routing == The below matches the number dialled by an internal extension and routes it out to the gateway (defined above). This is UK number format. It matches optional 9 prefix and either national significant format or e.164 format (ie 01224900123 or +441224900123). International dialling, with optional 9 prefix. Number to call must have either + or 00 to indicate international number. Emergency dialling, includes 999 and 112 and non-emergency including 101, 105, 111, 116xxx with optional 9 prefix. ====== Further Reading ====== * [[https://freeswitch.org/confluence/display/FREESWITCH/Sofia+SIP+Stack|Sofia SIP stack documentation]] * [[https://wiki.freeswitch.org/wiki/Sofia_Configuration_Files|Sofia.conf.xml configuration documentation]] * [[http://wiki.freeswitch.org/wiki/Provider_Configuration:_SureVoIP|Provider Configuration: SureVoIP]] - :!: not updated in a while