From: FERNANDO V. <fvi...@ya...> - 2006-01-25 20:24:26
|
Yes Thanks. --- "Matthew A. Nicholson" <mni...@di...> wrote: > Make sure there are no linefeed characters (\n) in > your verbose string. > It appears there are: > > VERBOSE "Valor Llamada Cliente 100 (<<<< new line) > " 3 > > This caues the next command to Asterisk to be read > as: > " 3VERBOSE "Valor Llmada Distribuidor 20" 3 > > Whis is not a valid command. This is a limitation > of the AGI protocol, > as it uses \n as a command seperator. > > FERNANDO VILLARROEL wrote: > > 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 > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do > you grep through log files > > for problems? Stop! Download the new AJAX search > engine that makes > > searching your log files as easy as surfing the > web. DOWNLOAD SPLUNK! > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > > _______________________________________________ > > Pyst-users mailing list > > Pys...@li... > > > https://lists.sourceforge.net/lists/listinfo/pyst-users > > -- > Matthew A. Nicholson > Digium > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do > you grep through log files > for problems? Stop! Download the new AJAX search > engine that makes > searching your log files as easy as surfing the > web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |