forked from Mirrors/freeswitch
bf98f981e1
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5828 d0543943-73ff-0310-b7d9-9358b9ac24b2
72 lines
853 B
Plaintext
72 lines
853 B
Plaintext
%start MainMap::Startup
|
|
%class BgApiRequest
|
|
|
|
%map MainMap
|
|
%%
|
|
|
|
Startup
|
|
{
|
|
CommandReply
|
|
ApiResponseStarted
|
|
{
|
|
}
|
|
}
|
|
|
|
ApiResponseStarted
|
|
{
|
|
ReplyText
|
|
GotReplyText
|
|
{
|
|
}
|
|
|
|
}
|
|
|
|
|
|
GotReplyText
|
|
{
|
|
BlankLine
|
|
Startup
|
|
{
|
|
setRequestFinished(); callOrErrback();
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Default
|
|
{
|
|
BlankLine
|
|
nil
|
|
{
|
|
setRequestFinished();
|
|
errbackDeferred("Protocol failure");
|
|
}
|
|
|
|
CommandReply
|
|
nil
|
|
{
|
|
setRequestFinished();
|
|
errbackDeferred("Protocol failure");
|
|
}
|
|
|
|
ReplyText
|
|
nil
|
|
{
|
|
setRequestFinished();
|
|
errbackDeferred("Protocol failure");
|
|
}
|
|
|
|
ProcessLine(line)
|
|
nil
|
|
{
|
|
setRequestFinished();
|
|
errbackDeferred("Protocol failure");
|
|
}
|
|
|
|
}
|
|
|
|
%% |