From: FERNANDO V. <fvi...@ya...> - 2006-01-25 13:26:14
|
Hello, I hope that they can help me. My problem is the following one: Because the administration of the Asterisk server we do it remotely we decided to change the messages that we sent to console; it is to say instead of using sys.stderr.write These instructions we have changed by method verbose to them of Class AGI. The problem is that it falls, some VERBOSE do without problems but soon it is with verbose and it dies. Attached part of I cosay of my script, indeed where it gives error me. That I am making bad? So that some verbose does without problems and in others it falls? ratesd=buf[3] prefixd=buf[4] grupod=buf[1] m="Valor Llmada Distribuidor %s" % (ratesd) ag.verbose(m,3) Conneccion establecida con la Base de Datos...... COMMAND: VERBOSE "[13830230L, 1, 1, 1, 1, 'Diego', 'Serrano', 'Bustos', 'dse...@ca...', 5000L, 2000L, None, 10000L, 0, 0, 1, 1, 1, 50000L, 'k', 99557480L, '2', 'Call Me S.A.', 'ca...@ca...', 50000L, 20000L, 0, 0, '171', '042']" 3 -- prepagosip/pagos.py|25804671|222: [13830230L, 1, 1, 1, 1, 'Diego', 'Serrano', 'Bustos', 'dse...@ca...', 5000L, 2000L, None, 10000L, 0, 0, 1, 1, 1, 50000L, 'k', 99557480L, '2', 'Call Me S.A.', 'ca...@ca...', 50000L, 20000L, 0, 0, '171', '042'] RESULT_LINE: 200 result=1 RESULT_DICT: {'result': ('1', '')} Rates Encontrado....[2, 1, 100L, '2', 'LDN Cliente'].. COMMAND: VERBOSE "Valor Llamada Cliente 100 " 3 prepagosip/pagos.py|25804671|222: Valor Llamada Cliente 100 RESULT_LINE: 200 result=1 RESULT_DICT: {'result': ('1', '')} Rates Encontrado....[2, 2, 1, 20L, '2', 'Nacional Chillan'].. COMMAND: VERBOSE "Valor Llmada Distribuidor 20" 3 -- prepagosip/pagos.py|25804671|222: Valor Llmada Distribuidor 20 RESULT_LINE: 510 Invalid or unknown command Traceback (most recent call last): File "/var/lib/asterisk/agi-bin//prepagosip/pagos.py", line 182, in ? ag.verbose(m,3) Fernando Villarroel Noriel __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |