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...' ایجاد کرد)

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

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"
ابزارهای شخصی

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