sip注册之后发起invite遇到的问题

我是一个小胖子 2010-05-18 01:04:49
参考的自带的sip的例子。

注册成功之后发起invite,函数如下:

void CSIPExSIPIdleState::SendInviteL(
CSIPExSIPEngine& aEngine,
const TDesC8& aSipUri )
{
// Retrieve the active profile and connection
CSIPProfile& prof = aEngine.Profile();
CSIPConnection& conn = aEngine.ConnectionL();

// Create CUri8 from passed descriptor
CUri8* uri8 = aEngine.ConvertToUri8LC( aSipUri );

// Get dialog association, save for future use
// The ownership of uri8 is transferred
CSIPInviteDialogAssoc* dialogAssoc =
CSIPInviteDialogAssoc::NewL( conn, uri8, prof );
CleanupStack::Pop( uri8 );

aEngine.SetDialogAssoc( *dialogAssoc ); //Ownership is transferred!!

// Create the necessary message elements
CSIPMessageElements* msgElements = aEngine.CreateMessageElementsLC();

// Send the INVITE in the dialog
// The ownership of msgElements is transferred
CSIPClientTransaction* tx = dialogAssoc->SendInviteL( msgElements ); //执行到这里就没有反应了
CleanupStack::Pop( msgElements );

// Save the pointer to the transaction to the Engine
aEngine.SetClientTx( tx );

// Change machine state
aEngine.SetCurrentState( iClientEstablishingState );
}

我想要是出错也应该有个回复啊?
还有这个invite出去之后回调的那个函数?
是 MSIPConnectionObserver 的 IncomingResponse 或者 ErrorOccured 吗?
望指教,感谢!!
...全文
3445 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
qiu298 2012-11-22
  • 打赏
  • 举报
回复
很想知道你是怎么注册的,我连注册都没搞定

3,120

社区成员

发帖
与我相关
我的任务
社区描述
塞班系统(Symbian系统)是塞班公司为手机而设计的操作系统,它的前身是英国宝意昂公司的 EP ( Electronic Piece of cheese)操作系统。
社区管理员
  • Symbian社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧