[asterisk-users] What's up with the Manager Interface?!?!

Richard Lyman pchammer at dynx.net
Wed Nov 29 12:09:21 MST 2006


Douglas Garstang wrote:
> The Asterisk Manager Interface is driving me nuts.
> Whoever wrote it should be drawn and quartered.
>
> Sometimes the data comes back separated by \r\n, and sometimes it's separated by \n.
> The whole thing is completely inconsistent, and trying to write any kind of API for it is -GHASTLY-
>
> Doug.
> _______________________________________________
>   
just wait till you get a 'hiccup' that causes a line to get cut off, 
drop a char, and continue on next line. <G>
(examples below)

this is an older manager.c
there have been a lot of mods to the manager interface in the 1.4 tree, 
but there is no way i would put that into a production envir.

-------------
Event: OriginateFailure
Privilege: call,all
Channel: Zap/g1/xxxxxxxxxx
Context: gdincoming
Exten:
Reason: 3
Uniqueid: <null>
CallerID: xxxxxxxxxx
CallerIDName: ~308C
D13-47426-true~

-------------
Event: OriginateFailure
Privilege: call,all
Channel: Zap/g1/xxxxxxxxxx
Context: gdincoming
Exten:
Reason: 5
(rest was gone)

-------------
Event: OriginateFailure
Privilege: call,all
Channel: Zap/g1/xxxxxxxxxx
Context: gdincoming
Exten:
Reason: 0
Uniqueid: <null>
CallerID: xxxxxxxxxx
Ca
lerIDName: ~308CLD14-40566-true~

-------------
Event: OriginateSuccess
Privilege: call,all
Channel: Zap/g1/xxxxxxxxxx
Context: gdincoming
Exten:
Reaso
: 4
Uniqueid: 1163128185.2006
CallerID: xxxxxxxxxx
CallerIDName: ~308CLD13-50454-true~





More information about the asterisk-users mailing list