[asterisk-dev] AMI syntax
Dan Jenkins
dan.jenkins at holidayextras.com
Sat Sep 28 16:08:02 CDT 2013
> On Sep 28, 2013, at 21:57, jg <webaccounts at jgoettgens.de> wrote:
>
> Mark!
>
>> When it comes to parsing incoming AMI actions, Asterisk will accept:
>>
>> <key> ':' <space>+ <value> <CRLF>
>>
>> If there is arbitrary space before the key, then Asterisk will not properly match on the key as expected. There must be at least one space between the colon and the value. If there is trailing space after the value, then Asterisk will consider that extra space to be part of the value (though this should maybe be changed?).
> It looks more like
>
> <key> ':' <space>+ <value>? <CRLF>
>
> because I have found events that have empty values. For example the Jabber event might have an empty value for the "Packet" header.
>
> jg
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
Matt Jordan just put up on the asterisk wiki under asterisk 12 the ami
1.4 specification, the format is exactly the same, I would definitely
take a look at it, gives a tonne of great examples
More information about the asterisk-dev
mailing list