# FreeSwitch Tips

#### Links

##### FreeSwitch

- Documentation: [https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/](https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/)
- Github: [https://github.com/signalwire/freeswitch](https://github.com/signalwire/freeswitch)
- Forum: [https://forum.signalwire.community/](https://forum.signalwire.community/)

##### FreeSwitch GUI

- [FusionPBX](https://www.fusionpbx.com/) - FusionPBX can be used as a highly available single or domain based multi-tenant PBX, carrier grade switch,...
- [OV500](https://ov500.openvoips.org/) - OV500 is Open Source VoIP Billing switching and routing Solution.
- [ASTPP](https://astppbilling.org/) - is renowned as the #1 open source Class 4 and Class 5 SoftSwitch based on FreeSWITCH. 
    - [ASTPP VoIP Billing 6 Debian 11 Freeswitch 1.10 Install Guide](https://powerpbx.org/astpp-voip-billing-v6-debian-v11-freeswitch-v110-install-guide-v1)

#### FreeSwitch CLI

```bash
fs_cli

fs_cli -x "sofia status"
```

```shell
> sofia status
> sofia status profile internal reg
> show registrations

> /quit
> version
> show calls
> show channels

> reloadxml
> sofia profile external restart
> sofia profile external killgw gwt
> sofia profile external rescan
> reload
> reloadxml
> reloadacl
> reload <mod_name>
> show modules

> status
> eval $${external_sip_ip}
> fsctl shutdown restart


> domain_exists sip.osslab.tw
> module_exists mod_event_socket
```

#### PostgreSQL

```
su - postgres
psql fusionpbx

fusionpbx=# \dt
fusionpbx=# \d v_gateways
fusionpbx=# select * from v_gateways;
fusionpbx=# select * from v_default_settings where default_setting_category='email';
```