Provider Configuration: OneSuite

From FreeSWITCH Wiki
Jump to: navigation, search

onesuite.com's clown head is in the sand regarding asterisk and FS: they only "support" their own goofy softphone. But I just tested this with onesuite.com and it works.

Note that these files are set up for a multi-tenant FS server (i.e., multiple independent companies are hosted on one FS server). See Multiple Companies. To undo this and revert to a set up that will work with the stock FS 1.0.4 installation, simply change every occurrence of "my.dom.net" to "default".

On my server, $FS = /usr/local/freeswitch-1.0.4/


This file goes under $FS/conf/dialplan/public/onesuite.phonenumber.inbound.xml (you could name the file anything ending in ".xml"):

<include>
  <extension name="in.2025551212">
    <condition field="destination_number" expression="^(UserName00713\-voip\.onesuite\.com)$">
      <action application="set" data="domain_name=my.dom.net"/>
      <action application="set" data="target_domain=my.dom.net"/>
      <action application="transfer" data="four_digit_extension_number XML my.dom.net"/>
    </condition>
  </extension>
</include>

And this file goes under $FS/conf/sip_profiles/external/voip.onesuite.com.xml:

<include>
        <gateway name="onesuite">
                <param name="username" value="UserName00713-voip.onesuite.com"/>
                <param name="fromuser" value="UserName00713-voip.onesuite.com"/>
                <param name="from-domain" value="voip.onesuite.com"/>
                <param name="fromdomain" value="voip.onesuite.com"/>
                <param name="password" value="some_digits"/>
                <param name="realm" value="voip.onesuite.com"/>
                <param name="proxy" value="voip.onesuite.com"/>
                <param name="expire-seconds" value="3600"/>
                <param name="register" value="true"/>
                <param name="retry-seconds" value="900"/>
                <param name="caller-id-in-from" value="true"/>
        </gateway>
</include>