I''m reading about my problem, and I found this note at
http://www.voip-info.org/wiki/index.php?page=Asterisk+Manager+API+Action+Command:
The sequence in the response event doesn''t send a carriage return -
line
feed (\r\n), it only sends a line-feed (\n), if you write a handler who wait
for a carriage return - line feed, the result sequence is ignored and send
the respond that you mention.
Could it be a bug in the code?
Please HELP.
Best Regards,
Carlos
On 10/29/07, Carlos Garcia Mujica <carlosve.ucv at gmail.com>
wrote:>
> Hello Guys,
> I''m getting a problem with the cli_command in telegraph.
> I''m trying to do a "show channels" cli command.
> I don''t know why Asterisk isn''t responding to me.
>
> Any ideas?
>
> What I''m doing:
> result = AMI.cli_command("show channels")
> => #<Telegraph::AsteriskResponse:0xb7013094 @events=[], @results=[],
> @attributes={:privilege=>"Command"}, @success=false,
@message=nil,
> @complete=true, @action_id= 1193674334.02419>
>
> But with no success.
>
> Regards,
> Carlos
>
> --
>
>
-------------------------------------------------------------------------------------
> Universidad Central de Venezuela
> Facultad de Ciencias
> Escuela de Computaci?n
> Carlos Garcia
> MSN Messenger Service: curdomanaqui at hotmail.com
>
-------------------------------------------------------------------------------------
>
> "Everything should be made as simple as possible, but not
simpler." Albert
> Einstein
--
-------------------------------------------------------------------------------------
Universidad Central de Venezuela
Facultad de Ciencias
Escuela de Computaci?n
Carlos Garcia
MSN Messenger Service: curdomanaqui at hotmail.com
-------------------------------------------------------------------------------------
"Everything should be made as simple as possible, but not simpler."
Albert
Einstein
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/telegraph-users/attachments/20071029/65a29efb/attachment.html