[AsteriskBrasil] Monast não responde após algum tempo/operação

Diego Aguirre (DagMoller) dag.voip em oi.com.br
Terça Dezembro 16 10:44:31 BRST 2008


João,

Qual versão do asterisk?
Atualmente o MonAst apenas funciona corretamente no asterisk 1.4

João Marcelo escreveu:
> Olá, gostaria da ajuda de vocês para um problema que estou tendo no MONAST.
> 
> Fiz a instalação segundo o INSTALL porém o monast funciona por algum
> tempo, depois simplesmente congela. Não sei se é alguma operação
> específica que está ocasionado este erro. Abaixo segue o log:
> 
> [Mon Dec 15 17:49:19 2008] NOTICE :: MonAst :: Initializing...
> [Mon Dec 15 17:49:19 2008] NOTICE :: AsteriskManager :: Initializing...
> [Mon Dec 15 17:49:20 2008] NOTICE :: AsteriskManager.connect :: Trying
> to connect to localhost:5038
> [Mon Dec 15 17:49:20 2008] NOTICE :: AsteriskManager.login :: Logging in...
> [Mon Dec 15 17:49:20 2008] NOTICE :: AsteriskManager.threadRecvQueue ::
> Authentication accepted
> [Mon Dec 15 17:49:24 2008] NOTICE :: MonAst.threadClient
> (threadClient-0.201588904907) :: New client session:
> h0209q00qp5aepp9aracehaa83
> [Mon Dec 15 17:49:46 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Newchannel
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 535, in handlerNewchannel
> CallerIDNum = dic['CallerIDNum']
> KeyError: 'CallerIDNum'
> [Mon Dec 15 17:49:46 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Newcallerid
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 697, in handlerNewcallerid
> self.channels[Uniqueid]['CallerIDName'] = CallerIDName
> KeyError: '1229370580.0'
> [Mon Dec 15 17:51:30 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Newchannel
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 535, in handlerNewchannel
> CallerIDNum = dic['CallerIDNum']
> KeyError: 'CallerIDNum'
> [Mon Dec 15 17:51:30 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Newcallerid
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 697, in handlerNewcallerid
> self.channels[Uniqueid]['CallerIDName'] = CallerIDName
> KeyError: '1229370686.1'
> [Mon Dec 15 17:51:31 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Status
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 871, in handlerStatus
> CallerIDNum = dic['CallerIDNum']
> KeyError: 'CallerIDNum'
> [Mon Dec 15 17:52:08 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Newchannel
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 535, in handlerNewchannel
> CallerIDNum = dic['CallerIDNum']
> KeyError: 'CallerIDNum'
> [Mon Dec 15 17:52:08 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Newcallerid
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 697, in handlerNewcallerid
> self.channels[Uniqueid]['CallerIDName'] = CallerIDName
> KeyError: '1229370728.2'
> [Mon Dec 15 17:52:31 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Status
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 871, in handlerStatus
> CallerIDNum = dic['CallerIDNum']
> KeyError: 'CallerIDNum'
> [Mon Dec 15 17:52:31 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Status
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 871, in handlerStatus
> CallerIDNum = dic['CallerIDNum']
> KeyError: 'CallerIDNum'
> [Mon Dec 15 17:53:44 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Newchannel
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 535, in handlerNewchannel
> CallerIDNum = dic['CallerIDNum']
> KeyError: 'CallerIDNum'
> [Mon Dec 15 17:53:44 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Newcallerid
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 697, in handlerNewcallerid
> self.channels[Uniqueid]['CallerIDName'] = CallerIDName
> KeyError: '1229370822.3'
> [Mon Dec 15 17:54:06 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Newchannel
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 535, in handlerNewchannel
> CallerIDNum = dic['CallerIDNum']
> KeyError: 'CallerIDNum'
> [Mon Dec 15 17:54:06 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Newcallerid
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 697, in handlerNewcallerid
> self.channels[Uniqueid]['CallerIDName'] = CallerIDName
> KeyError: '1229370846.4'
> [Mon Dec 15 17:54:31 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Status
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 871, in handlerStatus
> CallerIDNum = dic['CallerIDNum']
> KeyError: 'CallerIDNum'
> [Mon Dec 15 17:54:31 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Status
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 871, in handlerStatus
> CallerIDNum = dic['CallerIDNum']
> KeyError: 'CallerIDNum'
> [Mon Dec 15 17:55:31 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Status
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 871, in handlerStatus
> CallerIDNum = dic['CallerIDNum']
> KeyError: 'CallerIDNum'
> [Mon Dec 15 17:55:31 2008] ERROR :: AsteriskManager.threadRecvQueue ::
> Unhandled Exception in EventHandler for Event Status
> Traceback (most recent call last):
> File "/usr/src/monast/monast-0.7b/pymon/./amapi/AsteriskManager.py",
> line 190, in threadRecvQueue
> self.eventHandlers[event](msg.split('\r\n'))
> File "./monast.py", line 871, in handlerStatus
> CallerIDNum = dic['CallerIDNum']
> KeyError: 'CallerIDNum'
> [Mon Dec 15 18:09:21 2008] NOTICE :: MonAst.threadClientQueueRemover ::
> Removing dead client session: h0209q00qp5aepp9aracehaa83
> [Tue Dec 16 08:28:40 2008] NOTICE :: MonAst.threadClient
> (threadClient-0.997585718222) :: New client session:
> h0209q00qp5aepp9aracehaa83
> [Tue Dec 16 08:30:46 2008] WARNING :: AsteriskManager.threadPing :: Ping
> timeout after 60 seconds. Reconnecting...
> [Tue Dec 16 08:30:46 2008] NOTICE :: AsteriskManager.disconnect ::
> Closing connection to localhost:5038
> [Tue Dec 16 08:30:48 2008] NOTICE :: AsteriskManager.connect :: Trying
> to connect to localhost:5038
> [Tue Dec 16 08:30:48 2008] NOTICE :: AsteriskManager.login :: Logging in...
> [Tue Dec 16 08:31:49 2008] WARNING :: AsteriskManager.threadPing :: Ping
> timeout after 60 seconds. Reconnecting...
> [Tue Dec 16 08:31:49 2008] NOTICE :: AsteriskManager.disconnect ::
> Closing connection to localhost:5038
> [Tue Dec 16 08:31:49 2008] NOTICE :: AsteriskManager.connect :: Trying
> to connect to localhost:5038
> [Tue Dec 16 08:31:49 2008] NOTICE :: AsteriskManager.login :: Logging in...
> [Tue Dec 16 08:32:50 2008] WARNING :: AsteriskManager.threadPing :: Ping
> timeout after 60 seconds. Reconnecting...
> [Tue Dec 16 08:32:50 2008] NOTICE :: AsteriskManager.disconnect ::
> Closing connection to localhost:5038
> [Tue Dec 16 08:32:50 2008] NOTICE :: AsteriskManager.connect :: Trying
> to connect to localhost:5038
> [Tue Dec 16 08:32:50 2008] NOTICE :: AsteriskManager.login :: Logging in...
> [Tue Dec 16 08:33:51 2008] WARNING :: AsteriskManager.threadPing :: Ping
> timeout after 60 seconds. Reconnecting...
> [Tue Dec 16 08:33:51 2008] NOTICE :: AsteriskManager.disconnect ::
> Closing connection to localhost:5038
> [Tue Dec 16 08:33:51 2008] NOTICE :: AsteriskManager.connect :: Trying
> to connect to localhost:5038
> [Tue Dec 16 08:33:51 2008] NOTICE :: AsteriskManager.login :: Logging in...
> [Tue Dec 16 08:34:52 2008] WARNING :: AsteriskManager.threadPing :: Ping
> timeout after 60 seconds. Reconnecting...
> [Tue Dec 16 08:34:52 2008] NOTICE :: AsteriskManager.disconnect ::
> Closing connection to localhost:5038
> [Tue Dec 16 08:34:52 2008] NOTICE :: AsteriskManager.connect :: Trying
> to connect to localhost:5038
> [Tue Dec 16 08:34:52 2008] NOTICE :: AsteriskManager.login :: Logging in...
> [Tue Dec 16 08:35:53 2008] WARNING :: AsteriskManager.threadPing :: Ping
> timeout after 60 seconds. Reconnecting...
> [Tue Dec 16 08:35:53 2008] NOTICE :: AsteriskManager.disconnect ::
> Closing connection to localhost:5038
> [Tue Dec 16 08:35:53 2008] NOTICE :: AsteriskManager.connect :: Trying
> to connect to localhost:5038
> [Tue Dec 16 08:35:53 2008] NOTICE :: AsteriskManager.login :: Logging in...
> 
>  
> 
> Meu cenário é o seguinte: Meucci, com A2Billing e Munin instalados,
> tenho cadastrado apenas 4 ou 5 ramais para teste, todos SIP. No arquivo
> httpd.conf em ./etc/apache2 adicionei o seguite:
> 
> Alias /monast "/usr/src/monast/monast"
> 
> <Directory "/usr/src/monast/monast">
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
> 
>  
> 
>  
> 
> Não achei necessário fazer qualquer alteração no meu /lib/config.php ,
> abaixo (apaguei os comentários para economizar espaço):
> 
> 
> <?php
> 
> /*
> 
> */
> 
> define("HOSTNAME", "localhost"); // monast.py hostname
> define("HOSTPORT", 5039); // monast.py port
> 
> define("MONAST_SOCKET_DURATION", 20); // 20 seconds
> define("MONAST_BROWSER_REFRESH", 60 * 10); // 10 minutes
> 
> define("MONAST_CALL_TIME", true); // enable or disable call timer
> 
> define("MONAST_CLI_TAB", true); // enable or disable Asterisk CLI TAB
> define("MONAST_DEBUG_TAB", true); // enable or disable debug TAB
> 
> ?>
> 
>  
> 
> Pesquisei bastante uma possível solução, porém esbarrei na pouca
> documentação sobre o Monast. Qualquer ajuda seria de grande valia.
> 
>  
> 
>  
> 
> Feliz Natal  a todos!
> 
>  
> 
> 
> João Marcelo Queiroz
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 2 a 4 de Dezembro - IPComm 2008
> Com presença de engenheiros da Digium e Jon "maddog" Hall.
> http://www.ipcomm2008.com.br
> 
> Compre uma camiseta da AsteriskBrasil.org!
> http://www.voipmania.com.br
> 
> Acesse o canal IRC de discussão sobre Asterisk em Português Brasileiro na rede Freenode.net: #asterisk-br
> _______________________________________________
> Lista de discussões AsteriskBrasil.org
> AsteriskBrasil em listas.asteriskbrasil.org
> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil

-- 
Diego Aguirre
Infodag - Informática
FWD#: 459696
Enum#: +55 21 8138-2710 (e164.org)
DUNDi-br#: 21 8138-2710 


Mais detalhes sobre a lista de discussão AsteriskBrasil