Whole sale Service provider

از ویکی پارس پویش
(تفاوت بین نسخه‌ها)
پرش به: ناوبری, جستجو
(صفحه‌ای جدید حاوی 'Category:VoIP <div dir=rtl lang=en> __TOC__ </div> <div dir=ltr lang=en> This service is designed for wholesale providers. Main steps to...' ایجاد کرد)
 
(جایگزینی صفحه با '<div dir=ltr lang=en> *Asterisk wholesale Service *Asterisk and IBSng Integration </div>')
سطر ۱: سطر ۱:
[[Category:VoIP]]
 
<div dir=rtl lang=en>
 
__TOC__
 
</div>
 
 
<div dir=ltr lang=en>
 
<div dir=ltr lang=en>
This service is designed for wholesale providers.
+
*[[Asterisk wholesale Service|Asterisk wholesale Service]]
 
+
*[[Asterisk and IBSng Integration|Asterisk and IBSng Integration]]
Main steps to install this service are:
+
</div>
 
+
* Integrating Asterisk and IBSng
+
* To copy AGI files in appropriate path
+
* Configuring asterisk to route calls using IBSng routing profile
+
* Defining customer's user in IBSng
+
== Integrating Asterisk and IBSng ==
+
You can find the document [[Asterisk_and_IBSng_Integration|here]].
+
 
+
== AGI files setting ==
+
 
+
Make the path "/var/lib/asterisk/agi-bin" and copy dial directory from IBSng addons there:
+
# mkdir /var/lib/asterisk/agi-bin/
+
# cp -r /usr/local/IBSng/addons/asterisk/dial /var/lib/asterisk/agi-bin/
+
 
+
Create a link from "/var/lib/asterisk/agi-bin" to "/usr/share/asterisk/agi-bin":
+
 
+
# ln -s /var/lib/asterisk/agi-bin /usr/share/asterisk/agi-bin
+
 
+
==== ?What does dial directory do ====
+
Actually, Dial directory is a python module. It includes an configuration file, defs.py, that we should set some fields in it based on the service we want to use.
+
 
+
==== Editing defs.py ====
+
For Wholesale Service, we should edit the following fields:
+
 
+
 
+
IBSNG_SERVER=('''"IBSng IP Address"''',1235)
+
 
+
=== Config Asterisk to establish calls, collaborating with IBSng ===
+
 
+
Edit "/etc/asterisk/extensions.conf" and append these contexts:
+
 
+
[incoming]
+
exten => _XXXXXXX.*,1,DeadAGI(dial/ibs_agi_starter.py|SIP/${EXTEN})
+
include => ibs_users<br>
+
[ibs_users]
+
switch => Realtime/ibs_users
+
<br>
+
====Important Note====
+
If you use Asterisk 1.6.x, you should set "AGI" instead of "DeadAGI"
+
<br>
+
 
+
=== Restart Asterisk ===
+
 
+
Finally you have to restart Asterisk service to apply the changes.
+
<br><br><br>
+
LOG_FILE="/var/log/asterisk/ibs_dial_agi.log"
+

نسخهٔ ‏۱۴ اکتبر ۲۰۱۲، ساعت ۱۳:۲۶

ابزارهای شخصی

گویش‌ها
فضاهای نام
عملکردها
گشتن
جعبه‌ابزار