提交 e0fa2a99 authored 作者: João Mesquita's avatar João Mesquita

I am almost there. States are OK for outgoing call but something is missing on INCOMING call.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk/scripts/contrib@13801 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b23ec880
......@@ -49,6 +49,15 @@ struct K3LAPI
int32 rc;
};
struct invalid_session
{
invalid_session(unsigned int _device, unsigned int _channel)
: device(_device), channel(_channel) {};
unsigned int device;
unsigned int channel;
};
struct invalid_device
{
invalid_device(unsigned int _device)
......@@ -215,9 +224,12 @@ struct K3LAPI
switch_core_session_t * getSession(unsigned int boardId, unsigned int chanId)
{
switch_core_session_t * session = NULL;
if (!valid_channel(boardId, chanId))
throw invalid_channel(boardId, chanId);
return _KChannel[boardId][chanId].getSession();
session = _KChannel[boardId][chanId].getSession();
if (session == NULL) { throw invalid_session(boardId, chanId); }
return session;
}
protected:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论