<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://halfface.se/wiki/index.php?action=history&amp;feed=atom&amp;title=Asterisk</id>
	<title>Asterisk - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://halfface.se/wiki/index.php?action=history&amp;feed=atom&amp;title=Asterisk"/>
	<link rel="alternate" type="text/html" href="https://halfface.se/wiki/index.php?title=Asterisk&amp;action=history"/>
	<updated>2026-04-19T07:28:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://halfface.se/wiki/index.php?title=Asterisk&amp;diff=11654&amp;oldid=prev</id>
		<title>Ekaanbj: /* freeworlddialing */</title>
		<link rel="alternate" type="text/html" href="https://halfface.se/wiki/index.php?title=Asterisk&amp;diff=11654&amp;oldid=prev"/>
		<updated>2012-06-12T11:34:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;freeworlddialing&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==freeworlddialing==&lt;br /&gt;
&lt;br /&gt;
 823547@fwd.pulver.com&lt;br /&gt;
 823547@iax.fwdnet.net&lt;br /&gt;
 +882 9999 432225&lt;br /&gt;
 +882 9900 52230&lt;br /&gt;
&lt;br /&gt;
 Mark Spencer at Digium.&lt;br /&gt;
==freeswitch==&lt;br /&gt;
 Alternative to Asterisk. More stable.&lt;br /&gt;
&lt;br /&gt;
==Usefull commands==&lt;br /&gt;
 sip show registry&lt;br /&gt;
 &lt;br /&gt;
 sip show users&lt;br /&gt;
 &lt;br /&gt;
 sip show peers&lt;br /&gt;
 &lt;br /&gt;
 sip set debug on&lt;br /&gt;
 sip set debug off&lt;br /&gt;
&lt;br /&gt;
 Download source.&lt;br /&gt;
 http://www.asterisk.org&lt;br /&gt;
 Mailing list. Commercial , development, user.&lt;br /&gt;
 http://list.digium.com&lt;br /&gt;
 Wiki.&lt;br /&gt;
 http://www.voip-info.org&lt;br /&gt;
 Documentation project.&lt;br /&gt;
 http://www.asteriskdocs.org&lt;br /&gt;
&lt;br /&gt;
==Glossary==&lt;br /&gt;
&lt;br /&gt;
 AoR Address-of-Record, a canonical address by which a user is known in SIP&lt;br /&gt;
 e.164 International Telecominication Union standard for telefon numbers.&lt;br /&gt;
 fxo Foreign eXchange Office (pstn)&lt;br /&gt;
 fxs Foreign eXchange Station (phone)&lt;br /&gt;
 ivr Interactive voice response &lt;br /&gt;
 moh Message On Hold&lt;br /&gt;
 pstn public switched telephone network&lt;br /&gt;
 proxy servers route requests to the user&amp;#039;s current location&lt;br /&gt;
 registrar registrations, User Agent Server handles registers&lt;br /&gt;
 rtp Real-time Transport Protocol&lt;br /&gt;
 sdp Session Description Protocol&lt;br /&gt;
 tdm Time Division Multiplexing (circuit switched network)&lt;br /&gt;
&lt;br /&gt;
==compile asterisk and build freepbx from source==&lt;br /&gt;
&lt;br /&gt;
 # Install dependencies.&lt;br /&gt;
 yum -y install gcc libxml2-devel libtiff-devel mysql-server php-gd php-mysql kernel-devel kernel-smp-devel bison ncurses-devel audiofile-devel subversion libogg-devel openssl-devel mysql-devel&lt;br /&gt;
 &lt;br /&gt;
 # Install livna repository.&lt;br /&gt;
 rpm -i http://rpm.livna.org/livna-release-7.rpm&lt;br /&gt;
 &lt;br /&gt;
 # Install lame&lt;br /&gt;
 yum install lame&lt;br /&gt;
 &lt;br /&gt;
 # Prepare source.&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 tar zxf /net/www/storage/temp/freepbx-2.3.0.tar.gz&lt;br /&gt;
 svn co http://svn.digium.com/svn/asterisk/branches/1.2 asterisk&lt;br /&gt;
 svn co http://svn.digium.com/svn/asterisk-addons/branches/1.2 asterisk-addons&lt;br /&gt;
 svn co http://svn.digium.com/svn/asterisk-sounds/trunk asterisk-sounds&lt;br /&gt;
 svn co http://svn.digium.com/svn/zaptel/branches/1.2 zaptel&lt;br /&gt;
 svn co http://svn.digium.com/svn/libpri/branches/1.2 libpri&lt;br /&gt;
 &lt;br /&gt;
 # Create ztdummy&lt;br /&gt;
 cd /usr/src/zaptel&lt;br /&gt;
 cp ztdummy.c ztdummy.c.orig&lt;br /&gt;
 sed -i &amp;quot;s/if 0/if 1/&amp;quot; ztdummy.c&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
 make config&lt;br /&gt;
 echo &amp;quot;modprobe ztdummy&amp;quot; &amp;gt;&amp;gt; /etc/rc.d/rc.local&lt;br /&gt;
 &lt;br /&gt;
 # Install asterisk&lt;br /&gt;
 cd /usr/src/asterisk&lt;br /&gt;
 mkdir /var/run/a&lt;br /&gt;
 make install&lt;br /&gt;
 make config &lt;br /&gt;
 &lt;br /&gt;
 # Create asterisk user.&lt;br /&gt;
 useradd -c &amp;quot;Asterisk PBX&amp;quot; -d /var/lib/asterisk asterisk&lt;br /&gt;
 mkdir /var/lib/php/session/&lt;br /&gt;
 chown asterisk /var/lib/php/session/&lt;br /&gt;
 &lt;br /&gt;
 # Setup mysql database.&lt;br /&gt;
 cd /usr/src/freepbx-2.3.0/&lt;br /&gt;
 mysqladmin create asterisk&lt;br /&gt;
 mysqladmin create asteriskcdrdb&lt;br /&gt;
 mysql asterisk &amp;lt; SQL/newinstall.sql&lt;br /&gt;
 mysql asteriskcdrdb &amp;lt; SQL/cdr_mysql_table.sql&lt;br /&gt;
 &lt;br /&gt;
 # Setup passwords on databases.&lt;br /&gt;
 mysql&lt;br /&gt;
 GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY &amp;#039;amp109&amp;#039;;&lt;br /&gt;
 GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY &amp;#039;amp109&amp;#039;;&lt;br /&gt;
 flush privileges;&lt;br /&gt;
 \q&lt;br /&gt;
 mysqladmin -u root password &amp;#039;password&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 # Install FreePBX.&lt;br /&gt;
 cd /usr/src/asterisk-addons&lt;br /&gt;
 cp Makefile Makefile.orig&lt;br /&gt;
 sed -i &amp;#039;s/SOURCE/SOURCE -DMYSQL_LOGUNIQUEID/&amp;#039; Makefile&lt;br /&gt;
 make &amp;amp;&amp;amp; make install&lt;br /&gt;
 &lt;br /&gt;
 # Backup asterisk database.&lt;br /&gt;
 tar zcf /temp/etc_asterisk /etc/asterisk/&lt;br /&gt;
 &lt;br /&gt;
 cd /usr/src/freepbx-2.3.0/&lt;br /&gt;
 rpm -y install php php-pear-DB&lt;br /&gt;
 &lt;br /&gt;
 # Error checking.&lt;br /&gt;
 tail /var/log/asterisk/full&lt;br /&gt;
&lt;br /&gt;
==Asterisk/freepbx from rpm==&lt;br /&gt;
&lt;br /&gt;
Asterisk/freepbx installation through rpm/svn. Use standard webserver. (not a second one run by asterisk)&lt;br /&gt;
 Enable atrpms. Read yum wiki.&lt;br /&gt;
&lt;br /&gt;
Install asterisk with dependencies.&lt;br /&gt;
 yum install lame php php-pear php-pear-DB spandsp zaptel asterisk asterisk-addons&lt;br /&gt;
 &lt;br /&gt;
Enable asterisk and apache to use same config files.&lt;br /&gt;
 chmod -R g+rwx /etc/asterisk&lt;br /&gt;
 find /etc/asterisk -type d -exec chmod g+s {} \;&lt;br /&gt;
 &lt;br /&gt;
Make asterisk and apache to use the same config files. (apache belongs to asterisk group, and asterisk belongs to apache group.&lt;br /&gt;
*/etc/group&lt;br /&gt;
 apache:x:48:asterisk&lt;br /&gt;
 asterisk:x:492:apache&lt;br /&gt;
&lt;br /&gt;
Restart webserver to get required access.&lt;br /&gt;
Start asterisk&lt;br /&gt;
 service asterisk start&lt;br /&gt;
&lt;br /&gt;
Check out latest freepbx source.&lt;br /&gt;
 svn co http://svn.freepbx.org/freepbx/trunk /usr/src/freepbx &lt;br /&gt;
&lt;br /&gt;
Setup mysql database.&lt;br /&gt;
 cd /usr/src/freepbx-2.3.0/&lt;br /&gt;
 mysqladmin create asterisk&lt;br /&gt;
 mysqladmin create asteriskcdrdb&lt;br /&gt;
 mysql asterisk &amp;lt; SQL/newinstall.sql&lt;br /&gt;
 mysql asteriskcdrdb &amp;lt; SQL/cdr_mysql_table.sql&lt;br /&gt;
 &lt;br /&gt;
 # Setup passwords on databases.&lt;br /&gt;
 mysql&lt;br /&gt;
 GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY &amp;#039;amp109&amp;#039;;&lt;br /&gt;
 GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY &amp;#039;amp109&amp;#039;;&lt;br /&gt;
 flush privileges;&lt;br /&gt;
 \q&lt;br /&gt;
 mysqladmin -u root password &amp;#039;password&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
Start installation of freepbx&lt;br /&gt;
 /usr/src/freepbx/install_amp&lt;br /&gt;
Chose destination of freepbx. (Most likely not this directory)&lt;br /&gt;
 /www/www-halfface/freepbx&lt;br /&gt;
Change destination of binaries.&lt;br /&gt;
 /var/lib/asterisk/bin &amp;gt; /usr/sbin/&lt;br /&gt;
&lt;br /&gt;
Give permission for group. &lt;br /&gt;
 chmod -R g+rwx  /www/www-halfface/freepbx/&lt;br /&gt;
 find /www/www-halfface/freepbx/ -type d -exec chmod g+s {} \;&lt;br /&gt;
&lt;br /&gt;
Make operator accept asterisk. Add useragent=whatever.&lt;br /&gt;
*/etc/asterisk/sip.conf&lt;br /&gt;
&lt;br /&gt;
 ; If you need to answer unauthenticated calls, you should change this&lt;br /&gt;
 ; next line to &amp;#039;from-trunk&amp;#039;, rather than &amp;#039;from-sip-external&amp;#039;.&lt;br /&gt;
 ; You&amp;#039;ll know this is happening if when you call in you get a message&lt;br /&gt;
 ; saying &amp;quot;The number you have dialed is not in service. Please check the&lt;br /&gt;
 ; number and try again.&amp;quot;&lt;br /&gt;
 context = from-sip-external ; Send unknown SIP callers to this context&lt;br /&gt;
 callerid = Unknown&lt;br /&gt;
 tos=0x68&lt;br /&gt;
 useragent=phonzo rules.&lt;br /&gt;
&lt;br /&gt;
Enable access to virified user.&lt;br /&gt;
*/etc/amportal.conf&lt;br /&gt;
 AUTHTYPE=database&lt;br /&gt;
[[Category:Applications]]&lt;br /&gt;
[[Category:Unix]]&lt;br /&gt;
[[Category:Sip]]&lt;/div&gt;</summary>
		<author><name>Ekaanbj</name></author>
	</entry>
</feed>