<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.parspooyesh.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fa">
		<id>http://wiki.parspooyesh.com/index.php?action=history&amp;feed=atom&amp;title=Asterisk_and_IBSng_Integration</id>
		<title>Asterisk and IBSng Integration - تاریخچهٔ ویرایش‌ها</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.parspooyesh.com/index.php?action=history&amp;feed=atom&amp;title=Asterisk_and_IBSng_Integration"/>
		<link rel="alternate" type="text/html" href="http://wiki.parspooyesh.com/index.php?title=Asterisk_and_IBSng_Integration&amp;action=history"/>
		<updated>2026-06-24T09:56:54Z</updated>
		<subtitle>تاریخچهٔ ویرایشهای صفحه در ویکی</subtitle>
		<generator>MediaWiki 1.19.0</generator>

	<entry>
		<id>http://wiki.parspooyesh.com/index.php?title=Asterisk_and_IBSng_Integration&amp;diff=881&amp;oldid=prev</id>
		<title>Farazmand در ‏۱۴ اکتبر ۲۰۱۲، ساعت ۰۹:۳۸</title>
		<link rel="alternate" type="text/html" href="http://wiki.parspooyesh.com/index.php?title=Asterisk_and_IBSng_Integration&amp;diff=881&amp;oldid=prev"/>
				<updated>2012-10-14T09:38:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-right'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;→ نسخهٔ قدیمی‌تر&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;نسخهٔ ‏۱۴ اکتبر ۲۰۱۲، ساعت ۰۹:۳۸&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;سطر ۳۷:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;سطر ۳۷:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; dbhost=x.x.x.x &amp;lt;= IBSng IP Address&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; dbhost=x.x.x.x &amp;lt;= IBSng IP Address&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; dbport=5432&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; dbport=5432&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; dbname=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;IBSn&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; dbname=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;IBSng&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; dbuser=asteriskuser&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; dbuser=asteriskuser&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; dbpass=xxxx&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; dbpass=xxxx&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Farazmand</name></author>	</entry>

	<entry>
		<id>http://wiki.parspooyesh.com/index.php?title=Asterisk_and_IBSng_Integration&amp;diff=221&amp;oldid=prev</id>
		<title>Support: صفحه‌ای جدید حاوی 'Category:VoIP &lt;div dir=rtl lang=en&gt; __TOC__ &lt;/div&gt; &lt;div dir=ltr lang=en&gt; == Asterisk Configuration ==  === Checking Modules === Make sure th...' ایجاد کرد</title>
		<link rel="alternate" type="text/html" href="http://wiki.parspooyesh.com/index.php?title=Asterisk_and_IBSng_Integration&amp;diff=221&amp;oldid=prev"/>
				<updated>2011-09-18T11:20:11Z</updated>
		
		<summary type="html">&lt;p&gt;صفحه‌ای جدید حاوی &amp;#039;&lt;a href=&quot;/index.php/%D8%B1%D8%AF%D9%87:VoIP&quot; title=&quot;رده:VoIP&quot;&gt;Category:VoIP&lt;/a&gt; &amp;lt;div dir=rtl lang=en&amp;gt; __TOC__ &amp;lt;/div&amp;gt; &amp;lt;div dir=ltr lang=en&amp;gt; == Asterisk Configuration ==  === Checking Modules === Make sure th...&amp;#039; ایجاد کرد&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحهٔ جدید&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:VoIP]]&lt;br /&gt;
&amp;lt;div dir=rtl lang=en&amp;gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div dir=ltr lang=en&amp;gt;&lt;br /&gt;
== Asterisk Configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Checking Modules ===&lt;br /&gt;
Make sure the modules &amp;quot;cdr_pgsql.so&amp;quot; and &amp;quot;res_config_pgsql.so&amp;quot; exist in /usr/lib/asterisk/modules/&lt;br /&gt;
&lt;br /&gt;
* If not so, follow this document to compile them:&lt;br /&gt;
http://www.voip-info.org/tiki-index.php?page=Asterisk+cdr+pgsql&lt;br /&gt;
&lt;br /&gt;
=== Make asterisk to load pgsql modules ===&lt;br /&gt;
&lt;br /&gt;
Edit the file /etc/asterisk/modules.conf, and the state of these modules (cdr_pgsql.so and res_config_pgsql.so) to &amp;quot;load&amp;quot;. (The default is &amp;quot;noload&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
=== Set the config files to integrate with IBSng ===&lt;br /&gt;
&lt;br /&gt;
Now we should make asterisk to join IBSng.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
First configure asterisk to load some tables in IBS dynamically.&amp;lt;br&amp;gt;&lt;br /&gt;
Append these lines to &amp;quot;/etc/asterisk/extconfig.conf&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
 sipusers =&amp;gt; pgsql,IBSng,asterisk.sip_buddies&lt;br /&gt;
 sippeers =&amp;gt; pgsql,IBSng,asterisk.sip_buddies&lt;br /&gt;
 iaxusers =&amp;gt; pgsql,IBSng,asterisk.iax_buddies&lt;br /&gt;
 iaxpeers =&amp;gt; pgsql,IBSng,asterisk.iax_buddies&lt;br /&gt;
 extensions =&amp;gt; pgsql,IBSng,asterisk.extensions&lt;br /&gt;
&lt;br /&gt;
Note: sip and iax are used when we want to add these users via IBSng.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then, edit the file &amp;quot;/etc/asterisk/res_pgsql.conf&amp;quot; to define the database parameters:&lt;br /&gt;
&lt;br /&gt;
 [general]&lt;br /&gt;
 dbhost=x.x.x.x &amp;lt;= IBSng IP Address&lt;br /&gt;
 dbport=5432&lt;br /&gt;
 dbname=IBSn&lt;br /&gt;
 dbuser=asteriskuser&lt;br /&gt;
 dbpass=xxxx&lt;br /&gt;
&lt;br /&gt;
We'll create the user (asterisk) in database later.&lt;br /&gt;
&lt;br /&gt;
=== Restart Asterisk ===&lt;br /&gt;
&lt;br /&gt;
Finally you have to restart Asterisk service to apply the changes.&lt;br /&gt;
&lt;br /&gt;
== Database Configuration ==&lt;br /&gt;
&lt;br /&gt;
First we'd better to define a new user in database for asterisk (we set it as dbuser in res_pgsql.conf before):&lt;br /&gt;
&lt;br /&gt;
 # su - postgres&lt;br /&gt;
 createuser asteriskuser -P&lt;br /&gt;
 Enter password for new role:&lt;br /&gt;
 Enter it again:&lt;br /&gt;
 Shall the new role be a superuser? (y/n) &amp;lt;= y&lt;br /&gt;
&lt;br /&gt;
'''Note: You can also limit this user to access &amp;quot;asterisk&amp;quot; table only.&lt;br /&gt;
&lt;br /&gt;
Now, we should edit the file &amp;quot;postgresql.conf&amp;quot; to make postgresql (normally on IBSng server) to accept foreign requests.&amp;lt;br&amp;gt;&lt;br /&gt;
''Edit /etc/postgresql/XXX/main/postgresql.conf, and set &amp;quot;listen_addresses&amp;quot; to '*'.&lt;br /&gt;
&lt;br /&gt;
Then, let the asterisk connect to database by adding the following line to /etc/postgresql/XXX/main/pg_hba.conf:&lt;br /&gt;
&lt;br /&gt;
 host    IBSng   asteriskuser        x.x.x.x/32        md5&lt;br /&gt;
&lt;br /&gt;
And, we should create asterisk table in database:&lt;br /&gt;
 &lt;br /&gt;
 cd /usr/local/IBSng/db&lt;br /&gt;
 psql -U ibs IBSng &amp;lt; asterisk.sql&lt;br /&gt;
&lt;br /&gt;
Finally restart postgresql service to apply our changes. (Please make sure the IBSng service is stop during restarting postgresql.)&lt;br /&gt;
&lt;br /&gt;
== Adding Asterisk as a RAS in IBSng ==&lt;br /&gt;
You can find the document [[RAS#RAS|here]].&amp;lt;br&amp;gt;&lt;br /&gt;
'''Note:''' Don't fill &amp;quot;radius key&amp;quot; field when you add this ras.&lt;/div&gt;</summary>
		<author><name>Support</name></author>	</entry>

	</feed>