views:

93

answers:

2

Hi All,

I have started to read about Asterisk::AMI module. In that module if we want to send the action to the AMI server,we need to use the Action with action name using send_action method. In that module they mentioned about Action => 'Ping' within send_action method. Here what is the use of Action => 'Ping'.Can anyone explain me about it.

    send_action({   Action => 'Ping',
                    CALLBACK => \&method,
               });

Thanks in advance.

A: 

I think this is a just a keep alive. Asterisk Manager Interface is known for being a little unreliable. Astmanproxy is a good way to fix that.

kolobcreek
+11  A: 

The Asterisk Manager Interface (AMI) allows a client program to connect to an Asterisk instance and issue commands or read events over a TCP/IP stream

Action: A packet sent by the connected client to Asterisk, requesting a particular Action be performed. There are a finite (but extendable) set of actions available to the client, determined by the modules presently loaded in the Asterisk engine. Only one action may be outstanding at a time

Action => Ping  

gives Keep alive packet to be sent from the client to Astersik

shrikant.soni