[AsteriskBrasil] problemas com monast
Diego Aguirre (DagMoller)
dag.voip em infodag.com.br
Quarta Novembro 25 16:33:45 BRST 2009
Adam,
cade as permissões para o usuario monast no manager.conf? sem elas num funciona né!!!
coloca na config do usuario monast:
read=system,call,log,verbose,command,agent,user,config,originate,reporting
write=system,call,log,verbose,command,agent,user,config,originate,reporting
adam felix escreveu:
>
> Pessoal
>
> Estou tendo problemas para instalar o monast, já dei uma olhada no
> arquivo INSTALL mas achei ele muito vago, fiz algumas configurações e
> estou tendo o erro mencionado abaixo, estou postando tambem meu
> monast.conf e manager.conf.
> Minha versão de asterisk é: 1.4.26.3.
> Se alguem tiver algum tutorial ou dica para me ajudar agradeço.
>
> Erro do monast
>
>
> [Mon Nov 23 00:22:28 2009] NOTICE :: AsteriskManager.close :: Finishing...
> [Mon Nov 23 00:22:28 2009] NOTICE :: AsteriskManager.logoff :: Logging
> off...
> [Mon Nov 23 00:22:30 2009] NOTICE :: AsteriskManager.disconnect ::
> Closing connection to 127.0.0.1:5038
> [Mon Nov 23 00:22:31 2009] NOTICE :: Monast :: Finished...
> debian:/var/www/monast-1.4/pymon# ./monast.py
> [Mon Nov 23 00:22:54 2009] NOTICE :: MonAst :: Initializing...
> [Mon Nov 23 00:22:54 2009] NOTICE :: MonAst.parseConfig :: Parsing config
> [Mon Nov 23 00:22:54 2009] NOTICE :: AsteriskManager :: Initializing...
> [Mon Nov 23 00:22:55 2009] NOTICE :: AsteriskManager.connect :: Trying
> to connect to 127.0.0.1:5038
> [Mon Nov 23 00:22:55 2009] NOTICE :: AsteriskManager.login :: Logging
> in...
> [Mon Nov 23 00:22:55 2009] NOTICE :: AsteriskManager.threadRecvQueue
> :: Authentication accepted
> [Mon Nov 23 00:22:55 2009] ERROR :: AsteriskManager.threadRecvQueue
> :: Unhandled Exception in ActionHandler for ActionID ID.000002
>
>>> Traceback (most recent call last):
>>> File "/var/www/monast-1.4/pymon/amapi/AsteriskManager.py", line
> 213, in threadRecvQueue
>>> self.actionHandlers[ActionID](msg.split('\r\n'))
>>> File "./monast.py", line 1641, in handlerParseSkypeUsers
>>> response = lines[3]
>>> IndexError: list index out of range
> [Mon Nov 23 00:22:55 2009] ERROR :: AsteriskManager.threadRecvQueue
> :: Unhandled Exception in ActionHandler for ActionID IAX2/demo
>>> Traceback (most recent call last):
>>> File "/var/www/monast-1.4/pymon/amapi/AsteriskManager.py", line
> 213, in threadRecvQueue
>>> self.actionHandlers[ActionID](msg.split('\r\n'))
>>> File "./monast.py", line 1588, in _defaultParseConfigPeers
>>> result = lines[3]
>>> IndexError: list index out of range
> [Mon Nov 23 00:23:00 2009] NOTICE :: MonAst.threadClient
> (threadClient-0.944669036951) :: New client session:
> 465da6a90fee363fb9e63bbda091b22d
>
>
>
>
> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
>
> manager.conf
>
> [general]
> displaysystemname = yes
> enabled = yes
> ;webenabled = yes
> port = 5038
>
> ;httptimeout = 60
> ; a) httptimeout sets the Max-Age of the http cookie
> ; b) httptimeout is the amount of time the webserver waits
> ; on a action=waitevent request (actually its httptimeout-10)
> ; c) httptimeout is also the amount of time the webserver keeps
> ; a http session alive after completing a successful action
>
> bindaddr = 0.0.0.0
> ;displayconnects = yes
> ;
> ; Add a Unix epoch timestamp to events (not action responses)
> ;
> ;timestampevents = yes
>
> ;[mark]
> ;secret = mysecret
> ;deny=0.0.0.0/0.0.0.0
> ;permit=209.16.236.73/255.255.255.0
> ;
> ; If the device connected via this user accepts input slowly,
> ; the timeout for writes to it can be increased to keep it
> ; from being disconnected (value is in milliseconds)
> ;
> ; writetimeout = 100
> ;
> ; Authorization for various classes
> ;read = system,call,log,verbose,command,agent,user,config
> ;write = system,call,log,verbose,command,agent,user,config
>
> [monast]
> secret = 1234
> ;deny=0.0.0.0/0.0.0.0
> permit=0.0.0.0/0.0.0.0
> ;permit=209.16.236.73/255.255.255.0
>
>
> //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
>
>
> monast.conf
>
>
> [global]
>
> # Dados para conectar ao AMI
> hostname = localhost
> hostport = 5038
> username = monast
> password = 1234
>
> # Bind client connetions on host:port
> bind_host = 127.0.0.1
> bind_port = 5039
>
> # Default user context
> default_context = default
>
> # Context to use in transfer calls
> transfer_context = default
>
> # Context and prefix for meetme
> meetme_context = default
> meetme_prefix =
>
> [users]
> # sort peers (options: peer, callerid, calleridname, calleridnum)
> sortby = callerid
>
> # defualt show/hide
> default = show
>
> # hide peer when default = show
> SIP/user-1 = hide
>
> # show peer when default = hide
> SIP/user-2 = show
>
> # always show peer.
> SIP/user-3 = force
>
> # force CallerID (only in forced mode)
> SIP/user-4 = force,Diego Aguirre <5555>
>
>
> //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
>
>
>
> ------------------------------------------------------------------------
> Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10
> <http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/>
> - Celebridades
> <http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/celebridades/>
> - Música
> <http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/m%C3%BAsica/>
> - Esportes
> <http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/esportes/>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> A Redfone é líder no fornecimento de bridges TDMoE <-> E1
> - Valor similar ao de placas E1 PCI;
> - Não há problemas de compatibilidade com barramento PCI;
> - Possibilitam a construção de soluções de alta disponibilidade(dois
> servidores compartilham o mesmo E1)
> Conheça mais sobre este produto em www.red-fone.com
> _______________________________________________
> Lista de discussões AsteriskBrasil.org
> AsteriskBrasil em listas.asteriskbrasil.org
> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
--
Diego Aguirre (DagMoller)
Infodag Consultoria
FWD#: 459696
Enum#: +55 21 8871-4916 (e164.org)
DUNDi-br#: 21 8871-4916
Mais detalhes sobre a lista de discussão AsteriskBrasil