amiws  2.2.1
 All Classes Files Functions Variables Enumerations Macros
Functions
amipack_parser_detect.c File Reference

AMI (Asterisk Management Interface) Command response output parser. More...

#include "amipack.h"
Include dependency graph for amipack_parser_detect.c:

Functions

enum pack_type amipack_parser_detect (const char *packet)
 

Detailed Description

AMI (Asterisk Management Interface) Command response output parser.

AMI (Asterisk Management Interface) Queue action output parser.

AMI (Asterisk Management Interface) packet's type detect.

amiws – Library with functions for read/create AMI packets Copyright (C) 2016, Stas Kobzar stask.nosp@m.obza.nosp@m.r@mod.nosp@m.ulis.nosp@m..ca

This file is part of amiws.

amiws is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

amiws is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with amiws. If not, see http://www.gnu.org/licenses/.

Author
Stas Kobzar stas..nosp@m.kobz.nosp@m.ar@mo.nosp@m.duli.nosp@m.s.ca

Function Documentation

enum pack_type amipack_parser_detect ( const char *  packet)

Detect AMI packet type.

Parameters
packetPacket received from server as bytes array.
Returns
packet type