<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HOWTO :: VoIP: Whosesale :: Calling Card :: OpenSer :: Radius :: Asterisk :: FreeSwitch :: A2Billing :: IVR :: Colo :: Colocations :: GADGETS &#187; Asterisk PBX</title>
	<atom:link href="http://callsolutions.org/category/voip-tutorial/asterisk-pbx/feed/" rel="self" type="application/rss+xml" />
	<link>http://callsolutions.org</link>
	<description>You can also find CCNA :: CCNAP :: Exam, Brandump, CheatSheet, Sample Exams</description>
	<lastBuildDate>Thu, 29 Apr 2010 14:23:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CentOS 5.4 or 5.5 + Asterisk 1.4 + G729 + G723</title>
		<link>http://callsolutions.org/centos-5-4-or-5-5-asterisk-1-4-g729-g723/</link>
		<comments>http://callsolutions.org/centos-5-4-or-5-5-asterisk-1-4-g729-g723/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 05:12:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Asterisk PBX]]></category>
		<category><![CDATA[asterisk install]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[centos 5.4]]></category>

		<guid isPermaLink="false">http://callsolutions.org/?p=66</guid>
		<description><![CDATA[This tutorial will teach you how to install Asterisk 1.4 on a fresh install of CentOS 5.4 / 5.5 with g729 and g723 supported codec.
yum update
yum upgrade
yum groupinstall &#8216;Development Tools&#8217;
yum groupinstall &#8216;Development Libraries&#8217;
yum install -y kernel kernel-devel
cd /usr/src
wget http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz
wget http://downloads.digium.com/pub/zaptel/zaptel-1.4-current.tar.gz
wget http://downloads.digium.com/pub/libpri/libpri-1.4-current.tar.gz
wget http://downloads.digium.com/pub/asterisk/asterisk-addons-1.4-current.tar.gz
tar xvzf asterisk-1.4-current.tar.gz &#38;&#38; tar xvzf zaptel-1.4-current.tar.gz &#38;&#38; tar xvzf libpri-1.4-current.tar.gz &#38;&#38; tar xvzf [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial will teach you how to install Asterisk 1.4 on a fresh install of CentOS 5.4 / 5.5 with g729 and g723 supported codec.</p>
<p>yum update</p>
<p>yum upgrade</p>
<p>yum groupinstall &#8216;Development Tools&#8217;</p>
<p>yum groupinstall &#8216;Development Libraries&#8217;</p>
<p>yum install -y kernel kernel-devel</p>
<p>cd /usr/src</p>
<p>wget http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz<br />
wget http://downloads.digium.com/pub/zaptel/zaptel-1.4-current.tar.gz<br />
wget http://downloads.digium.com/pub/libpri/libpri-1.4-current.tar.gz<br />
wget http://downloads.digium.com/pub/asterisk/asterisk-addons-1.4-current.tar.gz</p>
<p>tar xvzf asterisk-1.4-current.tar.gz &amp;&amp; tar xvzf zaptel-1.4-current.tar.gz &amp;&amp; tar xvzf libpri-1.4-current.tar.gz &amp;&amp; tar xvzf asterisk-addons-1.4-current.tar.gz</p>
<p>a) Installing Zaptel</p>
<p>cd /usr/src/zaptel-1.4*<br />
./install_prereq test<br />
./install_prereq install<br />
./configure<br />
make<br />
make install<br />
make config<br />
modprobe ztdummy</p>
<p>b) Installing Libpri</p>
<p>cd /usr/src/libpri-1.4*<br />
make &amp;&amp; make install</p>
<p>c) Installing Asterisk</p>
<p>c) Installing Asterisk</p>
<p>cd /usr/src/asterisk-1.4*</p>
<p>./configure</p>
<p>Comment: The next step is not mandatory. To install core and extra sounds in different languages:</p>
<p>make menuselect</p>
<p>Comment: Select the core-sounds you would like to play and extra sounds. Exit with �x� to save.</p>
<p>make<br />
make install<br />
make samples<br />
make config<br />
asterisk -vvvc<br />
stop now<br />
echo �ztdummy� &gt;&gt; /etc/modules</p>
<p>d) Installing Asterisk Addons</p>
<p>cd /usr/src/asterisk-addons*<br />
./configure &amp;&amp; make &amp;&amp; make install<br />
make samples</p>
]]></content:encoded>
			<wfw:commentRss>http://callsolutions.org/centos-5-4-or-5-5-asterisk-1-4-g729-g723/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Asterisk2Billing A2B 1.6 in Debian Lenny 5.0.4</title>
		<link>http://callsolutions.org/installing-asterisk2billing-1-6-in-debian-lenny-5-0-4/</link>
		<comments>http://callsolutions.org/installing-asterisk2billing-1-6-in-debian-lenny-5-0-4/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 11:19:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[A2Billing]]></category>
		<category><![CDATA[Asterisk PBX]]></category>
		<category><![CDATA[a2b]]></category>
		<category><![CDATA[asterisk2billing]]></category>
		<category><![CDATA[debin]]></category>
		<category><![CDATA[lenny]]></category>

		<guid isPermaLink="false">http://callsolutions.org/?p=56</guid>
		<description><![CDATA[I assumed that Debian Lenny is already installed on the system. This is a step-by-step procedure how to install Asterisk2Billing or A2B in Debian Lenny. This HowTo is just a  copy/paste procedure. Let me know if you run into trouble installing this.
apt-get update
apt-get upgrade
aptitude install ssh ntp screen
aptitude install build-essential libcurl3-dev libvorbis-dev libspeex-dev unixodbc [...]]]></description>
			<content:encoded><![CDATA[<p>I assumed that Debian Lenny is already installed on the system. This is a step-by-step procedure how to install Asterisk2Billing or A2B in Debian Lenny. This HowTo is just a  copy/paste procedure. Let me know if you run into trouble installing this.</p>
<p>apt-get update<br />
apt-get upgrade<br />
aptitude install ssh ntp screen<br />
aptitude install build-essential libcurl3-dev libvorbis-dev libspeex-dev unixodbc unixodbc-dev libiksemel-dev flex xsltproc linux-headers-`uname -r` g++ libncurses5-dev libnewt-dev libusb-dev subversion git-core flex bison<br />
cd /usr/src/<br />
wget http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz<br />
wget http://downloads.digium.com/pub/zaptel/zaptel-1.4-current.tar.gz<br />
wget http://downloads.digium.com/pub/libpri/libpri-1.4-current.tar.gz<br />
wget http://downloads.digium.com/pub/asterisk/asterisk-addons-1.4-current.tar.gz<br />
tar xvfz asterisk-1.4-current.tar.gz<br />
tar xvzf asterisk-1.4-current.tar.gz &#038;&#038; tar xvzf zaptel-1.4-current.tar.gz &#038;&#038; tar xvzf libpri-1.4-current.tar.gz &#038;&#038; tar xvzf asterisk-addons-1.4-current.tar.gz tar<br />
tar xvfz zaptel-1.4.12.1/<br />
cd zaptel-1.4.12.1/<br />
./install_prereq test<br />
./install_prereq install<br />
./configure<br />
make<br />
make install<br />
make config<br />
modprobe ztdummy<br />
cd ../libpri-1.4.10.2/<br />
make &#038;&#038; make install<br />
cd ../asterisk-1.4.30/<br />
./configure<br />
make<br />
make install<br />
make samples<br />
make config<br />
asterisk -vvvvvvvvvvvvgc<br />
echo &#8220;ztdummy&#8221;<br />
echo &#8220;ztdummy&#8221; >> /etc/modules<br />
cd ../asterisk-addons-1.4-current.tar.gz<br />
cd ..<br />
tar xvfz asterisk-addons-1.4-current.tar.gz<br />
cd asterisk-addons-1.4.10/<br />
./configure &#038;&#038; make &#038;&#038; make install<br />
make samples<br />
apt-get install apache2 php5 mysql-server<br />
cd /var/www/<br />
wget http://www.asterisk2billing.org/downloads/A2Billing_1.6.0.tar.gz<br />
tar xvfz A2Billing_1.6.0.tar.gz<br />
mv A2Billing_1.6.0.tar.gz /tmp/<br />
apt-get install libapache2-mod-php5 php5 php5-common<br />
apt-get install php5-cli php5-mysql mysql-server apache2 php5-gd<br />
apt-get install openssh-server subversion<br />
apt-get install php5-mcrypt<br />
mysql -u root -p < DataBase/mysql-5.x/a2billing-createdb-user.sql<br />
mysql -u a2billinguser -p mya2billing<br />
mysql -u root -p mya2billing < DataBase/mysql-5.x/a2billing-schema-v1.4.0.sql<br />
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.4.0-to-v1.4.1.sql<br />
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.4.1-to-v1.4.2.sql<br />
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.4.2-to-v1.4.3.sql<br />
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.4.3-to-v1.4.4.sql<br />
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.4.4-to-v1.4.4.1.sql<br />
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.4.4.1-to-v1.4.5.sql<br />
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.4.5-to-v1.5.0.sql<br />
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.5.0-to-v1.5.1.sql<br />
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.5.1-to-v1.6.0.sql<br />
mysql -u a2billinguser -p mya2billing<br />
cp a2billing.conf /etc/</p>
<p>touch /etc/asterisk/additional_a2billing_iax.conf<br />
touch /etc/asterisk/additional_a2billing_sip.conf<br />
echo \#include additional_a2billing_sip.conf >> /etc/asterisk/sip.conf<br />
echo \#include additional_a2billing_iax.conf >> /etc/asterisk/iax.conf<br />
chown -Rf www-data /etc/asterisk/additional_a2billing_iax.conf<br />
chown -Rf www-data /etc/asterisk/additional_a2billing_sip.conf<br />
cd addons/sounds/<br />
./install_a2b_sounds.sh<br />
chown -R asterisk:asterisk  /var/lib/asterisk/sounds/<br />
vi /etc/asterisk/manager.conf</p>
<p>   Notice that we are using the default values (myasterisk, mycode) in this section. The configuration should look like this<br />
[general]<br />
enabled = yes<br />
port = 5038<br />
bindaddr = 0.0.0.0</p>
<p>[myasterisk]<br />
secret=mycode<br />
read=system,call,log,verbose,command,agent,user<br />
write=system,call,log,verbose,command,agent,user</p>
<p>cd AGI/<br />
cp a2billing.php /var/lib/asterisk/agi-bin/<br />
cp -rf ../common/lib /var/lib/asterisk/agi-bin/<br />
chmod +x /var/lib/asterisk/agi-bin/a2billing.php<br />
mkdir /var/www/a2billing<br />
chown www-data:www-data /var/www/a2billing<br />
mkdir -p /var/lib/a2billing/script<br />
mkdir -p /var/run/a2billing<br />
mv admin a2billing/<br />
mv agent a2billing/<br />
mv customer a2billing/<br />
mv common a2billing/<br />
chmod 755 a2billing/admin/templates_c<br />
chmod 755 a2billing/customer/templates_c<br />
chmod 755 a2billing/agent/templates_c<br />
chown -Rf www-data:www-data /var/www/a2billing/admin/templates_c<br />
chown -Rf www-data:www-data /var/www/a2billing/customer/templates_c/<br />
chown -Rf www-data:www-data /var/www/a2billing/customer/templates_c<br />
chown -Rf www-data:www-data /var/www/a2billing/agent/templates_c<br />
/etc/init.d/apache2 status<br />
/etc/init.d/apache2 restart<br />
apt-get install python-setuptools python-mysqldb python-psycopg2 python-sqlalchemy<br />
easy_install callback-daemon-py/dist/callback_daemon-1.0.prod_r1527-py2.5.egg</p>
<p>Direct a browser to the administrative web interface (http://<ip-addr>/a2billing/admin) and login as administrator. Default passwords are:<br />
user: root<br />
pass: changepassword</p>
<p>vi /etc/asterisk/extensions.conf</p>
<p>[default]</p>
<p>include => a2billing</p>
<p>[a2billing]<br />
; CallingCard application<br />
exten => _X.,1,Answer<br />
exten => _X.,2,Wait,2<br />
exten => _X.,3,DeadAGI,a2billing.php<br />
exten => _X.,4,Wait,2<br />
exten => _X.,5,Hangup</p>
<p>[did]<br />
; CallingCard application<br />
exten => _X.,1,DeadAGI(a2billing.php|1|did)</p>
<p>crontab -e</p>
<p># update the currency table<br />
0 6 * * * php /usr/local/src/a2billing/Cronjobs/currencies_update_yahoo.php</p>
<p># manage the monthly services subscription<br />
0 6 1 * * php /usr/local/src/a2billing/Cronjobs/a2billing_subscription_fee.php</p>
<p># To check account of each Users and send an email if the balance is less than the user have choice.<br />
0 * * * * php /usr/local/src/a2billing/Cronjobs/a2billing_notify_account.php</p>
<p># this script will browse all the DID that are reserve and check if the customer need to pay for it<br />
# bill them or warn them per email to know if they want to pay in order to keep their DIDs<br />
0 2 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_bill_diduse.php</p>
<p># This script will take care of the recurring service.<br />
0 12 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_batch_process.php</p>
<p>#Generate Invoices at 6am everyday<br />
0 6 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_batch_billing.php</p>
<p># to proceed the autodialer<br />
*/5 * * * * php /usr/local/src/a2billing/Cronjobs/a2billing_batch_autodialer.php</p>
<p># manage alarms<br />
0 * * * * php /usr/local/src/a2billing/Cronjobs/a2billing_alarm.php</p>
<p>This is the initial installation for Asterisk2Billing 1.6 in Debian Lenny 5.0.4</p>
]]></content:encoded>
			<wfw:commentRss>http://callsolutions.org/installing-asterisk2billing-1-6-in-debian-lenny-5-0-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Asterisk CDR + MYSQL</title>
		<link>http://callsolutions.org/howto-asterisk-cdr-mysql/</link>
		<comments>http://callsolutions.org/howto-asterisk-cdr-mysql/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 03:31:15 +0000</pubDate>
		<dc:creator>nelson</dc:creator>
				<category><![CDATA[Asterisk CDR + MYSQL]]></category>
		<category><![CDATA[Asterisk CDR]]></category>
		<category><![CDATA[CDR + MYSQL]]></category>

		<guid isPermaLink="false">http://callsolutions.org/?p=6</guid>
		<description><![CDATA[This tutorial will teach you how to configure Asterisk to store its CDR in MYSQL Database. Im using Debian Etch as my Operating System.
Installing Mysql Server 5 and Client

apt-get install mysql-server mysql-common php5-mysql mysql-client-5.0  mysql-client libmysqlclient15-dev

Creating a Database, Tables and Permissions

asterisk88:~# mysql -u root -p &#60;enter&#62;
 Enter password:  &#60;enter&#62;
 Welcome to the MySQL [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial will teach you how to configure Asterisk to store its CDR in MYSQL Database. Im using Debian Etch as my Operating System.</p>
<p><strong>Installing Mysql Server 5 and Client</strong></p>
<blockquote><p>
apt-get install mysql-server mysql-common php5-mysql mysql-client-5.0  mysql-client libmysqlclient15-dev
</p></blockquote>
<p><strong>Creating a Database, Tables and Permissions</strong></p>
<blockquote><p>
asterisk88:~# mysql -u root -p <strong>&lt;enter&gt;</strong><br />
 Enter password:  <strong>&lt;enter&gt;</strong><br />
 Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
 Your MySQL connection id is 26<br />
 Server version: 5.0.32-Debian_7etch5 Debian etch distribution</p>
<p>Type &#8216;help;&#8217; or &#8216;\h&#8217; for help. Type &#8216;\c&#8217; to clear the buffer.</p>
<p>mysql&gt; create database asterisk;<br />
 mysql&gt; use asterisk;<br />
 mysql&gt;   CREATE TABLE cdr (<br />
 calldate datetime NOT NULL default &#8216;0000-00-00 00:00:00&#8242;,<br />
 clid varchar(80) NOT NULL default &#8221;,<br />
 src varchar(80) NOT NULL default &#8221;,<br />
 dst varchar(80) NOT NULL default &#8221;,<br />
 dcontext varchar(80) NOT NULL default &#8221;,<br />
 channel varchar(80) NOT NULL default &#8221;,<br />
 dstchannel varchar(80) NOT NULL default &#8221;,<br />
 lastapp varchar(80) NOT NULL default &#8221;,<br />
 lastdata varchar(80) NOT NULL default &#8221;,<br />
 duration int(11) NOT NULL default &#8216;0&#8242;,<br />
 billsec int(11) NOT NULL default &#8216;0&#8242;,<br />
 disposition varchar(45) NOT NULL default &#8221;,<br />
 amaflags int(11) NOT NULL default &#8216;0&#8242;,<br />
 accountcode varchar(20) NOT NULL default &#8221;,<br />
 userfield varchar(255) NOT NULL default &#8221;,<br />
 uniqueid varchar(32) NOT NULL default &#8221;<br />
 );</p>
<p>ALTER TABLE cdr ADD INDEX ( calldate );<br />
 ALTER TABLE cdr ADD INDEX ( dst );<br />
 ALTER TABLE cdr ADD INDEX ( uniqueid );</p>
<p>You can add more indices if you want.</p>
<p>mysql&gt;  \q</p>
<p><span id="more-6"></span></p>
<p>asterisk88:~# mysql_setpermission <strong>&lt;enter&gt;</strong><br />
 Password for user  to connect to MySQL: <strong>&lt;enter&gt;</strong><br />
 ######################################################################<br />
 ## Welcome to the permission setter 1.3 for MySQL.<br />
 ## made by Luuk de Boer<br />
 ######################################################################<br />
 What would you like to do:<br />
 1. Set password for an existing user.<br />
 2. Create a database + user privilege for that database<br />
 and host combination (user can only do SELECT)<br />
 3. Create/append user privilege for an existing database<br />
 and host combination (user can only do SELECT)<br />
 4. Create/append broader user privileges for an existing<br />
 database and host combination<br />
 (user can do SELECT,INSERT,UPDATE,DELETE)<br />
 5. Create/append quite extended user privileges for an<br />
 existing database and host combination (user can do<br />
 SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,<br />
 LOCK TABLES,CREATE TEMPORARY TABLES)<br />
 6. Create/append database administrative privileges for an<br />
 existing database and host combination (user can do<br />
 SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,LOCK TABLES,<br />
 CREATE TEMPORARY TABLES,SHOW DATABASES,PROCESS)<br />
 7. Create/append full privileges for an existing database<br />
 and host combination (user has FULL privilege)<br />
 8. Remove all privileges for for an existing database and<br />
 host combination.<br />
 (user will have all permission fields set to N)<br />
 0. exit this program</p>
<p>Make your choice [1,2,3,4,5,6,7,0]: <strong>5</strong> <strong>&lt;enter&gt;</strong></p>
<p>Which database from existing databases would you like to select:<br />
 You can choose from:<br />
 &#8211; information_schema<br />
 &#8211; asterisk<br />
 &#8211; mysql<br />
 Which database will it be (case sensitive). Type * for any:<br />
 asterisk <strong>&lt;type &#8216;asterisk&#8217; then &lt;enter&gt; &gt;</strong><br />
 The database asterisk will be used.</p>
<p>What username is to be created: administrator<br />
 Username = administrator <strong>&lt;username to be created&gt; &lt;enter&gt;</strong><br />
 Would you like to set a password for administrator [y/n]: <strong>y &lt;enter&gt;</strong><br />
 What password do you want to specify for administrator:  <strong>&lt;enter password then enter&gt;</strong><br />
 Type the password again: <strong>&lt;retype password then enter&gt;</strong><br />
 We now need to know from what host(s) the user will connect.<br />
 Keep in mind that % means &#8216;from any host&#8217; &#8230;<br />
 The host please: <strong>% &lt;type &#8216;%&#8217; for anyhost&gt;</strong><br />
 Would you like to add another host [yes/no]: <strong>no</strong> <strong>&lt;enter&gt;</strong><br />
 Okay we keep it with this &#8230;<br />
 The following host(s) will be used: %.<br />
 ######################################################################</p>
<p>That was it &#8230; here is an overview of what you gave to me:<br />
 The database name       : asterisk<br />
 The username            : administrator<br />
 The host(s)             : %<br />
 ######################################################################</p>
<p>Are you pretty sure you would like to implement this [yes/no]: <strong>yes &lt;enter&gt;</strong><br />
 Okay &#8230; let&#8217;s go then &#8230;</p>
<p>Everything is inserted and mysql privileges have been reloaded.</p>
<p>Make your choice [1,2,3,4,5,6,7,0]:  <strong>0</strong> <strong>&lt;enter&gt;</strong>
</p></blockquote>
<p><strong>Now lets test the connection:</strong></p>
<blockquote><p>
asterisk88:~# mysql -h localhost -u administrator -p asterisk</p>
<p>Enter password: <strong>&lt;enter newly created password for &#8216;administrator&#8217;&gt;</strong></p>
<p>Reading table information for completion of table and column names<br />
 You can turn off this feature to get a quicker startup with -A</p>
<p>Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
 Your MySQL connection id is 29<br />
 Server version: 5.0.32-Debian_7etch5 Debian etch distribution</p>
<p>Type &#8216;help;&#8217; or &#8216;\h&#8217; for help. Type &#8216;\c&#8217; to clear the buffer.</p>
<p>mysql&gt; show tables;<br />
 +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
 | Tables_in_asterisk |<br />
 +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
 | cdr                |<br />
 +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
 1 row in set (0.00 sec)</p>
<p>mysql&gt; desc cdr;<br />
 +&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;+&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+<br />
 | Field       | Type         | Null | Key | Default             | Extra |<br />
 +&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;+&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+<br />
 | calldate    | datetime     | NO   | MUL | 0000-00-00 00:00:00 |       |<br />
 | clid        | varchar(80)  | NO   |     |                     |       |<br />
 | src         | varchar(80)  | NO   |     |                     |       |<br />
 | dst         | varchar(80)  | NO   | MUL |                     |       |<br />
 | dcontext    | varchar(80)  | NO   |     |                     |       |<br />
 | channel     | varchar(80)  | NO   |     |                     |       |<br />
 | dstchannel  | varchar(80)  | NO   |     |                     |       |<br />
 | lastapp     | varchar(80)  | NO   |     |                     |       |<br />
 | lastdata    | varchar(80)  | NO   |     |                     |       |<br />
 | duration    | int(11)      | NO   |     | 0                   |       |<br />
 | billsec     | int(11)      | NO   |     | 0                   |       |<br />
 | disposition | varchar(45)  | NO   |     |                     |       |<br />
 | amaflags    | int(11)      | NO   |     | 0                   |       |<br />
 | accountcode | varchar(20)  | NO   |     |                     |       |<br />
 | userfield   | varchar(255) | NO   |     |                     |       |<br />
 | uniqueid    | varchar(32)  | NO   | MUL |                     |       |<br />
 +&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;+&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+<br />
 16 rows in set (0.00 sec)</p>
<p>mysql&gt;
</p></blockquote>
<p>Our database is now ready for use with Asterisk. Now, Let&#8217;s configure Asterisk to save its CDR to this database:</p>
<p><strong>Download Asterisk-addons from Digium:</strong></p>
<blockquote><p>
<script type="text/javascript"><!--
google_ad_client = "pub-0448452892049658";
/* 468x60, created 7/4/08 */
google_ad_slot = "4595393016";
google_ad_width = 468;
google_ad_height = 60;
//-->
// --&gt;</script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>cd /usr/src<br />
 wget http://downloads.digium.com/pub/asterisk/releases/asterisk-addons-1.4.7.tar.gz<br />
 tar xvfz asterisk-addons-1.4.7.tar.gz<br />
 cd asterisk-addons-1.4.7/cdr/<br />
 vi cdr_addon_mysql.c<br />
 add <strong>#define MYSQL_LOGUNIQUEID</strong> after <strong>#define DATE_FORMAT &#8220;%Y-%m-%d %T&#8221;</strong></p>
<p>cd ..<br />
 ./configure<br />
 make menuselect</p>
<p>Check the following if selected:</p>
<p>&#8212;&gt; 1.  Applications<br />
 [*] 1.  app_addon_sql_mysql<br />
 2.  Call Detail Recording<br />
 [*] 1.  cdr_addon_mysql<br />
 3.  Channel Drivers<br />
 4.  Format Interpreters<br />
 5.  Resource Mod</p>
<p>then <strong>q (quit) and S (save)</strong>
</p></blockquote>
<blockquote><p>
make &amp;&amp; make install
</p></blockquote>
<p>Edit /etc/asterisk/cdr.conf</p>
<blockquote><p>
vi /etc/asterisk/cdr.conf</p>
<p>[general]<br />
 enable=yes
</p></blockquote>
<p>Edit /etc/asterisk/cdr_mysql.conf</p>
<blockquote><p>
[global]<br />
 hostname=localhost<br />
 dbname=asterisk<br />
 table=cdr<br />
 password=need2fix<br />
 user=admin<br />
 port=3306<br />
 ;sock=/tmp/mysql.sock<br />
 ;userfield=1
</p></blockquote>
<p>Edit /etc/asterisk/modules.conf</p>
<blockquote><p>
vi /etc/asterisk/modules.conf</p>
<p>add the entry below:</p>
<p>load =&gt; cdr_addon_mysql.so
</p></blockquote>
<p>We&#8217;re finished! Restart asterisk and check if mysql module is loaded</p>
<blockquote><p>
asterisk88# <strong>asterisk -r</strong><br />
 Asterisk 1.4.20, Copyright (C) 1999 &#8211; 2008 Digium, Inc. and others.<br />
 Created by Mark Spencer &lt;markster@digium.com&gt;<br />
 Asterisk comes with ABSOLUTELY NO WARRANTY; type &#8216;core show warranty&#8217; for details.<br />
 This is free software, with components licensed under the GNU General Public<br />
 License version 2 and other licenses; you are welcome to redistribute it under<br />
 certain conditions. Type &#8216;core show license&#8217; for details.<br />
 =========================================================================<br />
 Connected to Asterisk 1.4.20 currently running on asterisk88 (pid = 26648)<br />
 Verbosity is at least 3<br />
 asterisk88*CLI&gt; <strong>stop now</strong><br />
 asterisk88*CLI&gt;<br />
 Disconnected from Asterisk server<br />
 asterisk88# <strong>safe_asterisk</strong><br />
 asterisk88# <strong>asterisk -r</strong><br />
 Asterisk 1.4.20, Copyright (C) 1999 &#8211; 2008 Digium, Inc. and others.<br />
 Created by Mark Spencer &lt;markster@digium.com&gt;<br />
 Asterisk comes with ABSOLUTELY NO WARRANTY; type &#8216;core show warranty&#8217; for details.<br />
 This is free software, with components licensed under the GNU General Public<br />
 License version 2 and other licenses; you are welcome to redistribute it under<br />
 certain conditions. Type &#8216;core show license&#8217; for details.<br />
 =========================================================================<br />
 Connected to Asterisk 1.4.20 currently running on asterisk88 (pid = 26880)<br />
 Verbosity is at least 3<br />
 asterisk88*CLI&gt; <strong>cdr mysql status </strong><br />
 Connected to asterisk@localhost, port 3306 using table cdr for 15 seconds.<br />
 Wrote 0 records since last restart.<br />
 asterisk88*CLI&gt; <strong>quit</strong>
</p></blockquote>
<p>Make a successful test call and see if it CDR is placed in DB:</p>
<p>To check:</p>
<blockquote><p>
asterisk88:/usr/src/asterisk-addons-1.4.7# mysql -u administrator -p asterisk<br />
 Enter password:<br />
 Reading table information for completion of table and column names<br />
 You can turn off this feature to get a quicker startup with -A</p>
<p>Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
 Your MySQL connection id is 32<br />
 Server version: 5.0.32-Debian_7etch5 Debian etch distribution</p>
<p>Type &#8216;help;&#8217; or &#8216;\h&#8217; for help. Type &#8216;\c&#8217; to clear the buffer.</p>
<p>mysql&gt; select * from cdr;<br />
 +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
 | calldate            | clid                      | src        | dst         | dcontext | channel              | dstchannel  | lastapp | lastdata                 | duration | billsec | disposition | amaflags | accountcode | userfield | uniqueid     |<br />
 +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
 | 2008-07-08 05:03:25 | &#8220;XXXXXXXXXX&#8221; &lt;XXXXXXXXXX&gt; | 0117913501 | 12127773456 | default  | IAX2/0117913501-8484 | H323/CARRIER-1 | Dial    | H323/XXXXXXXXXX@Carrier||R |       19 |       0 | NO ANSWER   |        3 |             |           | 1215518605.1 |<br />
 +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
 1 row in set (0.00 sec)</p>
<p>mysql&gt;
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://callsolutions.org/howto-asterisk-cdr-mysql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Debian Etch + Asterisk 1.4 + H323 + G729 + G723</title>
		<link>http://callsolutions.org/debian-etch-asterisk-14-h323-g729-g723/</link>
		<comments>http://callsolutions.org/debian-etch-asterisk-14-h323-g729-g723/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 11:02:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Asterisk Installation]]></category>
		<category><![CDATA[Asterisk PBX]]></category>
		<category><![CDATA[VoIP Tutorial]]></category>
		<category><![CDATA[Asterisk g729]]></category>
		<category><![CDATA[Asterisk H323]]></category>
		<category><![CDATA[Asterisk Install H323 + g729]]></category>

		<guid isPermaLink="false">http://callsolutions.org/?p=3</guid>
		<description><![CDATA[This tutorial will show you how to install Asterisk 1.4 with H323 Support + G729 and G723 Codec.
1) Installing necessary Debian packages before installing Asterisk
aptitude update
aptitude upgrade
aptitude install ssh ntp screen
aptitude install build-essential libcurl3-dev libvorbis-dev libspeex-dev unixodbc unixodbc-dev libiksemel-dev flex xsltproc linux-headers-`uname -r` g++ libncurses5-dev libnewt-dev libusb-dev subversion git-core flex bison
2) Get the stable release [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial will show you how to install Asterisk 1.4 with H323 Support + G729 and G723 Codec.</p>
<p>1) Installing necessary Debian packages before installing Asterisk</p>
<p class="MsoNormal">aptitude update<br />
aptitude upgrade</p>
<p class="MsoNormal">aptitude install ssh ntp screen</p>
<p class="MsoNormal">aptitude install build-essential libcurl3-dev libvorbis-dev libspeex-dev unixodbc unixodbc-dev libiksemel-dev flex xsltproc linux-headers-`uname -r` g++ libncurses5-dev libnewt-dev libusb-dev subversion git-core flex bison</p>
<p class="MsoNormal">2) Get the stable release of Asterisk,  Libpri and Zaptel</p>
<p>cd /usr/src<br />
wget http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz<br />
wget http://downloads.digium.com/pub/zaptel/zaptel-1.4-current.tar.gz<br />
wget http://downloads.digium.com/pub/libpri/libpri-1.4-current.tar.gz<br />
wget http://downloads.digium.com/pub/asterisk/asterisk-addons-1.4-current.tar.gz</p>
<p>tar xvzf asterisk-1.4-current.tar.gz &amp;&amp; tar xvzf zaptel-1.4-current.tar.gz &amp;&amp; tar xvzf libpri-1.4-current.tar.gz &amp;&amp; tar xvzf asterisk-addons-1.4-current.tar.gz tar</p>
<p><span id="more-3"></span></p>
<p class="MsoNormal"><strong>a) Installing Zaptel</strong></p>
<p class="MsoNormal">cd /usr/src/zaptel-1.4*<br />
./install_prereq test<br />
./install_prereq install<br />
./configure<br />
make<br />
make install<br />
make config<br />
modprobe ztdummy</p>
<p class="MsoNormal"><strong>b) Installing Libpri</strong></p>
<p class="MsoNormal">cd /usr/src/libpri-1.4*<br />
make &amp;&amp; make install</p>
<p class="MsoNormal"><strong>c) Installing Asterisk</strong></p>
<p class="MsoNormal">cd /usr/src/asterisk-1.4*</p>
<p class="MsoNormal">./configure</p>
<p class="MsoNormal">Comment: The next step is not mandatory. To install core and extra sounds in different languages:</p>
<p class="MsoNormal">make menuselect</p>
<p class="MsoNormal">Comment: Select the core-sounds you would like to play and extra sounds. Exit with �x� to save.</p>
<p class="MsoNormal">make<br />
make install<br />
make samples<br />
make config<br />
asterisk -vvvc<br />
stop now<br />
echo �ztdummy� &gt;&gt; /etc/modules</p>
<p>Note: If you make a mistake and/or the compilation fails, you need to run:</p>
<p class="MsoNormal">make clean</p>
<p class="MsoNormal">then</p>
<p class="MsoNormal">./configure</p>
<p class="MsoNormal">and</p>
<p class="MsoNormal">make install</p>
<p class="MsoNormal">again.</p>
<p class="MsoNormal">Reboot and test if the system startup is correct.</p>
<p class="MsoNormal">reboot<br />
asterisk -r<br />
exit</p>
<p class="MsoNormal">d) Installing Asterisk Addons</p>
<p class="MsoNormal">cd /usr/src/asterisk-addons*<br />
./configure &amp;&amp; make &amp;&amp; make install<br />
make samples</p>
<p class="MsoNormal">3) Installing H323 Support</p>
<p class="MsoNormal">//dirty hack to prevent error from missing file<br />
cd /usr/include/linux<br />
touch compiler.h</p>
<p>//PWLIB<br />
cd /usr/src<br />
wget http://kent.dl.sourceforge.net/sourceforge/openh323/pwlib-v1_10_0-src-tar.gz<br />
tar zxvf pwlib-v1_10_0-src-tar.gz<br />
cd pwlib_v1_10_0/<br />
./configure<br />
make &amp;&amp; make install &amp;&amp; make opt<br />
PWLIBDIR=/usr/src/pwlib_v1_10_0 &amp;&amp; export PWLIBDIR</p>
<p>//OpenH323<br />
cd /usr/src<br />
wget http://ovh.dl.sourceforge.net/sourceforge/openh323/openh323-v1_18_0-src-tar.gz<br />
tar zxvf openh323-v1_18_0-src-tar.gz<br />
cd openh323_v1_18_0/<br />
./configure &amp;&amp; make &amp;&amp; make opt &amp;&amp; make install<br />
OPENH323DIR=/usr/src/openh323_v1_18_0/  &amp;&amp; export OPENH323DIR</p>
<p>cd /usr/src/asterisk/channels/h323/<br />
make &amp;&amp; make opt<br />
cd /usr/src/asterisk<br />
./configure &amp;&amp; make &amp;&amp; make install</p>
<p>echo �/usr/local/lib� &gt;&gt; /etc/ld.so.conf &amp;&amp; ldconfig</p>
<p>//or similar way</p>
<p>//cp /usr/local/lib/* /usr/lib</p>
<p>Binaries<br />
� choose codec binary appropriate for your Asterisk version and CPU type, use x86_64 for 64-bit mode, scroll to the end of the list for FreeBSD binaries<br />
�    delete old codec_g729/723*.so files (if any) from /usr/lib/asterisk/modules directory<br />
�    copy new codec_g729/723*.so files into /usr/lib/asterisk/modules directory<br />
�    restart Asterisk<br />
�    check the codec is loaded with �core show translation recalc 10? on Asterisk console (�show translation� in Asterisk 1.2)<br />
� G.723.1 send rate is configured in Asterisk codecs.conf file (Linux Asterisk 1.2, 1.4, 1.6, TRUNK and Callweaver, FreeBSD 7.x Asterisk 1.4 binaries only):<br />
�    [g723]<br />
�    ; 6.3Kbps stream, default<br />
�    sendrate=63<br />
�    ; 5.3Kbps<br />
;sendrate=53<br />
This option is for outgoing voice stream only. It does not affect incoming stream that should be decoded automatically whatever the bitrate is.</p>
<p>4) Installing G72X Codec (binary)</p>
<table border="0" width="250">
<tbody>
<tr>
<td></td>
<td><script type="text/javascript">// <![CDATA[
google_ad_client = "pub-0448452892049658";
/* 336x280, CALLSOLUTIONS 2TA SP */
google_ad_slot = "8746423819";
google_ad_width = 336;
google_ad_height = 280;
// ]]&gt;</script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></td>
</tr>
</tbody>
</table>
<p>Go TO: http://asterisk.hosting.lv/</p>
]]></content:encoded>
			<wfw:commentRss>http://callsolutions.org/debian-etch-asterisk-14-h323-g729-g723/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
