[asterisk-users] AMI buffering event output?
Örn Arnarson
orn at arnarson.net
Wed Jun 1 06:03:41 CDT 2011
Hi Matt,
Yes, passing two carriage returns. I login successfully. Here's
example output (with my comments in [])
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/1.1
action: login
username: phpagi
secret: supersecretpassword
events: on
Response: Success
Message: Authentication accepted
[No output after this point until I pass carriage return]
[Now I press carriage return and two events appear, along with an
error message for missing action]
Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/2170
PeerStatus: Unregistered
Cause: Expired
Event: ExtensionStatus
Privilege: call,all
Exten: 2170
Context: default
Hint: SIP/2170
Status: 4
Response: Error
Message: Missing action in request
On Tue, May 31, 2011 at 10:56 PM, Matt Riddell <lists at venturevoip.com> wrote:
> On 1/06/11 5:38 AM, Örn Arnarson wrote:
>>
>> The problem presents with a php script that opens a socket directly to
>> AMI, a telnet client from the local machine to the AMI, but not when I
>> telnet from the machine to a remote machine running AMI.
>
> Are you 100% sure it's happening when you use telnet on the local machine?
>
> Are you passing two carriage returns after logging in?
>
> --
> Cheers,
>
> Matt Riddell
> _______________________________________________
>
> http://www.venturevoip.com/news.php (Daily Asterisk News)
> http://www.venturevoip.com/exchange.php (Full ITSP Solution)
> http://www.venturevoip.com/cc.php (Call Centre Solutions)
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list