sábado, 12 de enero de 2008

Instalación de Asterisk + GUI en Ubuntu 7.10


Asterisk es una aplicación de software libre que actua como una central telefonica tradicional. Tiene uso doméstico y empresarial, su creador es Mark Spencer (también creador del Gaim) quien desarrolló Asterisk porque necesitaba una central telefonica para su empresa.

Se creó Asterisk para usarse en GNU/Linux pero también funciona en BSD, Solaris, Mac OS X y Windows. Si queremos usar telefonos analógicos convencionales es necesario tener tarjetas FXS o FXO. Este manual comprende la instalación de Asterisk en ubuntu donde solo se podrá interactuar mediante la consola y la GUI, si lo que queremos es tener un servidor dedicado y usar un sistema más completo y con una interfaz gráfica es recomendable usar Trixbox ya que es una distribucion de GNU/Linux basada en Centos especialmete diseñada para funcionar como una central telefónica (PBX).

Manual de Instalación

Necesitamos una distribucion proveniente de Debian y nuestra inseparable consola, asi que lo haremos con permisos de superusuario.

cd /usr/src
wget -c ftp.digium.com/pub/zaptel/releases/zaptel-1.4.1.tar.gz
wget -c ftp.digium.com/pub/libpri/releases/libpri-1.4.0.tar.gz
wget -c ftp.digium.com/pub/asterisk/releases/asterisk-1.4.2.tar.gz
wget -c ftp.digium.com/pub/asterisk/releases/asterisk-addons-1.4.0.tar.gz
Ahora instalamos dependencias necesarias y además el compilador gcc 3.4
sudo aptitude install openssh-server build-essential automake1.9 autoconf bison flex libtool
sudo aptitude install gcc-3.4

Para evitar errores tipo "Termcam"
sudo aptitude install openssl libssl-dev zlib1g-dev ncurses-dev

Descomprimimos:
tar xvfz zaptel-1.4.1.tar.gz
tar xvfz libpri-1.4.0.tar.gz
tar xvfz asterisk-1.4.2.tar.gz
tar xvfz asterisk-addons-1.4.0.tar.gz
cd /usr/src/zaptel-1.4.1
make
make install
cd /usr/src/libpri-1.4.0
make
make install
cd /usr/src/asterisk-1.4.2
./configure
make
make install
make samples
# cd /usr/src/asterisk-addons-1.4.0
make
make install

En caso de que te marcara algun error puedes publicarlo aqui y yo trataré de ayudarte. Si todo sale a la perfección verás lo siguiente en consola.

solo_bits@solo_bits:~$
.$$$$$$$$$$$$$$$=..
.$7$7.. .7$$7:.
.$$:. ,$7.7
.$7. 7$$$$ .$$77
..$$. $$$$$ .$$$7
..7$ .?. $$$$$ .?. 7$$$.
$.$. .$$$7. $$$$7 .7$$$. .$$$.
.777. .$$$$$$77$$$77$$$$$7. $$$,
$$$~ .7$$$$$$$$$$$$$7. .$$$.
.$$7 .7$$$$$$$7: ?$$$.
$$$ ?7$$$$$$$$$$I .$$$7
$$$ .7$$$$$$$$$$$$$$$$ :$$$.
$$$ $$$$$$7$$$$$$$$$$$$ .$$$.
$$$ $$$ 7$$$7 .$$$ .$$$.
$$$$ $$$$7 .$$$.
7$$$7 7$$$$ 7$$$
$$$$$ $$$
$$$$7. $$ (TM)
$$$$$$$. .7$$$$$$ $$
$$$$$$$$$$$$7$$$$$$$$$.$$$$$$
$$$$$$$$$$$$$$$$.

solo_bits@solo_bits:~$
+--------- Asterisk Build Complete ---------+
+ Asterisk has successfully been built, and +
+ can be installed by running: +
+ +
+ make install +
+-------------------------------------------+

Ahora es tiempo de instalar Asterisk-GUI
apt-get install -qy subversion
svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui
cd asterisk-gui
make
make install
make samples

Configurar Asterisk-GUI

Tenemos que configurar 2 archivos como se muestra a continuación:

sudo gedit/etc/asterisk/http.conf
[general]
enabled=yes
enablestatic=yes

sudo gedit/etc/asterisk/manager.conf
[general]
displaysystemname = yes
enabled = yes
webenabled = yes
port = 5038
httptimeout = 60
bindaddr = 0.0.0.0

[admin]
secret = mypasswd
read = system,call,log,verbose,command,agent,config
write = system,call,log,verbose,command,agent,config

[admin] Este es tu usuario
secret = mypasswd Este es tu contraseña para poder logearte en la GUI

Ejecutamos lo siguiente y checamos que todo nos marque como correcto, si no hay que checar los pasos anteriores
make checkconfig

--- Checking Asterisk configuration to see if it will support the GUI ---
* Checking for http.conf: OK
* Checking for manager.conf: OK
* Checking if HTTP is enabled: OK
* Checking if HTTP static support is enabled: OK
* Checking if manager is enabled: OK
* Checking if manager over HTTP is enabled: OK

Este es el comando para arrancar Asterisk
asterisk -gvvvvvvvvc
Entonces nuestra consola cambiará de color y aparecerá:

Asterisk Ready.
*CLI>

Ejemplo:



Esta es la consola de Asterisk donde podremos interactuar con el (Command Line Interpreter). Y es asi como usted podrá empezar a configurar este servicio tan práctico.

Una vez terminada la instalación pon en tu navegador Firefox la siguiente URL: http://127.0.0.1:8088/asterisk/static/config/cfgbasic.html y debe quedarte algo así:




44 comentarios:

Victor Candela dijo...

Bueno amigazo voy a decirte que tu manual esta muy bueno, pero tube unos problemas que son los siguientes:

Baje estos archivos en vez los q pusiste:

http://downloads.digium.com/pub/zaptel/releases/zaptel-1.4.9.2.tar.gz
http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.18.1.tar.gz
http://downloads.digium.com/pub/libpri/releases/libpri-1.4.3.tar.gz
http://downloads.digium.com/pub/asterisk/releases/asterisk-addons-1.4.6.tar.gz

Luego cuando descomprimo y entro a la carpeta de Zaptel-1.4.9.2 y pongo sudo make me sale:
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log` for more details.
make: *** config.ststus Error 1

y ya no se que hacer ya borre la carpeta la volvi a instalar pero nada aun sigue lo mismo. agradeceria tu ayuda.
Nota: Uso Ubuntu Server 7.10

Gracias

Victor Candela dijo...
Este comentario ha sido eliminado por un administrador del blog.
Ing. Marcela Bonell dijo...

bueno victor antonio lo que pasa es que tienes que instalar el compilador gcc antes..

suerte

marcela

neosyoshiran dijo...

buen manual
cuando ejecuto el ultimo paso
asterisk -gvvvvvvvvc

me cambia de color pero me sale el mensaje
[Apr 1 18:38:31] WARNING[17036]: manager.c:3026 init_manager: Unable to bind socket: Address already in use

mi manager.config esta
[general]
displaysystemname = yes
enabled = yes
webenabled = yes
port = 5038
httptimeout = 60
bindaddr = 0.0.0.0

[admin]
secret = password
read = system,call,log,verbose,command,agent,config
write = system,call,log,verbose,command,agent,config


"no puse lo que tenia como prefijo ;"
P.D. Perdon soy nuevo en linux , otra consulta antes de los make hay que poner sudo para que funcionene, y en algunos me pide ejecutar primero sudo ./configure ¿eso esta bien?

Saludos

Ing. Marcela Bonell dijo...

Hola neosyoshiran

Lo que te pasa es que el puerto que tratas de usar no esta disponible pues otra de tus aplicaciones lo esta utilizando trata de usar un diferente al port = 5038.

Referente a lo de sudo ./configure y make algunas veces es necesario usar el sudo para tener los permisos necesarios para crear los nuevos archivos porque si no puede que no instales bien los paquetes.

Juan Carlos López dijo...

fijate que me tira este error al tratar de hacer make a zaptel
-p: not found
chkconfig: not found
-p: not found
chkconfig: not found
make[1]: se ingresa al directorio `/usr/src/zaptel-1.4.1'
make -C /lib/modules/2.6.24-16-generic/build SUBDIRS=/usr/src/zaptel-1.4.1 modules
make[2]: se ingresa al directorio `/usr/src/linux-headers-2.6.24-16-generic'
scripts/Makefile.build:46: *** CFLAGS was changed in "/usr/src/zaptel-1.4.1/Makefile". Fix it to use EXTRA_CFLAGS. Alto.
make[2]: *** [_module_/usr/src/zaptel-1.4.1] Error 2
make[2]: se sale del directorio `/usr/src/linux-headers-2.6.24-16-generic'
make[1]: *** [modules] Error 2
make[1]: se sale del directorio `/usr/src/zaptel-1.4.1'
make: *** [all] Error 2
Gracias

David dijo...

Se puede instalar asterisk - gui fuera de linea
No poseeo acceso a internet en casa, se podrá instalar la GUI sin acceso a internet, todos los otros archivos los he descargado y me ha ido bien, solo me falta la GUI.
GRACIAS

Liz dijo...

hola: Tengo este error no lo entiendo por que ya configure los dos archivos como esta en el tutorial, hats le cambie en vez de poner 0.0.0.0 puse otrs direccon y en vez de poner yes puse no aunq asi sigue saliendo el mismo error:

Checking for http.conf: OK
* Checking for manager.conf: OK
* Checking if HTTP is enabled: FAILED
-- Please be sure you have 'enabled = yes'
-- in /etc/asterisk/http.conf
make: *** [checkconfig] Error 1


Gracias

cesar dijo...

holas: tengo un problema cuando ejecuto "./configure" en asterisk-addons-1.4.0 en la parte final me sale:

configure : package configure
configure : os type : linux
configure : host cpu :1686

Ing. Marcela Bonell dijo...

Hola cesar
Bueno primero dime si lo estas haciendo correctamente ya que el configure se hace dentro del directorio /usr/src/asterisk-addons-1.4.0 asi que necesito mas informacion

Ing. Marcela Bonell dijo...

Hola liz

bueno el enabled = yes ese tiene que estar asi, si no no se puede hacer la conexion, si gustas publica tus archivos de configuracion para asi poder ayudarte

Ing. Marcela Bonell dijo...

Hola jc

Asterisk utiliza tres paquetes principales: el programa principal (asterisk), los
controladores del hardware (zaptel) y la librería para puertos primarios (libpri). Asi que si tu no usaras hardware como las tarjets fxo para tener telefonos voip, puedes pasar ese paso, de lo contrario si tu deseas usar los telefonos voip pues checa primero los drivers ya que El módulo zaptel es una interfaz transparente de comunicación entre el hardware yAsterisk. Este paquete permite a Asterisk poder modificar la configuración de los drivers de cada una de las tarjetas instaladas.

Ing. Marcela Bonell dijo...

Hola david
pues si la puedes tener la gui ya que esta corre en tu servidor (localhost)

Liz dijo...

rosaelizabethlopez

Liz dijo...

Hola tengo este error a que se debera

rosa@NEPTUNO:/usr/src$ sudo asterisk -gvvvvvvvvc
[sudo] password for rosa:
Asterisk 1.4.2, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Found
Warning! Asterisk is not thread safe.
== Parsing '/etc/asterisk/logger.conf': Found
Asterisk Event Logger Started /var/log/asterisk/event_log
Asterisk Dynamic Loader Starting:
== Parsing '/etc/asterisk/modules.conf': Found
== Parsing '/etc/asterisk/dnsmgr.conf': Found
== Parsing '/etc/asterisk/http.conf': Found
[Jul 1 14:37:53] NOTICE[7695]: http.c:601 http_server_start: Unable to bind http server to 200.36.111.9:8088: Cannot assign requested address
== Manager registered action Ping
== Manager registered action Events
== Manager registered action Logoff
== Manager registered action Hangup
== Manager registered action Status
== Manager registered action Setvar
== Manager registered action Getvar
== Manager registered action GetConfig
== Manager registered action UpdateConfig
== Manager registered action Redirect
== Manager registered action Originate
== Manager registered action Command
== Manager registered action ExtensionState
== Manager registered action AbsoluteTimeout
== Manager registered action MailboxStatus
== Manager registered action MailboxCount
== Manager registered action ListCommands
== Manager registered action UserEvent
== Manager registered action WaitEvent
== Parsing '/etc/asterisk/manager.conf': Found
Asterisk Management interface listening on port 5038
== Parsing '/etc/asterisk/cdr.conf': Found
[Jul 1 14:37:53] NOTICE[7695]: cdr.c:1093 do_reload: CDR simple logging enabled.
== Parsing '/etc/asterisk/rtp.conf': Found
== RTP Allocating from port range 10000 -> 20000
== Parsing '/etc/asterisk/udptl.conf': Found
== UDPTL allocating from port range 4000 -> 4999
Asterisk PBX Core Initializing
Registering builtin applications:
[Answer]
== Registered application 'Answer'
[BackGround]
== Registered application 'BackGround'
[Busy]
== Registered application 'Busy'
[Congestion]
== Registered application 'Congestion'
[Goto]
== Registered application 'Goto'
[GotoIf]
== Registered application 'GotoIf'
[GotoIfTime]
== Registered application 'GotoIfTime'
[ExecIfTime]
== Registered application 'ExecIfTime'
[Hangup]
== Registered application 'Hangup'
[NoOp]
== Registered application 'NoOp'
[Progress]
== Registered application 'Progress'
[ResetCDR]
== Registered application 'ResetCDR'
[Ringing]
== Registered application 'Ringing'
[SayNumber]
== Registered application 'SayNumber'
[SayDigits]
== Registered application 'SayDigits'
[SayAlpha]
== Registered application 'SayAlpha'
[SayPhonetic]
== Registered application 'SayPhonetic'
[SetAMAFlags]
== Registered application 'SetAMAFlags'
[SetGlobalVar]
== Registered application 'SetGlobalVar'
[Set]
== Registered application 'Set'
[ImportVar]
== Registered application 'ImportVar'
[Wait]
== Registered application 'Wait'
[WaitExten]
== Registered application 'WaitExten'
== Manager registered action DBGet
== Manager registered action DBPut
== Parsing '/etc/asterisk/enum.conf': Found
Asterisk Dynamic Loader Starting:
== Parsing '/etc/asterisk/modules.conf': Found
[Jul 1 14:37:53] NOTICE[7695]: loader.c:799 load_modules: 188 modules will be loaded.
== Registered application 'MusicOnHold'
== Registered application 'WaitMusicOnHold'
== Registered application 'SetMusicOnHold'
== Registered application 'StartMusicOnHold'
== Registered application 'StopMusicOnHold'
== Parsing '/etc/asterisk/musiconhold.conf': Found
res_musiconhold.so => (Music On Hold Resource)
== Parsing '/etc/asterisk/watchdog.conf': Found
res_watchdog.so => (Watchdog Resource)
== Parsing '/etc/asterisk/adsi.conf': Found
res_adsi.so => (ADSI Resource)
[Jul 1 14:37:54] WARNING[7695]: loader.c:375 load_dynamic_module: Module 'format_pcm_alaw.so' did not register itself during load
[Jul 1 14:37:55] WARNING[7695]: loader.c:375 load_dynamic_module: Module 'chan_phone.so' did not register itself during load
== Parsing '/etc/asterisk/esel.conf': Found
res_esel.so => (Extension State Export Logic (E.S.E.L.) Resource)
res_speech.so => (Generic Speech Recognition API)
== Registered application 'Monitor'
== Registered application 'StopMonitor'
== Registered application 'ChangeMonitor'
== Registered application 'PauseMonitor'
== Registered application 'UnpauseMonitor'
== Manager registered action Monitor
== Manager registered action StopMonitor
== Manager registered action ChangeMonitor
== Manager registered action PauseMonitor
== Manager registered action UnpauseMonitor
res_monitor.so => (Call Monitoring Resource)
[Jul 1 14:37:55] WARNING[7695]: loader.c:375 load_dynamic_module: Module 'app_setcidname.so' did not register itself during load
[Jul 1 14:37:55] WARNING[7695]: loader.c:375 load_dynamic_module: Module 'format_au.so' did not register itself during load
[Jul 1 14:37:55] WARNING[7695]: loader.c:375 load_dynamic_module: Module 'app_math.so' did not register itself during load
== Registered application 'Segfault'
app_segfault.so => (Application for crashing Asterisk with a segmentation fault)
== Parsing '/etc/asterisk/res_snmp.conf': Found
Loading [Sub]Agent Module
res_snmp.so => (SNMP [Sub]Agent for Asterisk)
[Jul 1 14:37:57] NOTICE[7695]: config.c:1184 ast_config_engine_register: Registered Config Engine odbc
res_config_odbc loaded.
res_config_odbc.so => (ODBC Configuration)
[Jul 1 14:37:57] WARNING[7695]: loader.c:362 load_dynamic_module: Error loading module 'app_txtcidname.so': /usr/lib/asterisk/modules/app_txtcidname.so: undefined symbol: option_priority_jumping
== Registered application 'StealChan'
== Registered application 'PickupChan'
== Registered application 'PickDown'
== Registered application 'Steal'
== Registered application 'PickUp'
app_pickup.so => (PickUp/PickDown/Steal/PickupChan/StealChan)
== Parsing '/etc/asterisk/res_pgsql.conf': Found
[Jul 1 14:37:57] ERROR[7695]: res_config_pgsql.c:783 pgsql_reconnect: Postgresql RealTime: Failed to connect database server asterisk on 127.0.0.1. Check debug for more info.
[Jul 1 14:37:57] WARNING[7695]: res_config_pgsql.c:606 load_module: Postgresql RealTime: Couldn't establish connection. Check debug.
[Jul 1 14:37:57] NOTICE[7695]: config.c:1184 ast_config_engine_register: Registered Config Engine pgsql
Postgresql RealTime driver loaded.
res_config_pgsql.so => (PostgreSQL RealTime Configuration Driver)
== Parsing '/etc/asterisk/res_odbc.conf': Found
[Jul 1 14:37:57] NOTICE[7695]: res_odbc.c:230 load_odbc_config: Adding ENV var: INFORMIXSERVER=my_special_database
[Jul 1 14:37:57] NOTICE[7695]: res_odbc.c:230 load_odbc_config: Adding ENV var: INFORMIXDIR=/opt/informix
[Jul 1 14:37:57] NOTICE[7695]: res_odbc.c:519 odbc_obj_connect: Connecting asterisk
[Jul 1 14:37:57] WARNING[7695]: res_odbc.c:530 odbc_obj_connect: res_odbc: Error SQLConnect=-1 errno=0 [unixODBC][Driver Manager]Data source name not found, and no default driver specified
[Jul 1 14:37:57] WARNING[7695]: res_odbc.c:455 ast_odbc_request_obj: Failed to connect to asterisk
[Jul 1 14:37:57] NOTICE[7695]: res_odbc.c:308 load_odbc_config: Registered ODBC class 'asterisk' dsn->[asterisk]
[Jul 1 14:37:57] NOTICE[7695]: res_odbc.c:700 load_module: res_odbc loaded.
res_odbc.so => (ODBC Resource)
[Jul 1 14:37:58] WARNING[7695]: loader.c:362 load_dynamic_module: Error loading module 'chan_zap.so': /usr/lib/asterisk/modules/chan_zap.so: undefined symbol: ast_pbx_run_app
[Jul 1 14:37:58] WARNING[7695]: loader.c:375 load_dynamic_module: Module 'pbx_functions.so' did not register itself during load
== Parsing '/etc/asterisk/smdi.conf': Found
[Jul 1 14:37:58] WARNING[7695]: res_smdi.c:722 load_module: No SMDI interfaces are available to listen on, not starting SDMI listener.
== Parsing '/etc/asterisk/indications.conf': Found
-- Registered indication country 'at'
-- Registered indication country 'au'
-- Registered indication country 'bg'
-- Registered indication country 'br'
-- Registered indication country 'be'
-- Registered indication country 'ch'
-- Registered indication country 'cl'
-- Registered indication country 'cn'
-- Registered indication country 'cz'
-- Registered indication country 'de'
-- Registered indication country 'dk'
-- Registered indication country 'ee'
-- Registered indication country 'es'
-- Registered indication country 'fi'
-- Registered indication country 'fr'
-- Registered indication country 'gr'
-- Registered indication country 'hu'
-- Registered indication country 'il'
-- Registered indication country 'in'
-- Registered indication country 'it'
-- Registered indication country 'lt'
-- Registered indication country 'jp'
-- Registered indication country 'mx'
-- Registered indication country 'my'
-- Registered indication country 'nl'
-- Registered indication country 'no'
-- Registered indication country 'nz'
-- Registered indication country 'pl'
-- Registered indication country 'pt'
-- Registered indication country 'ru'
-- Registered indication country 'se'
-- Registered indication country 'sg'
-- Registered indication country 'th'
-- Registered indication country 'uk'
-- Registered indication country 'us'
-- Registered indication country 'us-o'
-- Registered indication country 'tw'
-- Registered indication country 've'
-- Registered indication country 'za'
-- Setting default indication country to 'us'
== Registered application 'PlayTones'
== Registered application 'StopPlayTones'
res_indications.so => (Indications Resource)
== Parsing '/etc/asterisk/features.conf': Found
-- Registered extension context 'parkedcalls'
-- Added extension '700' priority 1 to parkedcalls
== Registered application 'ParkedCall'
== Registered application 'Park'
== Manager registered action ParkedCalls
== Manager registered action Park
res_features.so => (Call Features Resource)
[Jul 1 14:37:58] WARNING[7695]: loader.c:375 load_dynamic_module: Module 'app_setrdnis.so' did not register itself during load
[Jul 1 14:37:58] WARNING[7695]: loader.c:375 load_dynamic_module: Module 'app_eval.so' did not register itself during load
[Jul 1 14:37:58] WARNING[7695]: loader.c:362 load_dynamic_module: Error loading module 'app_enumlookup.so': /usr/lib/asterisk/modules/app_enumlookup.so: undefined symbol: option_priority_jumping
-- Loaded PUBLIC key 'iaxtel'
-- Loaded PUBLIC key 'freeworlddialup'
res_crypto.so => (Cryptographic Digital Signatures)
== Parsing '/etc/asterisk/jabber.conf': Found
== Manager registered action JabberSend
== Registered application 'JabberSend'
== Registered application 'JabberStatus'
res_jabber.so => (AJI - Asterisk Jabber Interface)
[Jul 1 14:37:59] WARNING[7695]: loader.c:362 load_dynamic_module: Error loading module 'app_groupcount.so': /usr/lib/asterisk/modules/app_groupcount.so: undefined symbol: option_priority_jumping
[Jul 1 14:37:59] WARNING[7695]: loader.c:375 load_dynamic_module: Module 'app_cut.so' did not register itself during load
[Jul 1 14:37:59] WARNING[7695]: loader.c:362 load_dynamic_module: Error loading module 'app_md5.so': /usr/lib/asterisk/modules/app_md5.so: undefined symbol: option_priority_jumping
[Jul 1 14:37:59] WARNING[7695]: loader.c:375 load_dynamic_module: Module 'app_setcidnum.so' did not register itself during load
== Registered application 'Dial'
== Registered application 'RetryDial'
app_dial.so => (Dialing Application)
== Registered custom function BASE64_ENCODE
== Registered custom function BASE64_DECODE
func_base64.so => (base64 encode/decode dialplan functions)
== Registered custom function IAXPEER
== Registered application 'IAX2Provision'
== Manager registered action IAXpeers
== Manager registered action IAXnetstats
== Parsing '/etc/asterisk/iax.conf': Found
== Using TOS bits 0
== Binding IAX2 to default address 0.0.0.0:4569
== Parsing '/etc/asterisk/users.conf': Found
> doing dnsmgr_lookup for '216.207.245.47'
== Registered channel type 'IAX2' (Inter Asterisk eXchange Driver (Ver 2))
== 10 helper threaads started
== IAX Ready and Listening
== Loaded firmware 'iaxy.bin'
== Parsing '/etc/asterisk/iaxprov.conf': Found
-- Loaded provisioning template 'default'
chan_iax2.so => (Inter Asterisk eXchange (Ver 2))
== Manager registered action PlayDTMF
== Registered application 'SendDTMF'
app_senddtmf.so => (Send DTMF digits Application)
== Registered application 'MixMonitor'
== Registered application 'StopMixMonitor'
app_mixmonitor.so => (Mixed Audio Monitoring Application)
== Parsing '/etc/asterisk/oss.conf': Found
== Registered channel type 'Console' (OSS Console Channel Driver)
chan_oss.so => (OSS Console Channel Driver)
== Registered application 'Log'
== Registered application 'Verbose'
app_verbose.so => (Send verbose output)
== Registered application 'SpeechCreate'
== Registered application 'SpeechLoadGrammar'
== Registered application 'SpeechUnloadGrammar'
== Registered application 'SpeechActivateGrammar'
== Registered application 'SpeechDeactivateGrammar'
== Registered application 'SpeechStart'
== Registered application 'SpeechBackground'
== Registered application 'SpeechDestroy'
== Registered application 'SpeechProcessingSound'
== Registered custom function SPEECH
== Registered custom function SPEECH_SCORE
== Registered custom function SPEECH_TEXT
== Registered custom function SPEECH_GRAMMAR
== Registered custom function SPEECH_ENGINE
app_speech_utils.so => (Dialplan Speech Applications)
== Registered application 'ZapBarge'
app_zapbarge.so => (Barge in on Zap channel application)
== Parsing '/etc/asterisk/cdr.conf': Found
cdr_radius.so => (RADIUS CDR Backend)
== Registered custom function DB
== Registered custom function DB_EXISTS
== Registered custom function DB_DELETE
func_db.so => (Database (astdb) related dialplan functions)
== Parsing '/etc/asterisk/codecs.conf': Found
-- codec_ulaw: using generic PLC
[Jul 1 14:37:59] WARNING[7695]: translate.c:675 __ast_register_translator: plc_samples 160 format 6
== Registered translator 'ulawtolin' from format ulaw to slin, cost 1
== Registered translator 'lintoulaw' from format slin to ulaw, cost 1
codec_ulaw.so => (mu-Law Coder/Decoder)
== Registered application 'UserEvent'
app_userevent.so => (Custom User Event Application)
== Registered application 'Flash'
app_flash.so => (Flash channel application)
== Registered application 'NoCDR'
app_cdr.so => (Tell Asterisk to not maintain a CDR for the current call)
== Registered translator 'alawtoulaw' from format alaw to ulaw, cost 1
== Registered translator 'ulawtoalaw' from format ulaw to alaw, cost 1
codec_a_mu.so => (A-law and Mulaw direct Coder/Decoder)
== Parsing '/etc/asterisk/cdr_tds.conf': Found
== Registered translator 'ilbctolin' from format ilbc to slin, cost 3
== Registered translator 'lintoilbc' from format slin to ilbc, cost 46
codec_ilbc.so => (iLBC Coder/Decoder)
== Registered file format g729, extension(s) g729
format_g729.so => (Raw G729 data)
== Registered application 'DumpChan'
app_dumpchan.so => (Dump Info About The Calling Channel)
== Parsing '/etc/asterisk/func_odbc.conf': Found
== Registered custom function ODBC_SQL
== Registered custom function ODBC_ANTIGF
== Registered custom function ODBC_PRESENCE
== Registered custom function SQL_ESC
func_odbc.so => (ODBC lookups)
== Parsing '/etc/asterisk/skinny.conf': Found
== Skinny listening on 0.0.0.0:2000
== Registered channel type 'Skinny' (Skinny Client Control Protocol (Skinny))
== Registered application 'RealTimeUpdate'
== Registered application 'RealTime'
app_realtime.so => (Realtime Data Lookup/Rewrite)
[Jul 1 14:37:59] WARNING[7695]: loader.c:375 load_dynamic_module: Module 'format_pcm_alaw.so' did not register itself during load
[Jul 1 14:37:59] WARNING[7695]: loader.c:614 load_resource: Module 'format_pcm_alaw.so' could not be loaded.
== Registered application 'DISA'
app_disa.so => (DISA (Direct Inward System Access) Application)
== Registered application 'LookupCIDName'
app_lookupcidname.so => (Look up CallerID Name from local database)
[Jul 1 14:37:59] WARNING[7695]: loader.c:375 load_dynamic_module: Module 'chan_phone.so' did not register itself during load
[Jul 1 14:37:59] WARNING[7695]: loader.c:614 load_resource: Module 'chan_phone.so' could not be loaded.
== Registered custom function TIMEOUT
func_timeout.so => (Channel timeout dialplan functions)
== Parsing '/etc/asterisk/vpb.conf': Found
[Jul 1 14:37:59] NOTICE[7695]: chan_vpb.cc:2891 ast_module_load_result load_module(): VPB Driver configured to use [1] cards
Fallo de segmentación (core dumped)

Ing. Marcela Bonell dijo...

Liz necesito ver tu http.conf porque tu error esta ahi

Liz dijo...

Este son mis archivos http.conf y manager.conf

http.conf:

[general]

enabled=yes

enablestatic=yes

bindaddr=0.0.0.0

bindport=8088

--------------
manager.conf:

[general]

displaysystemname = yes

enabled = yes

webenabled = yes

port = 5038

httptimeout = 60

bindaddr = 0.0.0.0



[admin]

secret = test

read = system,call,log,verbose,command,agent,config

write = system,call,log,verbose,command,agent,config

Liz dijo...

y otro error es la conexion a la base de datos:

Checking for PEAR DB..OK
Checking for PEAR Console::Getopt..OK
Checking user..OK
Checking for /etc/amportal.conf..OK
Reading /etc/amportal.conf..OK
Checking for /etc/asterisk/asterisk.conf..OK
Reading /etc/asterisk/asterisk.conf..OK
Checking for Asterisk 1.2..OK
Checking for selinux..OK
Connecting to database..FAILED
Try running ./install_amp --username=user --password=pass (using your own user and pass)
[FATAL] Cannot connect to database

Ing. Marcela Bonell dijo...

liz que comando usas para lo de la base de datos, tienes instalado mysql?? en cuento a los archivos parece que estan bien

Liz dijo...

YA LOGRE QUE SE CONECTTE LA BASE DE DATOS, PERO ME SACA TODAVIA UN ERROR QUE ES EL ULTIMO: GRACIAS
Reading /etc/asterisk/asterisk.conf..OK
Checking for Asterisk 1.2..OK
Checking for selinux..OK
Connecting to database..OK
Checking current version of AMP..2.0.0
Installing new AMP files..OK
Configuring install for your environment..OK
Setting permissions on files..OK
Checking for upgrades..6 found
Upgrading to 2.0.1..
Upgrading to 2.0.1..OK
Upgrading to 2.1beta1..
-> Running SQL script /usr/src/freepbx-2.1.1/upgrades/2.1beta1/tables.sql
-> Running PHP script /usr/src/freepbx-2.1.1/upgrades/2.1beta1/tables.php
-> Running PHP script /usr/src/freepbx-2.1.1/upgrades/2.1beta1/upgrade.php
Upgrading to 2.1beta1..OK
Upgrading to 2.1beta2..
Upgrading to 2.1beta2..OK
Upgrading to 2.1beta3..
-> Running PHP script /usr/src/freepbx-2.1.1/upgrades/2.1beta3/tables.php
Upgrading to 2.1beta3..OK
Upgrading to 2.1.0..
Upgrading to 2.1.0..OK
Upgrading to 2.1.1..
Upgrading to 2.1.1..OK
Generating AMP configs..
Generating Configurations.conf..
Generating AMP configs..OK
Restarting Flash Operator Panel..OK
Please Reload Asterisk by visiting http://200.36.111.9/admin
root@NEPTUNO:/usr/src/freepbx-2.1.1# sudo asterisk -gvvvvvvvvc
Asterisk 1.4.2, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Found
Warning! Asterisk is not thread safe.
== Parsing '/etc/asterisk/logger.conf': Found
Asterisk Event Logger Started /var/log/asterisk/event_log
Asterisk Dynamic Loader Starting:
== Parsing '/etc/asterisk/modules.conf': Found
== Parsing '/etc/asterisk/dnsmgr.conf': Found
== Parsing '/etc/asterisk/http.conf': Found
== Manager registered action Ping
== Manager registered action Events
== Manager registered action Logoff
== Manager registered action Hangup
== Manager registered action Status
== Manager registered action Setvar
== Manager registered action Getvar
== Manager registered action GetConfig
== Manager registered action UpdateConfig
== Manager registered action Redirect
== Manager registered action Originate
== Manager registered action Command
== Manager registered action ExtensionState
== Manager registered action AbsoluteTimeout
== Manager registered action MailboxStatus
== Manager registered action MailboxCount
== Manager registered action ListCommands
== Manager registered action UserEvent
== Manager registered action WaitEvent
== Parsing '/etc/asterisk/manager.conf': Found
Asterisk Management interface listening on port 5038
== Parsing '/etc/asterisk/cdr.conf': Found
== Parsing '/etc/asterisk/rtp.conf': Found
== RTP Allocating from port range 10000 -> 20000
== Parsing '/etc/asterisk/udptl.conf': Found
== UDPTL allocating from port range 4000 -> 4999
Asterisk PBX Core Initializing
Registering builtin applications:
[Answer]
== Registered application 'Answer'
[BackGround]
== Registered application 'BackGround'
[Busy]
== Registered application 'Busy'
[Congestion]
== Registered application 'Congestion'
[Goto]
== Registered application 'Goto'
[GotoIf]
== Registered application 'GotoIf'
[GotoIfTime]
== Registered application 'GotoIfTime'
[ExecIfTime]
== Registered application 'ExecIfTime'
[Hangup]
== Registered application 'Hangup'
[NoOp]
== Registered application 'NoOp'
[Progress]
== Registered application 'Progress'
[ResetCDR]
== Registered application 'ResetCDR'
[Ringing]
== Registered application 'Ringing'
[SayNumber]
== Registered application 'SayNumber'
[SayDigits]
== Registered application 'SayDigits'
[SayAlpha]
== Registered application 'SayAlpha'
[SayPhonetic]
== Registered application 'SayPhonetic'
[SetAMAFlags]
== Registered application 'SetAMAFlags'
[SetGlobalVar]
== Registered application 'SetGlobalVar'
[Set]
== Registered application 'Set'
[ImportVar]
== Registered application 'ImportVar'
[Wait]
== Registered application 'Wait'
[WaitExten]
== Registered application 'WaitExten'
== Manager registered action DBGet
== Manager registered action DBPut
== Parsing '/etc/asterisk/enum.conf': Found
Asterisk Dynamic Loader Starting:
== Parsing '/etc/asterisk/modules.conf': Found
== Registered application 'MusicOnHold'
== Registered application 'WaitMusicOnHold'
== Registered application 'SetMusicOnHold'
== Registered application 'StartMusicOnHold'
== Registered application 'StopMusicOnHold'
== Parsing '/etc/asterisk/musiconhold.conf': Found
res_musiconhold.so => (Music On Hold Resource)
== Parsing '/etc/asterisk/watchdog.conf': Found
res_watchdog.so => (Watchdog Resource)
== Parsing '/etc/asterisk/adsi.conf': Found
res_adsi.so => (ADSI Resource)
== Parsing '/etc/asterisk/esel.conf': Found
res_esel.so => (Extension State Export Logic (E.S.E.L.) Resource)
res_speech.so => (Generic Speech Recognition API)
== Registered application 'Monitor'
== Registered application 'StopMonitor'
== Registered application 'ChangeMonitor'
== Registered application 'PauseMonitor'
== Registered application 'UnpauseMonitor'
== Manager registered action Monitor
== Manager registered action StopMonitor
== Manager registered action ChangeMonitor
== Manager registered action PauseMonitor
== Manager registered action UnpauseMonitor
res_monitor.so => (Call Monitoring Resource)
== Registered application 'Segfault'
app_segfault.so => (Application for crashing Asterisk with a segmentation fault)
== Parsing '/etc/asterisk/res_snmp.conf': Found
Loading [Sub]Agent Module
res_snmp.so => (SNMP [Sub]Agent for Asterisk)
res_config_odbc loaded.
res_config_odbc.so => (ODBC Configuration)
== Registered application 'StealChan'
== Registered application 'PickupChan'
== Registered application 'PickDown'
== Registered application 'Steal'
== Registered application 'PickUp'
app_pickup.so => (PickUp/PickDown/Steal/PickupChan/StealChan)
== Parsing '/etc/asterisk/res_pgsql.conf': Found
Postgresql RealTime driver loaded.
res_config_pgsql.so => (PostgreSQL RealTime Configuration Driver)
== Parsing '/etc/asterisk/res_odbc.conf': Found
res_odbc.so => (ODBC Resource)
== Parsing '/etc/asterisk/smdi.conf': Found
== Parsing '/etc/asterisk/indications.conf': Found
-- Registered indication country 'us'
-- Registered indication country 'au'
-- Registered indication country 'fr'
-- Registered indication country 'de'
-- Registered indication country 'nl'
-- Registered indication country 'uk'
-- Registered indication country 'fi'
-- Registered indication country 'no'
-- Registered indication country 'br'
-- Registered indication country 'za'
-- Registered indication country 'it'
-- Setting default indication country to 'us'
== Registered application 'PlayTones'
== Registered application 'StopPlayTones'
res_indications.so => (Indications Resource)
== Parsing '/etc/asterisk/features.conf': Found
== Remapping feature One Touch Monitor (automon) to sequence '*1'
-- Registered extension context 'parkedcalls'
-- Added extension '70' priority 1 to parkedcalls
== Registered application 'ParkedCall'
== Registered application 'Park'
== Manager registered action ParkedCalls
== Manager registered action Park
res_features.so => (Call Features Resource)
-- Loaded PUBLIC key 'iaxtel'
-- Loaded PUBLIC key 'freeworlddialup'
res_crypto.so => (Cryptographic Digital Signatures)
== Parsing '/etc/asterisk/jabber.conf': Found
== Manager registered action JabberSend
== Registered application 'JabberSend'
== Registered application 'JabberStatus'
res_jabber.so => (AJI - Asterisk Jabber Interface)
== Registered file format wav, extension(s) wav
format_wav.so => (Microsoft WAV format (8000Hz Signed Linear))
== Registered file format pcm, extension(s) pcm|ulaw|ul|mu
== Registered file format alaw, extension(s) alaw|al
== Registered file format au, extension(s) au
== Registered file format g722, extension(s) g722
format_pcm.so => (Raw/Sun uLaw/ALaw 8KHz Audio support (PCM,PCMA,AU) and G.722 16Khz Audio Support)
== Registered file format mp3, extension(s) mp3
format_mp3.so => (MP3 format [Any rate but 8000hz mono is optimal])
== Registered application 'Dial'
== Registered application 'RetryDial'
app_dial.so => (Dialing Application)
== Registered custom function BASE64_ENCODE
== Registered custom function BASE64_DECODE
func_base64.so => (base64 encode/decode dialplan functions)
== Registered custom function IAXPEER
== Registered application 'IAX2Provision'
== Manager registered action IAXpeers
== Manager registered action IAXnetstats
== Parsing '/etc/asterisk/iax.conf': Found
== Using TOS bits 0
== Binding IAX2 to '0.0.0.0:4569'
== Parsing '/etc/asterisk/users.conf': Found
== Registered channel type 'IAX2' (Inter Asterisk eXchange Driver (Ver 2))
== 10 helper threaads started
== IAX Ready and Listening
== Loaded firmware 'iaxy.bin'
== Parsing '/etc/asterisk/iaxprov.conf': Found
-- Loaded provisioning template 'default'
chan_iax2.so => (Inter Asterisk eXchange (Ver 2))
== Manager registered action PlayDTMF
== Registered application 'SendDTMF'
app_senddtmf.so => (Send DTMF digits Application)
== Registered application 'MixMonitor'
== Registered application 'StopMixMonitor'
app_mixmonitor.so => (Mixed Audio Monitoring Application)
== Registered application 'Log'
== Registered application 'Verbose'
app_verbose.so => (Send verbose output)
== Registered application 'SpeechCreate'
== Registered application 'SpeechLoadGrammar'
== Registered application 'SpeechUnloadGrammar'
== Registered application 'SpeechActivateGrammar'
== Registered application 'SpeechDeactivateGrammar'
== Registered application 'SpeechStart'
== Registered application 'SpeechBackground'
== Registered application 'SpeechDestroy'
== Registered application 'SpeechProcessingSound'
== Registered custom function SPEECH
== Registered custom function SPEECH_SCORE
== Registered custom function SPEECH_TEXT
== Registered custom function SPEECH_GRAMMAR
== Registered custom function SPEECH_ENGINE
app_speech_utils.so => (Dialplan Speech Applications)
== Registered application 'ZapBarge'
app_zapbarge.so => (Barge in on Zap channel application)
== Parsing '/etc/asterisk/cdr.conf': Found
cdr_radius.so => (RADIUS CDR Backend)
== Registered custom function DB
== Registered custom function DB_EXISTS
== Registered custom function DB_DELETE
func_db.so => (Database (astdb) related dialplan functions)
== Parsing '/etc/asterisk/codecs.conf': Found
-- codec_ulaw: using generic PLC
== Registered translator 'ulawtolin' from format ulaw to slin, cost 1
== Registered translator 'lintoulaw' from format slin to ulaw, cost 1
codec_ulaw.so => (mu-Law Coder/Decoder)
== Registered application 'UserEvent'
app_userevent.so => (Custom User Event Application)
== Registered application 'Flash'
app_flash.so => (Flash channel application)
== Registered application 'NoCDR'
app_cdr.so => (Tell Asterisk to not maintain a CDR for the current call)
== Registered translator 'alawtoulaw' from format alaw to ulaw, cost 1
== Registered translator 'ulawtoalaw' from format ulaw to alaw, cost 1
codec_a_mu.so => (A-law and Mulaw direct Coder/Decoder)
== Parsing '/etc/asterisk/cdr_tds.conf': Found
== Registered translator 'ilbctolin' from format ilbc to slin, cost 3
== Registered translator 'lintoilbc' from format slin to ilbc, cost 36
codec_ilbc.so => (iLBC Coder/Decoder)
== Registered file format g729, extension(s) g729
format_g729.so => (Raw G729 data)
== Registered application 'DumpChan'
app_dumpchan.so => (Dump Info About The Calling Channel)
== Parsing '/etc/asterisk/func_odbc.conf': Found
== Registered custom function ODBC_SQL
== Registered custom function ODBC_ANTIGF
== Registered custom function ODBC_PRESENCE
== Registered custom function SQL_ESC
func_odbc.so => (ODBC lookups)
== Parsing '/etc/asterisk/skinny.conf': Found
== Skinny listening on 0.0.0.0:2000
== Registered channel type 'Skinny' (Skinny Client Control Protocol (Skinny))
== Registered application 'RealTimeUpdate'
== Registered application 'RealTime'
app_realtime.so => (Realtime Data Lookup/Rewrite)
== Registered application 'DISA'
app_disa.so => (DISA (Direct Inward System Access) Application)
== Registered application 'LookupCIDName'
app_lookupcidname.so => (Look up CallerID Name from local database)
== Registered custom function TIMEOUT
func_timeout.so => (Channel timeout dialplan functions)
== Parsing '/etc/asterisk/vpb.conf': Found
Fallo de segmentación (core dumped)

David dijo...

Te agradecería mucho Marcela si me indicas que archivo(s) debo descargar para luego ir a mi servidor y a mi cliente e instalar la GUI. Recuerda que no poseo en ambos casos acceso directo a internet. Muchas gracias, nos eres de mucha ayuda a todos nosotros los principiantes en este tema.

Ing. Marcela Bonell dijo...

David
Los archivos que debes desargar lo dice en el manual en la parte que dice "Ahora es tiempo de instalar Asterisk-GUI" apartir de ahi se configura la GUI, hazlo y me cuentas. :)

Ing. Marcela Bonell dijo...

Liz el Fallo de segmentación (core dumped) es un error que indica que durante la ejecucion de asterisk esta pasando algo que hace que la ejecucion "truene", puede ser que algun paquete este causando el conflicto, instalaste otros paquetes o addons de asterisk que no aparecen en mi manual?? para poder ayudarte necesito saber que hiciste

David dijo...

Hola Marcela, mira cuando pongo el comando :
root@Macross:/usr/src/asterisk-addons-1.4.6# svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui

Me sale:
svn: requerimiento PROPFIND falló en '/svn/asterisk-gui/trunk'
svn: PROPFIND de '/svn/asterisk-gui/trunk': No se pudo resolver el nombre del host `svn.digium.com': Anfitrión no encontrado (http://svn.digium.com)

¿A qué se deberá?.
Gracias
David

Ing. Marcela Bonell dijo...

Bueno David, parece que esta fallando el servidor svn de digium asi que trata de bajar todos los archivos de http://svn.digium.com/svn/asterisk-gui/trunk/ y metelos en una carpeta asterisk-gui y ahi haz los pasos del manual y me dices si te sirvio eso... y si no pues me avisas para ver si puedo pasartelos yo. suerte :)

Yuynan Ordoñez Vergara dijo...

no funciona el repositorio de asterisk-gui
svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui
gracias

Yuynan Ordoñez Vergara dijo...
Este comentario ha sido eliminado por un administrador del blog.
Ing. Marcela Bonell dijo...

Amigos yo les puedo pasar los archivos en vista que el servidor de repositorios no funciona, solo diganme :)

Unknown dijo...

claro amigo si eres tan amable me la puedes enviar al correo o mantarlos en algun otro lado mi e-mail es yuynan@gmail.com
gracias

Unknown dijo...

tengo problemas al ejecutar asterisk-gui cuando voy a entrar a la pagina de configuracion me sale el siguiente mensaje
Not Found

The requested URL was not found on this server.
Asterisk Server

quien me puede ayudar a solucionar este problema.

Ing. Marcela Bonell dijo...

yuynan ya consegiste los archivos para la gui??
y si es asi explica mas tu problema porque no entiendo muy bien, dime lo que hiciste

David dijo...

¿Servidor sin softphone?

Hola Marcela, una consulta tengo instalado Asterisk en una PC con Ubuntu donde además poseo un softphone de nombre Zoiper, esta PC será mi servidor. En otra PC tengo WinXP con un zoiper, esta será mi usuario. Ambas PCs están conectadas por cable directo (punto a punto). Todo lo estoy tratando usando el protocolo IAX.
Bueno cuando hago una llamada desde mi usuario hacia el softphone de mi servidor, todo bien. Pero cuando llamo desde el servidor hacia mi cliente, llama al propio softphone en la linea 2. Además no funciona el timeout en ninguno de los casos
Estuve leyendo por allí, y me quedó una duda. ¿Se puede instalar un softphone en el servidor y hacer que todo funcione bien como lo presente arriba?

Muchas gracias

Adjunto
; =========================
; IAX.CONF
; =========================
[general]

bindaddr=192.168.1.77 ; El IP de mi servidor
bandwidth=high ;

; ----------- CODECS -------------
disallow=all
allow=gsm
allow=g723
allow=g729
allow=ulaw

autokill=yes

[9077] ;El usuario que está instalado en el servidor con Ubuntu
type=friend
secret=secreto
context=internos
callerid=Anexo interno 77
auth=plaintext
qualify=yes ; Tiempo de 200 ms para recibir respuesta
host=192.168.1.77

[9066] ; El usuario que está instalado en mi cliente Windows
type=friend
secret=secreto
context=internos
callerid=Anexo interno 66
auth=plaintext
qualify=yes ; Tiempo de 200 ms para recibir respuesta
host=192.168.1.66

; =========================
; EXTENSIONS.CONF
; =========================


[general]
autofallthrough=yes

[globals]


[default]

[internos]
exten => 9077,1,NoOp()
exten => 9077,2,Dial(IAX2/9077,20)
exten => 9077,3,Hangup()

exten => 9066,1,NoOp()
exten => 9066,2,Dial(IAX2/9066,10)
exten => 9066,3,Hangup()

exten => 9000,1,Wait(1)
exten => 9000,2,Answer
exten => 9000,3,Playback(demo-congrats)
exten => 9000,4,Hangup

exten => 600,1,Playback(demo-echotest) ; Let them know what's going on
exten => 600,n,Echo ; Do the echo test
exten => 600,n,Playback(demo-echodone) ; Let them know it's over
exten => 600,n,Goto(s,6) ; Start over;

exten => t,1,Hangup() ; Extensión especial (Timeout)
exten => i,1,Hangup() ; Extensión especial (Inválido)
exten => s,1,Hangup() ; Extensión especial (Sin Destino)

David dijo...

¿Servidor sin softphone? - SI SE PUEDE

Hola a todos, quería compartir como he solucionado mi problema. En realidad es bien simple, solo he debido cambiar el puerto por defecto en el softphone instalado en mi servidor y ya, FUNCIONA.
Bueno espero que les sea de utilidad.

vlacK dijo...

Buenas noches, acabo de instalar Asterisk y Asterisk-GUI en Ubuntu 8.04 al parecer todo se instaló bien, ya que segui los pasos de un tutorial que encontré en internet, instalé los paquetes que pedia el tutorial:

- zaptel-1.4.2.tar.gz
- libpri-1.4.0.tar.gz
- asterisk-1.4.4.tar.gz
- asterisk-addons-1.4.1.tar.gz

Y porsupuesto asterisk-gui

seguí los pasos correctamente:

1. svn co http://svn.digium.com/svn/asterisk-gui/branches/2.0 asterisk-gui
2. cd asterisk-gui
3. sh configure && make && make install

Mi configuracion es la siguiente:

http.conf

[general]
enabled=yes
enablestatic=yes

manager.conf

[general]
displaysystemname = yes
enabled = yes
webenabled = yes
port = 5038
;httptimeout = 60
bindaddr = 0.0.0.0

[admin]
secret = prueba
read = system,call,log,verbose,command,agent,config
write = system,call,log,verbose,command,agent,config

Pero cuando quiero acceder a http://localhost:8088/asterisk/static/config/cfgbasic.html

Me sale en Firefox el siguiente error:

Not Found

The requested URL was not found on this server.
Asterisk Server

Espero me puedan ayudar a resolver esto.

Saludos.

Ing. Marcela Bonell dijo...

ya arrancaste el servidor asterisk?

FREDWATER dijo...

SOY NESTOR
NECESITO TU AYUDA HACE POCO TENGO EL UBUNTU 8.04.
QUIERO INSTALAR EL ASTERISK PERO CUANDO LE DOY EL COMANDO nestor@home:usr/src$ wget -c ftp.digium.com/pub/libpri/releases/libpri-1.4.1.tar.gz
me aparece --00:17:44-- http://ftp.digium.com/pub/libpri/releases/libpri-1.4.1.tar.gz
→ ´zapte-1.4.1.tar.gs´
resolviando ftp.difium.com... 216.27.40.102
conectando a ftp.digium.com|216.27.40.102|:80... conectando
peticion HTTP enviada, esperando respuesta... 302 Found
ubicacion: http://ftp.digium.com/ [siguiente]
--00:17:44-- http://ftp.digium.com/
►´index html´
reusando conexion existente a ftp.digium.com:80.
peticion HTTP enviada, esperando respuesta...416 requested range not satisfiable

el archivo ya se ha obtenido por completo; no hay nada que hacer

lo extraño es que me pasa lo mismo con los

wget -c ftp.digium.com/pub/libpri/releases/libpri-1.4.0.tar.gz

wget -c ftp.digium.com/pub/asterisk/releases/asterisk-1.4.2.tar.gz

wget -c ftp.digium.com/pub/asterisk/releases/asterisk-addons-1.4.0.tar.gz

y luego cuando voy a ejecutar sudo aptitude install openssh-server build-essential automake1.9 autoconf bison flex libtool me aparece

E: tipo ´0´ desconocido en la linea 1 de la lista de fuentes /etc/apt/sources.list

de nuevo

E: tipo ´0´ desconocido en la linea 1 de la lista de fuentes /etc/apt/sources.list

luego

E: tipo ´0´ desconocido en la linea 1 de la lista de fuentes /etc/apt/sources.list

de nuevo

E: tipo ´0´ desconocido en la linea 1 de la lista de fuentes /etc/apt/sources.list

por ultimo

E: tipo ´0´ desconocido en la linea 1 de la lista de fuentes /etc/apt/sources.list

no se que pasa serias tan amable de ayudarme te lo agradeceria de todo corazon.

Liz dijo...

hola ya cuento con la interfaz de asterik, pero ahora no se como configurar mi tarjeta de la marca Sangoma Analogica A200. A400. 4 líneas analógicas (FXO/FXS)No la detecta... hay que configurarla?
o que debo hacer?....Gracias por sus respuestas

SCJP Victor Sánchez dijo...

Hola FREDWATER, bueno parce que hay algun error en tu /etc/apt/sources.list, te recomiendo que verifiques las lineas que anexaste para la instalación de:
->openssh-server
->bison
->flex

SCJP Victor Sánchez dijo...

Hola liz, lo primero que te recomiendo es buscar los drives de la tarjeta que compraste, te recomiendo que primero busques en la página del fabricante, despues de descargarte los drivers es necesario instalarlos, para que asi te reconozca el nuevo hardware

Santiago Becerra dijo...

He seguido los pasos de la instalación de asterisk-gui pero no parece funcionar. De hecho, con netstat -a no veo que haya nadie escuchando por el puerto 8088 como era de esperar. En el 5038 sí que se puede hacer telnet

Unknown dijo...

Muchas gracias por tu tutorial esta muy bueno pero tengo un pequeño error ya habilite lo que me dijiste en el manager.conf pero al ingresar en el navegador me sale lo siguiente

Please enable manager access.

Most often you should be able to do that by setting 'enable = yes' in manager.conf under the [general] context, and reloading asterisk.

pero si le veo en el archivo el enaabled esta en yes que podra ser ?? por tu ayuda muchas gracias

Esteban dijo...

Estimada...
Muy bueno tu tutorial, pero tengo un problema por demas extraño:
Sigo los pasos al pie de la letra de este y otros tutoriales similares y todo marcha bien durante la instalación, hasta quedan cargados los modulos para la tarjeta openvox, todo muy bonito, pero no estan por ningún lado los archivos de configuración de asterisk, el /etc/asterisk esta totalmente vacío (¿?)
A pesar de eso el servidor está corriendo, tengo consola CLI y todo (mas ?¿)
Si luego corro apt-get install asterisk ahi aparecen los archivos de configuración, pero no creo que sea para nada normal la situación.
Algo parecido pasa con zaptel ya que a pesar de que esta reconocida la placa, por ejemplo si quiero ejecutar "genzaptelconf" me dice que no esta isntalado zaptel, por lo que de nuevo si hago apt-get install zaptel se corrije todo y aparece lo que no está.
Si pudieras hecharme una mano te lo estaría muy agradecido !
Saludos...

pamchi dijo...

Buenos dias, el manual esta muy bueno, ya he logrado la instalación del asterisk-gui, ahora quiero saber donde puedo encontrar alguna información sobre como configurar extenciones y llamadas salientes a travez de la e1.

Saludos

Ing. Marcela Bonell dijo...

Checalo PAMCHI http://www.asterisk-peru.com/node/1410 y dime si te serivio