amiws 2.2.1
Loading...
Searching...
No Matches
amipack_parser_message.c File Reference

AMI (Asterisk Management Interface) packet parser. This is standard packets like Action, Event, Response etc. Special packets like Command output and Queues list are parsed with different methods. More...

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

Functions

AMIPacketamipack_parser_message (const char *packet)
 

Detailed Description

AMI (Asterisk Management Interface) packet parser. This is standard packets like Action, Event, Response etc. Special packets like Command output and Queues list are parsed with different methods.

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

◆ amipack_parser_message()

AMIPacket * amipack_parser_message ( const char * pack_str)

Parse AMI packet to AMIPacket structure.

Parameters
pack_strBytes array received from server.
Returns
AMIPacket pointer or NULL if AMI packet failed to parse.