forked from Mirrors/freeswitch
8d8609ab56
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14001 d0543943-73ff-0310-b7d9-9358b9ac24b2
76 lines
1.0 KiB
Plaintext
76 lines
1.0 KiB
Plaintext
%start MainMap::Startup
|
|
%class BgApiRequest
|
|
|
|
%map MainMap
|
|
%%
|
|
|
|
Startup
|
|
{
|
|
CommandReply
|
|
ApiResponseStarted
|
|
{
|
|
}
|
|
}
|
|
|
|
ApiResponseStarted
|
|
{
|
|
ReplyText
|
|
GotReplyText
|
|
{
|
|
}
|
|
|
|
}
|
|
|
|
|
|
GotReplyText
|
|
{
|
|
BlankLine
|
|
nil
|
|
{
|
|
|
|
}
|
|
|
|
JobUuid
|
|
Startup
|
|
{
|
|
setRequestFinished(); callOrErrback();
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Default
|
|
{
|
|
BlankLine
|
|
nil
|
|
{
|
|
setRequestFinished();
|
|
errbackDeferred("Protocol failure - was not expecting blank line"); }
|
|
|
|
CommandReply
|
|
nil
|
|
{
|
|
setRequestFinished();
|
|
errbackDeferred("Protocol failure - was not expecting command reply");
|
|
}
|
|
|
|
ReplyText
|
|
nil
|
|
{
|
|
setRequestFinished();
|
|
errbackDeferred("Protocol failure - was not expecting reply text");
|
|
}
|
|
|
|
ProcessLine(line)
|
|
nil
|
|
{
|
|
setRequestFinished();
|
|
errbackDeferred("Protocol failure handling bgapi response - was not expecting line needing to be processed");
|
|
}
|
|
|
|
}
|
|
|
|
%% |