Updated on 2011-04-05 by Oussama Hammami
Updated on 2011-03-28 by Yannick Vaucher
Updated on 2011-01-28 by Oussama Hammami
Updated on 2011-01-27 by Oussama Hammami
Created on 2011-01-26 by Yannick Vaucher
At the time this document is created, Switzernet is running a dozen of SIP server using a replication of porta-sip using asterisk and an old version of OpenSer. The advantage of OpenSer was that it includes RADIUS as it is designed to works with Porta-One and its porta-billing. However, porta-sip server suffers from a lack of configuration. For example, in order to ban some IP addresses, it is needed to reboot the server after having modified the config file of openser.
Those OpenSer servers might also be responsible of some quality issues we are experiencing.
In order to replace those OpenSer servers by Astrad servers, we set up a system of configuration management. The tool used is Puppet. [doc] This tool provides us a way to do an automated installation of our configuration.
On puppet, we are using modules as versions of our servers.
Here is the version evolution record of our astrad configuration. :
Astrad is the name for ASTerisk and RADius
An Astrad server is an Asterisk server on which we included the RADIUS protocol to communicate with our porta-billing.
This first version includes an automated installation of the first version [doc] of the manual installation.
Plus the two following updates:
- Update of management of vocal messages [doc]
- Update of calls billing with Asterisk and Porta-Billing [doc]
Version |
Astrad v 001 |
File |
|
Size |
3.81 MB |
Md5 |
ad6b84cd7a1290f13b8cfe6922dbaf9b |
References
http://switzernet.com/public/100520-install-asterisk/
http://switzernet.com/2/public/100719-asterisk-update/
http://switzernet.com/2/public/100726-patch-mysql-radius/
In this release we have updated all perl scripts for use a single config file ‘switzer.conf’ and assuring the connection with asterisk manager.
All conf files and scripts are located in the ‘/etc/astrad-V2’ and ‘/etc/asterisk’.
We’ve added a possibility to restart all services: ‘/etc/init.d/astrad restart’.
Version |
Astrad v 002 |
File |
|
Size |
2.3 MB |
Md5 |
773c2a13291e08fd9244793e00befe96 |
In this release we have removed the encryption of ‘db-peer.conf’ that contains md5 of sip passwords.
The shell script of sip registration per DNS is updated.
Version |
Astrad v 003 |
File |
|
Size |
2.3 MB |
Md5 |
efac8468782f47b679a5307d0d11cf76 |
This release provides an alternative way of authentication for call initiation. This alternative is used when the Master server is unavailable.
The replication server db2 is used.
Here are the details on the script used:
http://www.switzernet.com/3/public/110328-astrad-alternative-radius-auth
Other changes and corrections:
- ast-resend-lost.pl
o Error in date formats
The function format_date_gmt is rewritten and is renamed to format_date_sql_2_gmt.
The issue was:
This function formatting dates in ast-resend-lost.pl was using dates extracted from MySQL as if it was at GMT time zone.
But dates in MySQL are at local time zone. It was creating wrong packets with bad hours in all time parameters.
o Incomplete H323-conf-id parameter
Radius packets had an error in one of its parameters.
The name missing 'h323-conf-id=' has been added in front of H323 conf id value.
The porta-billing was unable to match messages sent by this script with standard ones.
o Transmission Delay
Acct-Delay-Time has been added in Radius requests from this script.
- agi-rad-auth.pl + extensions.conf
o Missing remote IP address parameter
Radius requests were generated without including source ip address.
It has been added.
Version |
Astrad v 004 |
File |
|
Size |
2.3 MB |
Md5 |
44a0683325e6806e669ddf6d13583f0b |
In this release we have added the Realtime module, the local database of asterisk is used to allow outgoing calls (sipusers table) or incoming calls (sippeers table).
These tables are replicated from the master server MySQL-Astrad DB3 [http://switzernet.com/3/public/110405-db3]
The updating of registrations on the master-billing is carried through federated tables ‘location2’ in Astrad and ‘location’ in db3.
With this update you need only two Perl script (daemon) for accounting (start-stop) and for resend lost packets.
Version |
Astrad v 005 |
File |
|
Size |
2.3 MB |
Md5 |
2716e784f8e05e8de0bc3d3d23671012 |
* * *