Asterisk Wholesale Service

از ویکی پارس پویش
(تفاوت بین نسخه‌ها)
پرش به: ناوبری, جستجو
(صفحه‌ای جدید حاوی 'Category:VoIP <div dir=ltr lang=en> This service is designed for wholesale providers. Main steps to install this service are: * Integratin...' ایجاد کرد)
 
سطر ۱: سطر ۱:
 
[[Category:VoIP]]
 
[[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.
 
This service is designed for wholesale providers.
سطر ۹: سطر ۱۲:
 
* Configuring asterisk to route calls using IBSng routing profile
 
* Configuring asterisk to route calls using IBSng routing profile
 
* Defining customer's user in IBSng
 
* Defining customer's user in IBSng
<br>
 
 
== Integrating Asterisk and IBSng ==
 
== Integrating Asterisk and IBSng ==
 
You can find the document [[Asterisk_and_IBSng_Integration|here]].
 
You can find the document [[Asterisk_and_IBSng_Integration|here]].

نسخهٔ ‏۱۸ سپتامبر ۲۰۱۱، ساعت ۱۵:۴۹

محتویات

This service is designed for wholesale providers.

Main steps to install this service are:

  • 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 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
[ibs_users] switch => Realtime/ibs_users


Important Note:

If you use Asterisk 1.6.x, you should set "AGI" instead of "DeadAGI"

Restart Asterisk

Finally you have to restart Asterisk service to apply the changes.


LOG_FILE="/var/log/asterisk/ibs_dial_agi.log"
ابزارهای شخصی

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