Risk-Free Trial      Online Chat      Contact Us      Blog      FAQs     Call: 800-588-2350      

sample-configs.png

How to configure FreeSWITCH

To obtain your credentials go to myipcomms.net or check your provisioning letter then enter your information below

  • username=SIP username provided
  • password = SIP Password provided
  • DIDNUMBER= DID number provided

Server requirements: Config editor like nano,pico,vi. vim, emacs

REGISTER TRUNK

nano /usr/local/freeswitch/conf/sip_profiles/external/ipcomms.xml
&ltinclude&gt
    &ltgateway name="IPCOMMS"&gt
      &ltparam name="username" value="username"/&gt
      &ltparam name="auth-username" value="username"/&gt
      &ltparam name="password" value="sip password"/&gt
      &ltparam name="proxy" value="2way.ipcomms.net"/&gt
      &ltparam name="expire-seconds" value="800"/&gt
      &ltparam name="register" value="true"/&gt
      &ltparam name="register-transport" value="udp"/&gt
      &ltparam name="retry-seconds" value="60"/&gt
      &ltparam name="context" value="public"/&gt
    &lt/gateway&gt
&lt/include&gt

ADD DID NUMBER(s) (One number per file preferred )

nano /usr/local/freeswitch/conf/dialplan/public/DIDNUMBER.xml

&ltextension name="DIDNUMBER" &gt
   &ltcondition field="context" expression="public" /&gt
   &ltcondition field="destination_number" expression="^(DID NUMBER)$" &gt
       &ltaction application="transfer" data="100 XML default" /&gt
   &lt/condition&gt
&lt/extension&gt

CONFIGURE OUTBOUND DIALING (set for 11 digit dialing)

nano /usr/local/freeswitch/conf/dialplan/default/IPCOMMS_OUT.xml

&ltextension name="IPCOMMS_OUT" &gt
   &ltcondition field="destination_number" expression="^(\d{11})$" &gt
       &ltaction application="set" data="sip_h_X-accountcode=${accountcode}" /&gt
       &ltaction application="set" data="sip_h_X-Tag=" /&gt
       &ltaction application="set" data="call_direction=outbound" /&gt
       &ltaction application="set" data="hangup_after_bridge=true" /&gt
       &ltaction application="set" data="effective_caller_id_name=${outbound_caller_id_name}" /&gt
       &ltaction application="set" data="effective_caller_id_number=${outbound_caller_id_number}" /&gt
       &ltaction application="set" data="inherit_codec=true" /&gt
       &ltaction application="bridge" data="sofia/gateway/IPCOMMS/$1" /&gt
   &lt/condition&gt
&lt/extension&gt

CONFIGURE an EXTENSION

nano /usr/local/freeswitch/conf/directory/default/100.xml
&ltinclude&gt
  &ltuser id="100"&gt
    &ltparams&gt
      &ltparam name="password" value="ext1234"/&gt
    &lt/params&gt
    &ltvariables&gt
      &ltvariable name="toll_allow" value=""/&gt
      &ltvariable name="accountcode" value=""/&gt
      &ltvariable name="user_context" value="default"/&gt
      &ltvariable name="effective_caller_id_name" value="Your name"/&gt
      &ltvariable name="effective_caller_id_number" value="204"/&gt
      &ltvariable name="outbound_caller_id_name" value="Your Name"/&gt
      &ltvariable name="outbound_caller_id_number" value="CNAM"/&gt
      &ltvariable name="emergency_caller_id_number" value="CNAM"/&gt
      &ltvariable name="directory-visible" value="true"/&gt
      &ltvariable name="limit_max" value="2"/&gt
    &lt/variables&gt
  &lt/user&gt
&lt/include&gt

Courtesy of FreeswitchLogoCopyright 2008-2012. All Rights Reserved