Skip to main content

FreeSwitch

FreeSwitch
FreeSwitch GUI
  • FusionPBX - FusionPBX can be used as a highly available single or domain based multi-tenant PBX, carrier grade switch,...
  • OV500 - OV500 is Open Source VoIP Billing switching and routing Solution.
FusionPBX

FusionPBX

NAT Setting

Web Admin > Advanced > Variables > IP Addresses

  • external_rtp_ip: <server-public-ip>
  • external_sip_ip: <server-public-ip>

重啟 freeswitch

systemctl restart freeswitch

驗證

Web Admin > Status > SIP Status

  • sofia status profile internal: ext-rtp-ip, ext-sip-ip
  • sofia status profile external: ext-rtp-ip, ext-sip-ip
Gateway to Asterisk

On FreePBX

    Added a custom context 'from-ext-sip-server' with the module Custom Contexts. FreePBX Admin > Connectivity > Custom Contexts > Add Context
      Context: from-ext-sip-server Description: Whatever Outbound Routes: <allow-some-route> Add Trunk
        Trunk Name: fusionpbx PEER Details:
        host=sip.osslab.tw
        type=peer
        context=from-ext-sip-server
        nat=yes
        insecure=port,invite

        On FusionPBX

         

         

         

        FreeSwitch CLI
        fs_cli
        
        fs_cli -x "sofia status"
        > 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
        > 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
        
        fusionpbx=# \dt
        
        fusionpbx=# \d v_gateways