User:Mduno

From LinuxMCE
Revision as of 05:41, 29 April 2010 by Tschak909 (Talk | contribs) (Added collab note.)

Jump to: navigation, search

TELECOM SETUP

Setting up LinuxMCE to use Callcentric's VoIP Service(s)

Setting up LinuxMCE to use Callcentric's VoIP service(s) is fairly straightforward using the steps provided in "How to Properly Add Support for SIP Providers":

http://wiki.linuxmce.org/index.php/How_to_properly_add_support_for_SIP_providers

as well as Callcentric's freepbx / trixbox configuration page:

http://www.callcentric.com/support/device/trixbox

Create the Callcentric Config File

1. In a terminal session, make yourself "sudo su" user.

2. Since Callcentric provides VoIP based phone services using the SIP protocol, copy the Broadvoice config file as a template for editing with Callcentric's parameters:

"cp /usr/pluto/bin/create_amp_broadvoice.pl /usr/pluto/bin/create_amp_callcentric.pl"

3. Edit the Callcentric config file:

"nano /usr/pluto/bin/create_amp_callcentric.pl"

making the following changes:

3.1 Phone Line declaration section; change the declared host to reflect callcentric.com

my $DECLARED_HOST = "callcentric.com";

3.2 Trunk section changes:

  • Change channelid to callcentric
$TRUNK_VARS{'channelid'}="callcentric";
  • Remove the following 'usercontext' and 'userconfig' lines:
$TRUNK_VARS{'usercontext'}="$DECLARED_HOST";
$TRUNK_VARS{'userconfig'} ="context=from-pstn\n";
$TRUNK_VARS{'userconfig'} .="dtmf=inband\n";
$TRUNK_VARS{'userconfig'} .="dtmfmode=inband\n";
$TRUNK_VARS{'userconfig'} .="fromdomain=$DECLARED_HOST\n";
$TRUNK_VARS{'userconfig'} .="host=$DECLARED_HOST\n";
$TRUNK_VARS{'userconfig'} .="insecure=very\n";
$TRUNK_VARS{'userconfig'} .="nat=yes\n";
$TRUNK_VARS{'userconfig'} .="secret=$DECLARED_USERPASSWD\n";
$TRUNK_VARS{'userconfig'} .="type=user\n";
$TRUNK_VARS{'userconfig'} .="user=$DECLARED_USERNAME\n";
$TRUNK_VARS{'userconfig'} .="username=$DECLARED_USERNAME\n";

3.3 Setup Callcentric registration string.

$TRUNK_VARS{'register'}="$DECLARED_USERNAME:$DECLARED_USERPASSWD\@$DECLARED_HOST\/$DECLARED_USERNAME";

3.4 Adjust 'routename' in ADD OUTGOING ROUTING section to "to-callcentric"

{
    chomp;
    if($_ =~ /[<]option value[=]\"([^\"]+)\"[>]SIP\/callcentric[<]\/option[>]/)
    {
        $OUT_ROUTE=$1;
    }
}

4. Write changes (CNTRL+O) and exit (CNTRL+X)

Pulling Callcentric Config into the Web Admin

1. In a terminal session, make yourself "sudo su" user.

2. Edit the provider list:

"nano /etc/asterisk/provider_list.txt"

adding the following entry at the bottom of the list:

callcentric     http://www.callcentric.com      callcentric     SIP

Tab between entries.

3. Write changes (CNTRL+O) and exit (CNTRL+X)

note from tschak

could you please work with me to put this script into the distribution, once you're done with it? Thanks. --Tschak909 05:41, 29 April 2010 (CEST)