def _sendAction(self, action, attrs=None, chan_vars=None):
self._conn.write("<STR_LIT>" % action)<EOL>if attrs:<EOL><INDENT>for (key,val) in attrs:<EOL><INDENT>self._conn.write("<STR_LIT>" % (key, val))<EOL><DEDENT><DEDENT>if chan_vars:<EOL><INDENT>for (key,val) in chan_vars:<EOL><INDENT>self._conn.write("<STR_LIT>" % (key, val))<EOL><DEDENT><DEDENT>self._conn.write("<STR_LIT:\r\n>")<EOL>
Send action to Asterisk Manager Interface.

        @param action:    Action name
        @param attrs:     Tuple of key-value pairs for action attributes.
        @param chan_vars: Tuple of key-value pairs for channel variables.