FreeSWITCH Docking Other SIP devices

Source: Internet
Author: User
Tags freeswitch

These days use to FreeSWITCH docking other equipment knowledge, here to tidy up, also convenient I later check.

    • Operating system: debian8.5_x64
    • FreeSWITCH version: 1.6.8
First, FreeSWITCH as the called device

FreeSWITCH as a device and other devices docking the situation is relatively simple, you can directly through the 5080 port inbound.
FreeSWITCH default configuration turns on port 5080 docking (for public in conf/dialplan/public.xml):

<extensionname= "Public_extensions">    <conditionField= "Destination_number"expression= "^ (10[01][0-9]) $">        <ActionApplication= "Transfer"Data= "XML default"/>    </condition></extension>
Second, FreeSWITCH as the calling device

Here is the main description of the next FreeSWITCH as the calling device how to butt other SIP devices (using SIPP simulation).

hosta:192.168.1.100
Hostb:192.168.1.101

Where Hosta is installed FREESWITCH,HOSTB uses SIPP to simulate other devices.

Docking with SIP URI format

1, edit the Conf/dialplan/public.xml file in a machine, add the following extension:

 <extensionname= "HostB">        <conditionField= "Destination_number"expression= "^0 (. *) $">                <ActionApplication= "Bridge"Data= "Sofia/external/sip:[email protected]:5080" />        </condition> </extension>

2, B machine using the SIPP analog UAS device, the command is as follows:

5080

A machine reloads the XML file (F6 or Reloadxml), on a 1000 phone call number 01234 to see the docking effect.

Using Gateway Docking

1, create the Conf/sip_profiles/external/gw_a.xml file on a machine, add the following content:

<include>      <Gatewayname= "Gw_a">        <paramname= "username"value= "Anonymous"/>        <paramname= "From-user"value=""/>        <paramname= "Password"value=""/>        <paramname= "Outbound-proxy"value= "192.168.1.101:5080"/>        <paramname= "Register-proxy"value= "192.168.1.101:5080"/>        <paramname= "Expire-seconds"value= "+"/>        <paramname= "Register"value= "false"/>        <paramname= "Register-transport"value= "UDP"/>        <paramname= "Caller-id-in-from"value= "true"/>        <paramname= "Extension-in-contact"value= "true"/>        <variables>          <variablename= "Gateway_name"value= "Gw_a"/>                  </variables>      </Gateway>    </include>    

2. Open the Conf/dialplan/public.xml file in a machine, add the following extension:

    <extensionname= "Gw_a">            <conditionField= "Destination_number"expression= "^9 (. *) $">                <ActionApplication= "Bridge"Data= "Sofia/gateway/gw_a/$1"/>            </condition>    </extension>

3, B machine using the SIPP analog UAS device, the command is as follows:

5080

4, load the gateway configuration, you need to execute the following command on a machine:

Sofia Profile External Rescan

A machine reloads the XML file (F6 or Reloadxml), on a 1000 phone call number 91234 to see the docking effect.

This article GitHub address:

Https://github.com/mike-zhang/mikeBlogEssays/blob/master/2016/20160916_freeswitch docking other SIP devices. MD

Welcome to Supplement

FreeSWITCH Docking Other SIP devices

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.