Difference between revisions of "User:Mduno"
(New page: '''Note ... This is a "work in progress."''' =TELECOM SETUP= ==Setting up LinuxMCE to use Callcentric's VoIP Service(s)== Setting up LinuxMCE to use Callcentric's VoIP service(s) is fair...) |
(→note from tschak) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
=TELECOM SETUP= | =TELECOM SETUP= | ||
==Setting up LinuxMCE to use Callcentric's VoIP Service(s)== | ==Setting up LinuxMCE to use Callcentric's VoIP Service(s)== | ||
Line 14: | Line 12: | ||
<u>Create the Callcentric Config File</u> | <u>Create the Callcentric Config File</u> | ||
− | + | 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: | ||
+ | * <font>Change </font>channelid<font> to </font>callcentric | ||
+ | $TRUNK_VARS{'channelid'}="callcentric"; | ||
+ | * <font>Remove the following '</font>usercontext<font>' and '</font>userconfig<font>' lines:</font> | ||
+ | $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) | ||
+ | |||
+ | <u>Pulling Callcentric Config into the Web Admin</u> | ||
+ | |||
+ | 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. --[[User:Tschak909|Tschak909]] 05:41, 29 April 2010 (CEST) | ||
+ | |||
+ | I would be glad to work with you on getting the script into the distribution. The script has been working for me for the last several weeks. Presumably you need a copy. How do you recommend proceeding? | ||
+ | --[[User:Mduno|Mduno]] 20:57, 30 April 2010 (CEST) |
Latest revision as of 19:57, 30 April 2010
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)
I would be glad to work with you on getting the script into the distribution. The script has been working for me for the last several weeks. Presumably you need a copy. How do you recommend proceeding? --Mduno 20:57, 30 April 2010 (CEST)