Logo Hardware.com.br
bfbicalho
bfbicalho Veterano Registrado
1.1K Mensagens 53 Curtidas

Asterisk no Ubuntu 11.04

#1 Por bfbicalho 31/08/2011 - 15:04
Boa tarde pessoal,

Estou precisando de uma ajuda de todos no asterisk.

Fiz a instalação do asterisk e ele está funcionando. fiz a configuração do mysql e tb está funcionando, porém eu não consigo acessar o FreePBX e muito meno o GUI. o meu apache funciona na porta 5000, pois a 8080 está sendo ocupada pelo asterisk sou novo no mundo do asterisk. Estou ainda "engatinhando" nos primeiros passos de configuração. somente consigo manusear o asterisk pelo shell e também pelo putty, quando estou no windows, pois eu tenho 2 computadores em rede.

eu tenho dois ramais internos:

1000 - admin
1001 - suporte

Eu consegui fazer o asterisk funcionar, porém estou tendo problemas para realizar chamadas entre ramais internos. eu fiz uns testes em épocas diferentes e tive 3 resultados diferentes:

As mensagens abaixo referem-se as tentativas de ligações aos ramais internos sem precisar acessar a telefonia comum.

leitura 1
-- Executing [1001@default:1] Macro("SIP/192.168.0.254-00000000", "stdexten,1001,SIP/1001&DAHDI/1") in new stack
[Aug 4 15:55:29] WARNING[26509]: app_macro.c:302 _macro_exec: No such context 'macro-stdexten' for macro 'stdexten'
-- Auto fallthrough, channel 'SIP/192.168.0.254-00000000' status is 'UNKNOWN'
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
-- Executing [1000@default:1] Dial("SIP/192.168.0.254-00000001", "SIP/1000&DAHDI/1") in new stack
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
-- Called 1000
[Aug 4 15:55:52] WARNING[26511]: app_dial.c:1745 dial_exec_full: Unable to create channel of type 'DAHDI' (cause 0 - Unknown)
== Spawn extension (default, 1000, 1) exited non-zero on 'SIP/192.168.0.254-00000001'
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
-- Executing [1001@default:1] Macro("SIP/192.168.0.254-00000003", "stdexten,1001,SIP/1001&DAHDI/1") in new stack
[Aug 4 15:57:41] WARNING[26513]: app_macro.c:302 _macro_exec: No such context 'macro-stdexten' for macro 'stdexten'
-- Auto fallthrough, channel 'SIP/192.168.0.254-00000003' status is 'UNKNOWN'
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
-- Executing [1000@default:1] Dial("SIP/192.168.0.254-00000004", "SIP/1000&DAHDI/1") in new stack
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
-- Called 1000
[Aug 4 16:00:40] WARNING[26612]: app_dial.c:1745 dial_exec_full: Unable to create channel of type 'DAHDI' (cause 0 - Unknown)
== Spawn extension (default, 1000, 1) exited non-zero on 'SIP/192.168.0.254-00000004'
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
[Aug 4 16:02:59] NOTICE[2119]: chan_sip.c:20059 handle_request_invite: Call from '' to extension '192*168*0*202' rejected because extension not found.

leitura 2
-- Executing [1000@default:1] Dial("SIP/192.168.0.254-00000000", "SIP/1000&D AHDI/1") in new stack
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
-- Called 1000
[Aug 4 17:16:30] WARNING[1278]: channel.c:4035 ast_request: No channel type reg istered for 'DAHDI'
[Aug 4 17:16:30] WARNING[1278]: app_dial.c:1745 dial_exec_full: Unable to creat e channel of type 'DAHDI' (cause 66 - Channel not implemented)
== Spawn extension (default, 1000, 1) exited non-zero on 'SIP/192.168.0.254-00000000'
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
-- Executing [1000@default:1] Dial("SIP/192.168.0.254-00000002", "SIP/1000&DAHDI/1") in new stack
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
-- Called 1000
[Aug 4 17:17:30] WARNING[1283]: channel.c:4035 ast_request: No channel type registered for 'DAHDI'
[Aug 4 17:17:30] WARNING[1283]: app_dial.c:1745 dial_exec_full: Unable to create channel of type 'DAHDI' (cause 66 - Channel not implemented)
== Spawn extension (default, 1000, 1) exited non-zero on 'SIP/192.168.0.254-00000002'
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
-- Executing [1001@default:1] Macro("SIP/192.168.0.254-00000004", "stdexten,1001,SIP/1001&DAHDI/1") in new stack
[Aug 4 17:18:19] WARNING[1285]: app_macro.c:302 _macro_exec: No such context 'macro-stdexten' for macro 'stdexten'
-- Auto fallthrough, channel 'SIP/192.168.0.254-00000004' status is 'UNKNOWN'

leitura 3
root@asterisk:~# asterisk -rvvvvvvvvvvvvvvv
Asterisk 1.6.2.6, Copyright (C) 1999 - 2010 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
Connected to Asterisk 1.6.2.6 currently running on asterisk (pid = 2134)
Verbosity was 0 and is now 15
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
[Aug 24 16:45:02] NOTICE[1792]: chan_sip.c:19978 handle_request_invite: Failed to authenticate device "bruno";tag=707afa12

Leitura 4
root@asterisk:~# asterisk -rvvvvvvvvvvvvvvv
Asterisk 1.6.2.6, Copyright (C) 1999 - 2010 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
== Binding sipusers to mysql/asterisk/sip_buddies
== Binding sippeers to mysql/asterisk/sip_buddies
Connected to Asterisk 1.6.2.6 currently running on asterisk (pid = 5003)
Verbosity was 0 and is now 15
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
[Aug 24 20:36:15] WARNING[5027]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 24 20:36:15] WARNING[5027]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 24 20:36:15] WARNING[5027]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 24 20:36:15] WARNING[5027]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 24 20:36:15] WARNING[5027]: res_config_mysql.c:431 realtime_multi_mysql: MySQL RealTime: Invalid database specified: 'asterisk' (check res_mysql.conf)
[Aug 24 20:36:15] WARNING[5027]: res_config_mysql.c:431 realtime_multi_mysql: MySQL RealTime: Invalid database specified: 'asterisk' (check res_mysql.conf)
[Aug 24 20:36:15] NOTICE[5027]: chan_sip.c:19978 handle_request_invite: Failed to authenticate device "bruno";tag=070f896e

leitura 5
root@asterisk:/# asterisk -rvvvvvvvvvvvvvvv
Asterisk 1.6.2.6, Copyright (C) 1999 - 2010 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
== Binding sipusers to mysql/asterisk/sip_buddies
== Binding sippeers to mysql/asterisk/sip_buddies
Connected to Asterisk 1.6.2.6 currently running on asterisk (pid = 21385)
Verbosity was 0 and is now 15
[Aug 29 12:00:52] NOTICE[21419]: chan_sip.c:22839 sip_poke_noanswer: Peer '1000' is now UNREACHABLE! Last qualify: 0
[Aug 29 12:00:52] WARNING[21419]: res_config_mysql.c:550 update_mysql: MySQL RealTime: Invalid database specified: 'asterisk' (check res_mysql.conf)
[Aug 29 12:00:52] NOTICE[21419]: chan_sip.c:22839 sip_poke_noanswer: Peer '1001' is now UNREACHABLE! Last qualify: 0
[Aug 29 12:00:52] WARNING[21419]: res_config_mysql.c:550 update_mysql: MySQL RealTime: Invalid database specified: 'asterisk' (check res_mysql.conf)
[Aug 29 12:01:02] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:02] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:02] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:02] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:16] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:16] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:16] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:16] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:30] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:30] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:30] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:30] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:44] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:44] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:44] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:44] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:58] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:58] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:58] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:01:58] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:02:12] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:02:12] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:02:12] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)
[Aug 29 12:02:12] WARNING[21419]: res_config_mysql.c:325 realtime_mysql: MySQL RealTime: Invalid database specified: asterisk (check res_mysql.conf)

Andei configurando canal para o dadhi e aparece esta mensagem abaixo:
Eu sei que para funcionar de uma maineira mais completa eu preciso ter uma placa E1, pois assim o dadhi funcionará, porém que quero fazer ele funcionar somente no sip e assim poder até mesmo ter uma comunicação interna com alguém diretamente.

alguém sabe o que está ocorrendo?

Quero muito colocar o meu asterisk para funcionar, pois tenho interesse em trabalhar na montagem e configuração deste servidor.

Alguém poderia me arrumar um modelo dos arquivos de configuração? pois já ví muitos tutoriais pela internet e até o presente momento não tive sucesso algum, ok?

Alguém pode me ajudar?

Obrigado pela ajuda.
© 1999-2024 Hardware.com.br. Todos os direitos reservados.
Imagem do Modal