LinuxMCE Forums

General => Developers => Topic started by: totallymaxed on January 10, 2008, 11:47:21 am

Title: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 10, 2008, 11:47:21 am
We are looking for people to contribute new Phone Line Provider scripts for providers in their country/region that are not already available in the 'Provider' pop-up in Wizard -> Devices -> Phone Lines

Below is the source for the "create_amp_sipgate.pl" for SipGate. You can cut/paste it into a new file and change the settings where appropriate for your new provider. The save it with a new name in same format but replacing the "xxxxxxxxx" with he name of the provider you are adding ie create_amp_xxxxxxxxxx.pl

Once you have created your new "create_amp_xxxxxxxxxx.pl" file create a Mantis called "New PhoneLine Provider" in the 0710 section called and attach your script to it.

Thats all there is to it... then in the coming weeks these new providers will appear in a 0710 update.

Thanks in advance for your contribution!

****** Please not the Perl Source below has had comments added to all lines that may need to be changed/updated for the specific provider that you are trying to add support for. Hope this helps you make the changes you need to for your chosen provider...******

Code: [Select]
#!/usr/bin/perl

use strict;
use diagnostics;
use DBI;

my $DECLARED_USERNAME;
my $DECLARED_USERPASSWD;
my $DECLARED_NUMBER;
my $DECLARED_HOST = "sipgate.co.uk"; ### Will need to be changed!
my $DECLARED_PREFIX = "9"; ### May need to be changed!
my $LOCAL_PREFIX1 = ""; ### May need to be changed!
my $LOCAL_PREFIX2 = ""; ### May need to be changed!

my $TRUNK_URL = 'http://localhost/admin/config.php?display=trunks&tech=SIP'; ### May need to be changed!
my %TRUNK_VARS = ();
my $TRUNK_DATA = "";

my $OUT_URL = 'http://localhost/admin/config.php?display=routing'; ### May need to be changed!
my %OUT_VARS = ();
my $OUT_DATA = "";

my $IN_URL = 'http://localhost/admin/config.php?display=did'; ### May need to be changed!
my %IN_VARS = ();
my $IN_DATA = "";

#check params
unless (defined($ARGV[0]) && defined($ARGV[1]) && defined($ARGV[2]))
{
    print "USAGE :$0 <username> <password> <phone_number> [<register_host>] [<prefix_to_use_the_line>]\n";
    exit(-1);
}

#fix permissions on each run
`chmod g+w /etc/asterisk/*`;
#add local prefixes
&get_local_prefixes();

$DECLARED_USERNAME=$ARGV[0];
$DECLARED_USERPASSWD=$ARGV[1];
$DECLARED_NUMBER=$ARGV[2];
$DECLARED_HOST=$ARGV[3] if(defined($ARGV[3]));
$DECLARED_PREFIX=$ARGV[4] if(defined($ARGV[4]));

### Some Or all of the $TRUNK_VARS below may need to be updated/changed for the provider you are adding

### ADD TRUNK
$TRUNK_VARS{'display'}="trunks";
$TRUNK_VARS{'extdisplay'}="";
$TRUNK_VARS{'action'}="addtrunk";
$TRUNK_VARS{'tech'}="sip";
$TRUNK_VARS{'outcid'}="";
$TRUNK_VARS{'maxchans'}="";
$TRUNK_VARS{'dialrules'}=$LOCAL_PREFIX1;
$TRUNK_VARS{'autopop'}="";
$TRUNK_VARS{'dialoutprefix'}="";
$TRUNK_VARS{'channelid'}="sipgate";
$TRUNK_VARS{'peerdetails'} ="allow=alaw&alaw&ulaw&g729&gsm&slinear\n";
$TRUNK_VARS{'peerdetails'}.="auth=md5\n";
$TRUNK_VARS{'peerdetails'}.="context=from-trunk\n";
#$TRUNK_VARS{'peerdetails'}.="disallow=all\n";
$TRUNK_VARS{'peerdetails'}.="host=$DECLARED_HOST\n";
$TRUNK_VARS{'peerdetails'}.="username=$DECLARED_USERNAME\n";
$TRUNK_VARS{'peerdetails'}.="callerid=$DECLARED_USERNAME\n";
$TRUNK_VARS{'peerdetails'}.="user=$DECLARED_USERNAME\n";
$TRUNK_VARS{'peerdetails'}.="fromuser=$DECLARED_USERNAME\n";
$TRUNK_VARS{'peerdetails'}.="authuser=$DECLARED_USERNAME\n";
$TRUNK_VARS{'peerdetails'}.="secret=$DECLARED_USERPASSWD\n";
$TRUNK_VARS{'peerdetails'}.="fromdomain=$DECLARED_HOST\n";
$TRUNK_VARS{'peerdetails'}.="dtmfmode=inband\n";
$TRUNK_VARS{'peerdetails'}.="nat=yes\n";
$TRUNK_VARS{'peerdetails'}.="qualify=no\n";
$TRUNK_VARS{'peerdetails'}.="type=peer\n";
$TRUNK_VARS{'peerdetails'}.="canreinvite=no\n";
$TRUNK_VARS{'peerdetails'}.="insecure=very\n";

$TRUNK_VARS{'usercontext'}=$DECLARED_NUMBER;
$TRUNK_VARS{'userconfig'}=
$TRUNK_VARS{'userconfig'} ="allow=alaw&alaw&ulaw&g729&gsm&slinear\n";
$TRUNK_VARS{'userconfig'}.="auth=md5\n";
$TRUNK_VARS{'userconfig'}.="context=from-trunk\n";
#$TRUNK_VARS{'userconfig'}.="disallow=all\n";
$TRUNK_VARS{'userconfig'}.="host=$DECLARED_HOST\n";
$TRUNK_VARS{'userconfig'}.="username=$DECLARED_USERNAME\n";
$TRUNK_VARS{'userconfig'}.="callerid=$DECLARED_USERNAME\n";
$TRUNK_VARS{'userconfig'}.="user=$DECLARED_USERNAME\n";
$TRUNK_VARS{'userconfig'}.="fromuser=$DECLARED_USERNAME\n";
$TRUNK_VARS{'userconfig'}.="authuser=$DECLARED_USERNAME\n";
$TRUNK_VARS{'userconfig'}.="secret=$DECLARED_USERPASSWD\n";;
$TRUNK_VARS{'userconfig'}.="fromdomain=$DECLARED_HOST\n";
$TRUNK_VARS{'userconfig'}.="dtmfmode=inband\n";
$TRUNK_VARS{'userconfig'}.="nat=yes\n";
$TRUNK_VARS{'userconfig'}.="qualify=no\n";
$TRUNK_VARS{'userconfig'}.="type=user\n";
$TRUNK_VARS{'userconfig'}.="canreinvite=no\n";
$TRUNK_VARS{'userconfig'}.="insecure=very\n";

$TRUNK_VARS{'register'}="$DECLARED_USERNAME:$DECLARED_USERPASSWD\@$DECLARED_HOST/$DECLARED_USERNAME";
foreach my $var (keys %TRUNK_VARS)
{
    my $str = $TRUNK_VARS{$var};
    $str =~ s/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg;
    $TRUNK_DATA    .=$var."=".$str."&";
}
`curl -d '$TRUNK_DATA' '$TRUNK_URL' > /dev/null`;


### ADD OUTGOING ROUTING
`curl -L '$OUT_URL&extdisplay=001-9_outside&action=delroute' > /tmp/curl.log`;
open(PAGE,"/tmp/curl.log") or die "Bad thing happend";
my $OUT_ROUTE = "";
while(<PAGE>)
{
    chomp;
    if($_ =~ /[<]option value[=]\"([^\"]+)\"[>]SIP\/sipgate[<]\/option[>]/)  ### Will need to be changed!
    {
        $OUT_ROUTE=$1;
    }
}
close(PAGE);
$OUT_VARS{'display'}="routing";  ### May need to be changed!
$OUT_VARS{'extdisplay'}="";  ### May need to be changed!
$OUT_VARS{'action'}="addroute"; ### May need to be changed!
$OUT_VARS{'routename'}="sipgate"; ### Will need to be changed!
$OUT_VARS{'routepass'}=""; ### May need to be changed!
$OUT_VARS{'dialpattern'}=$LOCAL_PREFIX2; ### May need to be changed!
$OUT_VARS{'trunkpriority[0]'}=$OUT_ROUTE; ### May need to be changed!
exit unless($OUT_ROUTE ne "");
foreach my $var (keys %OUT_VARS)
{
    my $str = $OUT_VARS{$var};
    $str =~ s/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg;
    $OUT_DATA .=$var."=".$str."&";
}
`rm -f /tmp/curl.log ; curl -d '$OUT_DATA' '$OUT_URL' > /dev/null`;

### ADD INCOMING ROUTING
$IN_VARS{'display'}="did"; ### May need to be changed!
$IN_VARS{'extdisplay'}=""; ### May need to be changed!
$IN_VARS{'action'}="addIncoming"; ### May need to be changed!
$IN_VARS{'extension'}=$DECLARED_NUMBER; ### May need to be changed!
$IN_VARS{'goto0'}="custom"; ### May need to be changed!
$IN_VARS{'custom0'}="custom-linuxmce,10".$1.",1" if($OUT_ROUTE=~/(\d)$/);
foreach my $var (keys %IN_VARS)
{
    my $str = $IN_VARS{$var};
    $str =~ s/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg;
    $IN_DATA.=$var."=".$str."&";
}
`curl -d '$IN_DATA' '$IN_URL' > /dev/null`;

#run AMP's scripts to generate asterisk's config
`curl 'http://localhost/admin/config.php?handler=reload' > /dev/null`;
#create telecom defaults
`/usr/pluto/bin/create_telecom_defaults.pl`;
#reload asterisk
`asterisk -r -x reload`;

sub get_local_prefixes()
{
    my $CONF_HOST="localhost";
    my $CONF_USER="root";
    my $CONF_PASSWD="";
    my $DB_PL_HANDLE = DBI->connect("dbi:mysql:database=pluto_main;host=".$CONF_HOST.";user=".$CONF_USER.";password=".$CONF_PASSWD.";") or die "Could not connect to MySQL";
    my $DB_STATEMENT;
    my $DB_SQL;
    my $DB_ROW;

    $LOCAL_PREFIX1 = "112\n411\n911\n9|.\n";
    $LOCAL_PREFIX2 = $LOCAL_PREFIX1;
    $DB_SQL = "SELECT IK_DeviceData,FK_DeviceData FROM Device_DeviceData JOIN Device ON FK_Device=PK_Device WHERE FK_DeviceTemplate=34 AND (FK_DeviceData=141 OR FK_DeviceData=142 OR FK_DeviceData=143) ORDER BY FK_DeviceData;";
    $DB_STATEMENT = $DB_PL_HANDLE->prepare($DB_SQL) or die "Couldn't prepare query '$DB_SQL': $DBI::errstr\n";
    $DB_STATEMENT->execute() or die "Couldn't execute query '$DB_SQL': $DBI::errstr\n";

    return unless($DB_ROW = $DB_STATEMENT->fetchrow_hashref());
    return unless($DB_ROW->{'FK_DeviceData'} == 141);
    if($DB_ROW->{'IK_DeviceData'} > 0)
    {
        my $prefix = $DB_ROW->{'IK_DeviceData'};
        return unless($DB_ROW = $DB_STATEMENT->fetchrow_hashref());
        return unless($DB_ROW->{'FK_DeviceData'} == 142);
        my $digit = $DB_ROW->{'IK_DeviceData'};
        return unless($DB_ROW = $DB_STATEMENT->fetchrow_hashref());
        return unless($DB_ROW->{'FK_DeviceData'} == 143);
        my $length = $DB_ROW->{'IK_DeviceData'};
        my $short = "";
        my $long = "";
        for( my $i=0;$i<$length;$i++)
        {
            $short .= "X";
            $long .= "X";
        }
        for( my $i=0;$i<length($prefix);$i++)
        {
            $long .= "X";
        }
        $LOCAL_PREFIX1 =~ s/\n[^\n]+\n$/\n/s;
        $LOCAL_PREFIX2 =~ s/\n[^\n]+\n$/\n/s;
        $LOCAL_PREFIX1 .= ($digit<0?"":$digit.$prefix."+").$short."\n";
        $LOCAL_PREFIX1 .= ($digit<0?"":$digit."+").$long."\n";
        $LOCAL_PREFIX1 .= $DECLARED_PREFIX."|.\n";
        $LOCAL_PREFIX2 .= $short."\n";
        $LOCAL_PREFIX2 .= $long."\n";
        $LOCAL_PREFIX2 .= "9|112\n9|411\n9|911\n";
        $LOCAL_PREFIX2 .= "9|".($digit<0?"":$digit).$long."\n";
$LOCAL_PREFIX2 .= "9|0.\n9|*.\n";
    }
}
Title: Re: Help us build more Phone Line providers into 0710!
Post by: posterberg on January 10, 2008, 03:22:59 pm
I'd like to provide my Swedish provider. I have an * server running on a Gentoo box at the moment serving as my VoIP gw.

Is there a particular file that I just can grab from it and send to you (this thread)?
Title: Re: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 10, 2008, 03:50:52 pm
I'd like to provide my Swedish provider. I have an * server running on a Gentoo box at the moment serving as my VoIP gw.

Is there a particular file that I just can grab from it and send to you (this thread)?


No there is not at present. Currently to add a new provider you will have to follow the instructions in my post above... the provider setup has to be added to the Perl code provided.
Title: Re: Help us build more Phone Line providers into 0710!
Post by: posterberg on January 10, 2008, 05:05:04 pm
I'd like to provide my Swedish provider. I have an * server running on a Gentoo box at the moment serving as my VoIP gw.

Is there a particular file that I just can grab from it and send to you (this thread)?


No there is not at present. Currently to add a new provider you will have to follow the instructions in my post above... the provider setup has to be added to the Perl code provided.

Ok, I can see a few ten lines in the beginning that seems to be what I have to edit. IP, username, passwd etc. That's about what I remember that I had to put into * to get it up and running, without any extra features..

Your Perl file seem to be quite long, do I have to look through the whole thing or would it be enough to just put in the provider details in the beginning? That is what scared me off a bit ;o)
Title: Re: Help us build more Phone Line providers into 0710!
Post by: posde on January 10, 2008, 07:02:20 pm
Andrew,

like this http://mantis.linuxmce.com/view.php?id=3798 (http://mantis.linuxmce.com/view.php?id=3798)?

rgds
Oliver
Title: Re: Help us build more Phone Line providers into 0710!
Post by: chewi on January 10, 2008, 07:44:40 pm
Andrew, maybe we should set qualify to 10 or something like this...
It ensures that the phone line is tested every 10 seconds with a sip-options-packet and initiate a re-register, if the line broke down. and it keeps the udp-ports open...
For those of the users without a static ip address or a nat-router, that option is vital...

see: http://wiki.linuxmce.org/index.php?title=Asterisk
and: http://www.voip-info.org/wiki/view/Asterisk+sip+qualify

best regards,

chewi
Title: Re: Help us build more Phone Line providers into 0710!
Post by: Zaerc on January 10, 2008, 08:05:57 pm
Added one for my provider as well, http://mantis.linuxmce.org/view.php?id=3799.
Title: Re: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 10, 2008, 09:01:05 pm
Andrew,

like this http://mantis.linuxmce.com/view.php?id=3798 (http://mantis.linuxmce.com/view.php?id=3798)?

rgds
Oliver

Yes thanks Oliver!  ;)
Title: Re: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 10, 2008, 09:23:49 pm
Added one for my provider as well, http://mantis.linuxmce.org/view.php?id=3799.

Great thanks Zaerc :-)
Title: Re: Help us build more Phone Line providers into 0710!
Post by: jetrich on January 10, 2008, 10:33:57 pm
Andrew,

like this http://mantis.linuxmce.com/view.php?id=3798 (http://mantis.linuxmce.com/view.php?id=3798)?

rgds
Oliver

Line 112 of your script still has sipgate still instead of 1und1. I looked at Zaerc's and your scripts to make sure I caught everything. Just happened to noticed you missed that one. I've never submitted anything in Mantis and am new to this whole deal so I apologize if I stepped on any toes.

Jason
Title: Re: Help us build more Phone Line providers into 0710!
Post by: jetrich on January 10, 2008, 10:51:15 pm
Posted ViaTalk US-Central (Chicago server) http://mantis.linuxmce.org/view.php?id=3801 (http://mantis.linuxmce.org/view.php?id=3801)

I was going to do the other three servers (west, east, and beta), but couldn't find the addresses anywhere. Had to pull the Chicago server address from my Linksys adapter.  :)
Title: Re: Help us build more Phone Line providers into 0710!
Post by: colinjones on January 10, 2008, 11:11:55 pm
I'd like to provide my Swedish provider. I have an * server running on a Gentoo box at the moment serving as my VoIP gw.

Is there a particular file that I just can grab from it and send to you (this thread)?


No there is not at present. Currently to add a new provider you will have to follow the instructions in my post above... the provider setup has to be added to the Perl code provided.

Ok, I can see a few ten lines in the beginning that seems to be what I have to edit. IP, username, passwd etc. That's about what I remember that I had to put into * to get it up and running, without any extra features..

Your Perl file seem to be quite long, do I have to look through the whole thing or would it be enough to just put in the provider details in the beginning? That is what scared me off a bit ;o)

Totallymaxed - I would be interested in the answer to this as well. I have a website (http://www.marketclarity.com.au/voip/) that list 264 Australian VSP/VoIP providers. I will SPAM them all asking for their assistance in modifying this script to add them to the list, but I need to know exactly what instructions to give their technical people. Obviously, only a fraction of these providers will respond positively, but any direction I can give them will increase the uptake. So can you point to the areas that you think will need modifying by each provider?
Title: Re: Help us build more Phone Line providers into 0710!
Post by: posde on January 10, 2008, 11:28:38 pm
Hi Jason,

thanks will fix.
I've never submitted anything in Mantis and am new to this whole deal so I apologize if I stepped on any toes.

And that mantis was my first entry into the LinuxMCE mantis :)

rgds
Oliver
Title: Re: Help us build more Phone Line providers into 0710!
Post by: colinjones on January 11, 2008, 01:58:43 am
I have sent out an email to all the Australian residential VoIP providers that I could find a sales email address for - total of 102 providers. So far only about 5 or 6 have bounced back as invalid or otherwise, so it remains to be seen whether they seize the opportunity! Here is a copy of the email in case you are interested:

Dear Australian VoIP Service Provider
 
I write to you with an opportunity for your organisation - if this is not the correct email address, please could you forward this to your Sales and/or Business Development team.
 
I am representing the software development team for Linux Media Center Edition - Linux MCE - in Australia on this subject. This product provides TV, DVD, video, audio and other forms of media into a "whole of house" distributed entertainment system integrated with a full telephony/PABX, home automation, Internet access, home security and many other features. The media player functionality alone far outstrips anything that Microsoft Windows MCE can provide - and yet it still goes much further. This product is fully Free and Open Source Software (FOSS), under a GNU GPL licence - meaning that anybody can download and install it free of charge or restrictions, and even redistribute it at will.
 
You will have noticed that I mentioned Telephony - it uses an integrated Asterisk PABX server to provide voice, voice mail, intelligent routing, security breach call out/back-to-base, conferencing, etc with a connection to a VoIP Service Provider such as yourselves.
 
Currently, the system has a small number of (non-Australian) VSP's preconfigured for auto-setup. The developers are finalising the next major version release in the next couple of weeks - it is currently in Beta2 testing. They are very keen to extend the list of supported VSPs in all countries around the globe and have made an open invitation to have VSPs customise the configuration script specifically for their service - this would mean that during the Linux MCE setup, when asked for your VSP, your company name would be listed as an option so that the user could simply click and start using VoIP over your network.
 
As I say, this is an Open Source project, so there would be no charge associated with this, nor any commitment beyond what you already commit to your customers - however, I'm sure that you can see that this could be a significant opportunity for your company to increase sales by having that level of visibility and ease of configuration.
 
If you are interested in your company being included in the next release of Linux MCE, please reply to me ASAP and I will supply you with the configuration script. Once your technical people have customised this for your service, you can send it back to me, and I will have it included in the upcoming release. Please note - I do not have the resources available to configure the script for you. If you wish to be included - you need to make a commitment for your technical people to configure this script. You should also be prepared to provide a temporary test VoIP account so that we can test the configuration before it is frozen for release.
 
Rgds
Title: Re: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 12, 2008, 09:01:01 am
Andrew, maybe we should set qualify to 10 or something like this...
It ensures that the phone line is tested every 10 seconds with a sip-options-packet and initiate a re-register, if the line broke down. and it keeps the udp-ports open...
For those of the users without a static ip address or a nat-router, that option is vital...

see: http://wiki.linuxmce.org/index.php?title=Asterisk
and: http://www.voip-info.org/wiki/view/Asterisk+sip+qualify

best regards,

chewi

Valid point Chewi. Can you create a separate Mantis please that raises those issues and i will make sure one of the Pluto Devs looks into it next week. Thanks
Title: Re: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 12, 2008, 09:02:17 am
Andrew,

like this http://mantis.linuxmce.com/view.php?id=3798 (http://mantis.linuxmce.com/view.php?id=3798)?

rgds
Oliver

Line 112 of your script still has sipgate still instead of 1und1. I looked at Zaerc's and your scripts to make sure I caught everything. Just happened to noticed you missed that one. I've never submitted anything in Mantis and am new to this whole deal so I apologize if I stepped on any toes.

Jason

Peer review is what this is all about Jason! Thanks for spotting that :-)
Title: Re: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 12, 2008, 09:03:08 am
Posted ViaTalk US-Central (Chicago server) http://mantis.linuxmce.org/view.php?id=3801 (http://mantis.linuxmce.org/view.php?id=3801)

I was going to do the other three servers (west, east, and beta), but couldn't find the addresses anywhere. Had to pull the Chicago server address from my Linksys adapter.  :)

Hey Jason thanks... much appreciated ;-)
Title: Re: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 12, 2008, 09:05:27 am
I'd like to provide my Swedish provider. I have an * server running on a Gentoo box at the moment serving as my VoIP gw.

Is there a particular file that I just can grab from it and send to you (this thread)?


No there is not at present. Currently to add a new provider you will have to follow the instructions in my post above... the provider setup has to be added to the Perl code provided.

Ok, I can see a few ten lines in the beginning that seems to be what I have to edit. IP, username, passwd etc. That's about what I remember that I had to put into * to get it up and running, without any extra features..

Your Perl file seem to be quite long, do I have to look through the whole thing or would it be enough to just put in the provider details in the beginning? That is what scared me off a bit ;o)

Totallymaxed - I would be interested in the answer to this as well. I have a website (http://www.marketclarity.com.au/voip/) that list 264 Australian VSP/VoIP providers. I will SPAM them all asking for their assistance in modifying this script to add them to the list, but I need to know exactly what instructions to give their technical people. Obviously, only a fraction of these providers will respond positively, but any direction I can give them will increase the uptake. So can you point to the areas that you think will need modifying by each provider?

Will do Colin... expect a follow up in a few hours :-)
Title: Re: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 12, 2008, 09:08:25 am
I have sent out an email to all the Australian residential VoIP providers that I could find a sales email address for - total of 102 providers. So far only about 5 or 6 have bounced back as invalid or otherwise, so it remains to be seen whether they seize the opportunity! Here is a copy of the email in case you are interested:

Dear Australian VoIP Service Provider
 
I write to you with an opportunity for your organisation - if this is not the correct email address, please could you forward this to your Sales and/or Business Development team.
 
I am representing the software development team for Linux Media Center Edition - Linux MCE - in Australia on this subject. This product provides TV, DVD, video, audio and other forms of media into a "whole of house" distributed entertainment system integrated with a full telephony/PABX, home automation, Internet access, home security and many other features. The media player functionality alone far outstrips anything that Microsoft Windows MCE can provide - and yet it still goes much further. This product is fully Free and Open Source Software (FOSS), under a GNU GPL licence - meaning that anybody can download and install it free of charge or restrictions, and even redistribute it at will.
 
You will have noticed that I mentioned Telephony - it uses an integrated Asterisk PABX server to provide voice, voice mail, intelligent routing, security breach call out/back-to-base, conferencing, etc with a connection to a VoIP Service Provider such as yourselves.
 
Currently, the system has a small number of (non-Australian) VSP's preconfigured for auto-setup. The developers are finalising the next major version release in the next couple of weeks - it is currently in Beta2 testing. They are very keen to extend the list of supported VSPs in all countries around the globe and have made an open invitation to have VSPs customise the configuration script specifically for their service - this would mean that during the Linux MCE setup, when asked for your VSP, your company name would be listed as an option so that the user could simply click and start using VoIP over your network.
 
As I say, this is an Open Source project, so there would be no charge associated with this, nor any commitment beyond what you already commit to your customers - however, I'm sure that you can see that this could be a significant opportunity for your company to increase sales by having that level of visibility and ease of configuration.
 
If you are interested in your company being included in the next release of Linux MCE, please reply to me ASAP and I will supply you with the configuration script. Once your technical people have customised this for your service, you can send it back to me, and I will have it included in the upcoming release. Please note - I do not have the resources available to configure the script for you. If you wish to be included - you need to make a commitment for your technical people to configure this script. You should also be prepared to provide a temporary test VoIP account so that we can test the configuration before it is frozen for release.
 
Rgds


Great Colin. Thanks. Lets hope you pickup some responses!
Title: Re: Help us build more Phone Line providers into 0710!
Post by: colinjones on January 12, 2008, 03:40:03 pm
Have got about 6 or 7 positives so far and passed on the script. Couple of abusive emails (whatever!) But one service provider who franchises his VoIP to over 100 others is interested, looked at the demo and called me today to discuss, is interested in offering it to all his people, so that would be good - config is the same so should just be a matter of copying the script many times with a different "VSP" name on each!

BTW - if anyone else wants to use the same direct approach, don't make the same mistake I did - bcc: not to: them all! I wanted to encourage them to compete a bit by seeing competitors on the list. Most were OK with this, but a small number were very abusive indeed! Oh well, commercial vs "community" as one put it ...
Title: Re: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 12, 2008, 03:48:28 pm
Have got about 6 or 7 positives so far and passed on the script. Couple of abusive emails (whatever!) But one service provider who franchises his VoIP to over 100 others is interested, looked at the demo and called me today to discuss, is interested in offering it to all his people, so that would be good - config is the same so should just be a matter of copying the script many times with a different "VSP" name on each!

BTW - if anyone else wants to use the same direct approach, don't make the same mistake I did - bcc: not to: them all! I wanted to encourage them to compete a bit by seeing competitors on the list. Most were OK with this, but a small number were very abusive indeed! Oh well, commercial vs "community" as one put it ...

Great response Colin. Cheers :-)
Title: Re: Help us build more Phone Line providers into 0710!
Post by: chewi on January 12, 2008, 09:29:39 pm
Andrew, maybe we should set qualify to 10 or something like this...
It ensures that the phone line is tested every 10 seconds with a sip-options-packet and initiate a re-register, if the line broke down. and it keeps the udp-ports open...
For those of the users without a static ip address or a nat-router, that option is vital...

see: http://wiki.linuxmce.org/index.php?title=Asterisk
and: http://www.voip-info.org/wiki/view/Asterisk+sip+qualify

best regards,

chewi

Valid point Chewi. Can you create a separate Mantis please that raises those issues and i will make sure one of the Pluto Devs looks into it next week. Thanks

Done here: http://www.linuxmce.org/mantis/view.php?id=3811

Added Sipgate.de as well with qualify=10 and type=friend in [number]. Don't know if type=user works: http://www.linuxmce.org/mantis/view.php?id=3812

Best regards, Chewi
Title: Re: Help us build more Phone Line providers into 0710!
Post by: chewi on January 12, 2008, 09:35:46 pm
Sorry, I accidently added it to LinuxMCE-Project instead of LinuxMCE0710-Project...
Title: Re: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 13, 2008, 12:39:18 pm
Sorry, I accidently added it to LinuxMCE-Project instead of LinuxMCE0710-Project...

OK. np... will make sure it gets picked up ;-)
Title: Re: Help us build more Phone Line providers into 0710!
Post by: colinjones on January 13, 2008, 09:23:43 pm
I'd like to provide my Swedish provider. I have an * server running on a Gentoo box at the moment serving as my VoIP gw.

Is there a particular file that I just can grab from it and send to you (this thread)?


No there is not at present. Currently to add a new provider you will have to follow the instructions in my post above... the provider setup has to be added to the Perl code provided.

Ok, I can see a few ten lines in the beginning that seems to be what I have to edit. IP, username, passwd etc. That's about what I remember that I had to put into * to get it up and running, without any extra features..

Your Perl file seem to be quite long, do I have to look through the whole thing or would it be enough to just put in the provider details in the beginning? That is what scared me off a bit ;o)

Totallymaxed - I would be interested in the answer to this as well. I have a website (http://www.marketclarity.com.au/voip/) that list 264 Australian VSP/VoIP providers. I will SPAM them all asking for their assistance in modifying this script to add them to the list, but I need to know exactly what instructions to give their technical people. Obviously, only a fraction of these providers will respond positively, but any direction I can give them will increase the uptake. So can you point to the areas that you think will need modifying by each provider?

Will do Colin... expect a follow up in a few hours :-)

Totallymaxed - did you get a chance to look into this?
Title: Re: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 13, 2008, 09:29:42 pm
I'd like to provide my Swedish provider. I have an * server running on a Gentoo box at the moment serving as my VoIP gw.

Is there a particular file that I just can grab from it and send to you (this thread)?


No there is not at present. Currently to add a new provider you will have to follow the instructions in my post above... the provider setup has to be added to the Perl code provided.

Ok, I can see a few ten lines in the beginning that seems to be what I have to edit. IP, username, passwd etc. That's about what I remember that I had to put into * to get it up and running, without any extra features..

Your Perl file seem to be quite long, do I have to look through the whole thing or would it be enough to just put in the provider details in the beginning? That is what scared me off a bit ;o)

Totallymaxed - I would be interested in the answer to this as well. I have a website (http://www.marketclarity.com.au/voip/) that list 264 Australian VSP/VoIP providers. I will SPAM them all asking for their assistance in modifying this script to add them to the list, but I need to know exactly what instructions to give their technical people. Obviously, only a fraction of these providers will respond positively, but any direction I can give them will increase the uptake. So can you point to the areas that you think will need modifying by each provider?

Will do Colin... expect a follow up in a few hours :-)

Totallymaxed - did you get a chance to look into this?

Yes I did Colin... I updated my original post with Perl source with additional comments indicating the lines that may need updating/changing. Sorry you may have missed that.

Andrew
Title: Re: Help us build more Phone Line providers into 0710!
Post by: colinjones on January 13, 2008, 09:49:00 pm
Cool - thx, will take a look now.
Title: Re: Help us build more Phone Line providers into 0710!
Post by: colinjones on January 13, 2008, 09:55:04 pm
hmmm... damn! Didn't realise it would have so much LMCE specific stuff that needed to be changed. The VSPs are not going to know how to modify many of those lines, and I don't know anywhere near enough about it all to help them...

RichardP - are you around? If I start getting questions from them, do you think you would know how to modify these scripts, and perhaps I could direct them to you?
Title: Re: Help us build more Phone Line providers into 0710!
Post by: RichardP on January 14, 2008, 03:40:07 am
hmmm... damn! Didn't realise it would have so much LMCE specific stuff that needed to be changed. The VSPs are not going to know how to modify many of those lines, and I don't know anywhere near enough about it all to help them...

RichardP - are you around? If I start getting questions from them, do you think you would know how to modify these scripts, and perhaps I could direct them to you?

I hadn't seen this thread until I got PM'ed. I'm not up to speed yet, but it's very relavant to me.

Short answer is Yes. Even if I have difficulty at first, I'll be able to figure it out.

I'll be starting looking at Voip provider Gotalk first, as I'm currently with them, and by the time questions start coming through, hopefully I'll have something mildly intelligent to add. I'll keep you posted.

Best Regards,
Richard.
Title: Re: Help us build more Phone Line providers into 0710!
Post by: jetrich on January 15, 2008, 11:05:46 pm
Out of curiosity...

Has there been a suggestion as to the segregation of the numerous providers in LMCE? Are these going to be separated by locale, or simply a _very_ _long_ list to choose from?

Jason
Title: Re: Help us build more Phone Line providers into 0710!
Post by: colinjones on January 16, 2008, 12:13:57 am
Andrew - seen elsewhere (Mantis, I think) that there may have been a change in direction to abstract the perl code from the configuration, so that we only need provide the basic SIP details in a config file (or typed in directly during set up), rather than doing the whole customisation of the script for each provider. Am I reading that correctly?
Title: Re: Help us build more Phone Line providers into 0710!
Post by: RichardP on January 16, 2008, 03:28:16 am
We are looking for people to contribute new Phone Line Provider scripts for providers in their country/region that are not already available in the 'Provider' pop-up in Wizard -> Devices -> Phone Lines


I've done a couple of files but could find no way to test them. I expected to be able to simply dump the new files into a directory somewhere and have them appear in the drop-down list. Can someone point me towards the code that produces the drop-down list so I can make this happen.

Does anyone have any suggestions for how to handle this?

The possibilities I can see as workable are:

 I dislike really long lists for performance/memory reasons, so I might add some functionality to split the list somehow into groups of some arbitary number if there are many items.
Title: Re: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 16, 2008, 12:46:45 pm
Andrew - seen elsewhere (Mantis, I think) that there may have been a change in direction to abstract the perl code from the configuration, so that we only need provide the basic SIP details in a config file (or typed in directly during set up), rather than doing the whole customisation of the script for each provider. Am I reading that correctly?

Yes your basically correct... some re engineering of the code is underway. However please continue to add your perl provider files to Mantis as that part may in fact not change initially and we would like to get as many added as possible
Title: Re: Help us build more Phone Line providers into 0710!
Post by: RichardP on January 17, 2008, 02:30:16 am
Andrew - seen elsewhere (Mantis, I think) that there may have been a change in direction to abstract the perl code from the configuration, so that we only need provide the basic SIP details in a config file (or typed in directly during set up), rather than doing the whole customisation of the script for each provider. Am I reading that correctly?

Yes your basically correct... some re engineering of the code is underway. However please continue to add your perl provider files to Mantis as that part may in fact not change initially and we would like to get as many added as possible

I guess that makes my previous post obsolete then  ;D

Do you have a deadline for this? I've not added my scripts to the mantis yet, as I wanted to test it before uploading. I've found the PHP script to change to add them to the options in the Admin site, so I'll use that. However, now that beta3 is out, I thought I'd delay the testing until I've installed that. However, if your cut-off is going to fairly soon, I'll just upload the untested scripts.

Best Regards,
Richard.
Title: Re: Help us build more Phone Line providers into 0710!
Post by: colinjones on January 17, 2008, 02:34:33 am
Richard - any would be good for AU! I ended up getting about 15 bites from VSPs, passed them on the script, but so far nothing back.... I think they are all struggling :) not surprising really. One got back to me and asked who they could use as a technical contact, which is why I asked that question, Richard... but I haven't told him you yet.

Seeming all a little too hard at this stage....

Col
Title: Re: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 17, 2008, 09:10:58 pm
Andrew - seen elsewhere (Mantis, I think) that there may have been a change in direction to abstract the perl code from the configuration, so that we only need provide the basic SIP details in a config file (or typed in directly during set up), rather than doing the whole customisation of the script for each provider. Am I reading that correctly?

Yes your basically correct... some re engineering of the code is underway. However please continue to add your perl provider files to Mantis as that part may in fact not change initially and we would like to get as many added as possible

I guess that makes my previous post obsolete then  ;D

Do you have a deadline for this? I've not added my scripts to the mantis yet, as I wanted to test it before uploading. I've found the PHP script to change to add them to the options in the Admin site, so I'll use that. However, now that beta3 is out, I thought I'd delay the testing until I've installed that. However, if your cut-off is going to fairly soon, I'll just upload the untested scripts.

Best Regards,
Richard.


I'd like to see as many scripts in the release as possible... but we'll keep adding them or provide a very accessible way for you guys to add them in the near future. So don't panic about hitting some deadline... but submit any you have when your ready ;-)
Title: Re: Help us build more Phone Line providers into 0710!
Post by: RichardP on January 18, 2008, 03:57:45 am
Richard - any would be good for AU! I ended up getting about 15 bites from VSPs, passed them on the script, but so far nothing back.... I think they are all struggling :) not surprising really. One got back to me and asked who they could use as a technical contact, which is why I asked that question, Richard... but I haven't told him you yet.

Seeming all a little too hard at this stage....

Col

Go ahead and give them my details - I don't mind. You sound a little discouraged. Don't be - you can only do what you can do. At the moment, it's probably not a high priority for them because LMCE is not mainstream. Later on, that will change, as more people come on board - and the reason it will change is because Cousin Harry sees LMCE running in your lounge and thinks it is great. The small wins become a waterfall as time goes by, as more and more people become users and show their friends in turn.
So just hang it there, bro - it will all happen, one step at a time.

Best Regards,
Richard.
Title: Re: Help us build more Phone Line providers into 0710!
Post by: coley on January 18, 2008, 11:47:11 am
I've one for Blueface in Ireland - I'll upload it once I've had a chance to test.
-Coley.
Title: Re: Help us build more Phone Line providers into 0710!
Post by: Zaerc on January 18, 2008, 11:47:10 pm
I was just messing about and figured I'd try using the "sipgate" provider with the acount details of my own (non-sipgate) provider and "it just worked", so it might be a simple solution for most to just change "sipgate" to something like "generic sip". Just a thought.

EDIT:

I did this using the web-admin, not the setup wizard btw, not sure if that matters.
Title: Re: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 19, 2008, 06:33:39 pm
I've one for Blueface in Ireland - I'll upload it once I've had a chance to test.
-Coley.

Great. Thanks :-)
Title: Re: Help us build more Phone Line providers into 0710!
Post by: totallymaxed on January 19, 2008, 06:35:08 pm
I was just messing about and figured I'd try using the "sipgate" provider with the acount details of my own (non-sipgate) provider and "it just worked", so it might be a simple solution for most to just change "sipgate" to something like "generic sip". Just a thought.

EDIT:

I did this using the web-admin, not the setup wizard btw, not sure if that matters.

Yes with some providers that may work... but some require different config data and then you hit problems suing this approach.
Title: Re: Help us build more Phone Line providers into 0710!
Post by: Zaerc on January 19, 2008, 07:46:04 pm
I was just messing about and figured I'd try using the "sipgate" provider with the acount details of my own (non-sipgate) provider and "it just worked", so it might be a simple solution for most to just change "sipgate" to something like "generic sip". Just a thought.

EDIT:

I did this using the web-admin, not the setup wizard btw, not sure if that matters.

Yes with some providers that may work... but some require different config data and then you hit problems suing this approach.

Hence I said "most", the ones requiring different settings can always remain seperate, or maybe the generic-sip provider could be slightly expanded with some advanced settings.  I wasn't really suggesting a "one size fits all" solution, but I reckon most would require just about the same default settings.
Title: Re: Help us build more Phone Line providers into 0710!
Post by: Darren404 on January 22, 2008, 06:16:16 am
Shaw in Canada, one of the main cable and internet service providers is offering VOIP now. I have a feeling it might be built into the modems.  I was thinking of trying them out. If there is anything i can do to add them to the list let me know.
Title: Re: Help us build more Phone Line providers into 0710!
Post by: colinjones on January 23, 2008, 12:41:39 am
Richard - any would be good for AU! I ended up getting about 15 bites from VSPs, passed them on the script, but so far nothing back.... I think they are all struggling :) not surprising really. One got back to me and asked who they could use as a technical contact, which is why I asked that question, Richard... but I haven't told him you yet.

Seeming all a little too hard at this stage....

Col

Go ahead and give them my details - I don't mind. You sound a little discouraged. Don't be - you can only do what you can do. At the moment, it's probably not a high priority for them because LMCE is not mainstream. Later on, that will change, as more people come on board - and the reason it will change is because Cousin Harry sees LMCE running in your lounge and thinks it is great. The small wins become a waterfall as time goes by, as more and more people become users and show their friends in turn.
So just hang it there, bro - it will all happen, one step at a time.

Best Regards,
Richard.


Richard - I just forwarded to you the feedback I got from one VSP...