FreeSwitch

FreeSwitch Configuration

Termination

You may need to add from domain param set to icttech.net for termination to work.

<param name="from-domain" value="icttech.net"/>

Config

  • If you have a linksys device (spa2102 spa5xx series), they will reject calls if ptime is not set to 20. Make sure you change that in the phone's configuration (rtp packet size 0.020 [from 0.030]).
  • Based on icall config above
  • Only tested with IP auth
  • Place the following in conf/sip_profiles/external/icttech.xml (Please note for some versions "sip_profiles" has been changed to "vanilla/sip_profiles"):
 <include>
  <gateway name="icttech">
    <!-- Replace the values below with your icttech.net username and password. -->
    <param name="username" value="your_username" />
    <param name="password" value="your_password" />
    <!-- This gateway could be different depending on which switch you are on -->
    <param name="proxy" value="montreal|houston|newyork|etc.icttech.net" />
    <param name="realm" value="icttech.net" />
    <!-- This should be set to "true" for registration based -->
    <param name="register" value="true" />
    <!-- icttech.net requires the Remote-Party-Identity Header to be set in the Sip invite for Caller-ID to work right
        DON'T FORGET TO REMOVE ANY CALLER ID INFO IN http://icttech.net->Main Menu->Account Settings->General->CallerID Number
    -->
    <param name="sip_cid_type" value="rpid" /> 
    <!--Setting in one place is much easier than everywhere you may bridge. You can do this since 2010 Sept 27 
       http://jira.freeswitch.org/browse/FS-2722
    -->
  </gateway>
 </include>
 

Caller ID

icttech.net requires the Remote-Party-Identity Header to be set in the Sip invite. Use:

<param name="sip_cid_type" value="rpid" /> 

Errors

  1. destination_number (inbound public) is getting set as my Sip_profile username.
    • if you have a subaccount set up, make sure "Device Type" is set to "Asterisk, ip pbx, gateway or voip switch" and not "ata device, ip phone or soft phone". Once this is fixed, destination_number will be the correct DID number.

Additional Suggestions

  • Configure your firewall to allow incoming SIP and RTP traffic from the IP address of your icttech.net “DID POP”. SIP is TCP/UDP port 5060. For RTP icttech.net uses UDP ports 10001:20000. Make sure that the RTP start and end ports in autoload_configs/switch.conf.xml match these values.
  • Configure NAT. You need to forward the SIP and RTP traffic via NAT to your FreeSwitch server IP. For SIP traffic you will also need to change the destination port from TCP/UDP 5060 to TCP/UDP 5080. FreeSwitch listens for external connections on port 5080.
  • Restart FreeSwitch. Run a recursive chown to make sure that the freeswitch user owns these new files. I have found FreeSwitch to be tricky when it comes to reloading configurations. Usually a reloadxml in the CLI will work but sometimes you also have to do a sofia rescan. I recommend you restart FreeSwitch after making these changes.
  • Test Configuration. Once FreeSwitch has restarted (this takes a few minutes) launch fs_cli and check the SIP connections status with sofia status. If all went well you should see something like this: external::icttech gateway sip:[acct #]@[pop].icttech.net REGED
  • 104 Users Found This Useful
Was this answer helpful?

Related Articles

LG Vertical Summit

The LG Vertical Summit is a hybrid IP PBX which offers a robust digital and VoIP solution. We...

Nortel/Avaya BCM 450 and BCM50 R6

NortelBCM   To configure the Nortel BCM you must have VOIP Trunk or SIP Trunk keycodes. The...

3CX Phone System

3CX Phone System for Windows Version 9. 3CX Phone System is a software-based IP PBX that...

Asterisk

Asterisk is a telephone private branch exchange (PBX), created in 1999 as open software for Linux...

Asterisk IAX2

iax.conf [general] register => 100000:johnspassword@atlanta.icttech.net:4569...