من asterisknow رو روی سیستم خودم نصب کردم و محیط کار اون متنی می خواستم بدونم چطور می تونم gui رو روی آن فعال یا نصب کنم. منظورم Gui ایی است که digiun روی این نسخه از asterisk ارائه کرده است نه freepbx gui.
Printable View
من asterisknow رو روی سیستم خودم نصب کردم و محیط کار اون متنی می خواستم بدونم چطور می تونم gui رو روی آن فعال یا نصب کنم. منظورم Gui ایی است که digiun روی این نسخه از asterisk ارائه کرده است نه freepbx gui.
Asterisk-GUI یک چهارچوب (Framework) برای برنامه نویسانی است که بخواهید برای Asterisk واسط کاربری بنویسند. البته خود شرکت Digium هم روی این چهارچوب، یک واسط کاربری نوشت که می توان آن را نصب کرد و از آن استفاده کرد و حدس می زنم منظور شما همین واسط کاربری است. (اگر اشتباه نکنم بیش از یک سال است که هیچ Update و Patch ای برای آن ارائه نشده و به همین دلیل توصیه می کنم به دنبال استفاده از آن در محیط عملیاتی نباشید و صرفا برای تست و آشنایی آن را نصب کنید.)
Asterisk-GUI در آغاز کار با نام Trunk و سپس با نام Branches ارائه شد.
این GUI به صورت بسته آماده نصب ارائه نشده و ابتدا می بایست Build شود و سپس مورد استفاده قرار گیرد.
[B]Source:[/B]
[URL]http://svn.digium.com/svn/asterisk-gui/branches/2.0/[/URL]
[B] دریافت:[/B]
[URL="http://downloads.asterisk.org/pub/telephony/asterisk-gui/releases/"]Index of /pub/telephony/asterisk-gui/releases[/URL]
[B]راهنمای نصب:[/B]
(دقت کنید که بسته به Distribution انتخابی شما برخی از دستورات متفاوت هستند، ولی برای آشنایی با روش کلی نصب می توانید از دو راهنمای زیر استفاده کنید. در یک کلام، انتظار نداشته باشید که به صورت Tutorial بتوانید از این راهنماها استفاده کنید.)
راهنمای نصب به همراه Asterisk 1.6
[URL="http://www.ideaglu.net/?p=3016"]ide@glu server 66: “:::Asterisk, the Open Source PBX & Telephony Platform on our Ubuntu 8.04lts Server Edition:::”[/URL]
[LEFT][CODE]
last program, asterisk-gui
[B][COLOR=#666699]$: sudo cd asterisk-gui-2.0.4
$: sudo ./configure
$: sudo make
$: sudo make install[/COLOR][/B] before to run the last command we need to make a modify at some files
[COLOR=#666699][B]$: sudo nano /etc/asterisk/http.conf[/B][/COLOR] and modify the lines in this way, uncomment and change the following lines
[COLOR=#666699][general]
enabled=yes
enablestatic=yes
bindaddr=0.0.0.0
bindport=8088
prefix=gui[/COLOR]
also in this one
[COLOR=#666699][B]$: sudo nano /etc/asterisk/manager.conf[/B][/COLOR] [COLOR=#666699][general]
enabled = yes
webenabled = yes
port = 5038
bindaddr = 0.0.0.0[/COLOR]
[COLOR=#666699][admin]
secret = yourpassword
read = system,call,log,verbose,command,agent,user,config,originate,read,write[/COLOR]
[COLOR=#666699] write = system,call,log,verbose,command,agent,user,config,[/COLOR][COLOR=#666699]originate,read,write[/COLOR]
For a futher check going into the directory /usr/src/cd asterisk-gui-2.0.2 and launch this comand
[B][COLOR=#666699]$: sudo cd /usr/src/asterisk/asterisk-gui
$: sudo make checkconfig[/COLOR][/B] reboot your system, if you check at the boot there will be an error something like that
[COLOR=#666699]udevd : lookup_user : specified user ‘asterisk’ unknown
udevd : lookup_user : specified group ‘asterisk’ unknown[/COLOR]
to resolve that one you’ve to add the user asterisk
[B][COLOR=#666699]$: sudo adduser asterisk --disabled-password --gecos "asterisk PBX"
$: sudo adduser www-data asterisk[/COLOR][/B] or you can make it making this
[B][COLOR=#666699]$: sudo nano /etc/udev/rules.d/dahdi.rules[/COLOR][/B] and comment the line
[COLOR=#666699]SUBSYSTEM==”dahdi”, OWNER=”asterisk”, GROUP=”asterisk”, MODE=”0660″[/COLOR]
reboot the system
[B][COLOR=#666699]$: sudo reboot[/COLOR][/B] Ok, now opening firefox and insert this address http://your_ip_address:8088/gui/static/config/cfgbasic.html
[/CODE][/LEFT]
راهنمای نصب به همراه Asterisk 1.4
[URL="http://www.howtoforge.com/asterisk_pbx_linux"]Installing The Asterisk PBX And The Asterisk Web-Based Provisioning GUI On Linux | HowtoForge - Linux Howtos and Tutorials[/URL]
[LEFT][CODE]
[B]Preparation[/B]
Go to your installation directory (for example /usr/src) and download the latest version of asterisk-gui. To do this just execute the command:
svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui
By executing this command the sources of Asterisk GUI will be downloaded (see our sample output log [URL="http://www.asteriskguru.com/tutorials/274498/svn.log"][COLOR=#0000ff]svn.log[/COLOR][/URL]) into ./asterisk-gui/ directory.
[B]Configuring, Compiling And Installing[/B]
You first need to go into the src directory where you downloaded the files, ie: /usr/src/asterisk-gui, then you need to configure, so type
./configure
[CENTER] [URL="http://a.collective-media.net/jump/idgt.howtoforge.en/article_above;sec=article;fold=above;tile=3;sz=300x250;ord=123456789?"][IMG]http://a.collective-media.net/ad/idgt.howtoforge.en/article_above;sec=article;fold=above;tile=3;sz=300x250;ord=123456789?[/IMG][/URL] [/CENTER]
Now, you need to compile the sources by executing the command:
make
Then distribute the compiled code by executing the command
make install
With this step you will finish the installation of the asterisk-gui (see our sample output log [URL="http://www.asteriskguru.com/tutorials/274499/make_install.log"]make_install.log[/URL]).
[B]Configuration[/B]
It is recommended to back up your configuration files before you continue. To achieve this just copy /etc/asterisk under a different name:
cp -r /etc/asterisk /etc/asterisk.backup
It is recommended to run:
make samples
This command will modify some of your Asterisk configuration files. After that you'll have to finish the configuration modification manually.
There are two files which you should modify that are located in /etc/asterisk/:
manager.conf
enabled = yes
webenabled = yes We will have to add a new user to manager.conf (we will use the mark user as previously set up when we installed Asterisk):
[mark]
secret = mysecret
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config Now we need to make some modifications to the http.conf file:
http.conf
enabled=yes
enablestatic=yes
bindaddr=0.0.0.0 (If you set the bindaddr to 127.0.0.1 (loopback) you will only be able to access the GUI from the server itself.)
After that run
make checkconfig
in your asterisk-gui directory. This script will check if your GUI is correctly configured.
[B]Running asterisk-gui[/B]
In order to load the asterisk-gui, Asterisk must restart/reload. You can reload your Asterisk server from your CLI console by executing the command
reload
You can use the asterisk-gui from these addresses (127.0.0.1 is the loopback IP if you're accessing the page from the server itself, or from a different system, type the Asterisk server IP address):
[URL]http://127.0.0.1:8088/asterisk/static/config/cfgbasic.html[/URL]
[URL]http://127.0.0.1:8088/asterisk/static/config/cfgadvanced.html[/URL]
[/CODE][/LEFT]