< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] REFER with replace


I have wote these code, I can complie it, does it correctly ?
 
first, I make a call to A, and saved the ClientInviteSessionHandle in onNewSession - mClientInviteSession.
After the call is established, the B calling me, I saved the ServerInviteSessionHandle in onNewSession mServerInviteSession.
After the call is established, then I want to REFER the call with replace for attended refer:
 
 InviteSession * is = static_cast<InviteSession *>(mServerInviteSession->second.get());
 InviteSessionHandle ish = is->getSessionHandle();

mClientInviteSession->refer(referTo, InviteSessionHandle);


 
On Sun, Apr 13, 2008 at 4:41 PM, Karlsson <boost.regex@xxxxxxxxx> wrote:
There is my details,
first, I make a call to A, and saved the ClientInviteSessionHandle in onNewSession - mClientInviteSession.
After the call is established, the B calling me, I saved the ServerInviteSessionHandle in onNewSession mServerInviteSession.
After the call is established, then I want to REFER the call with replace for atteded refer:
 
mClientInviteSession->refer(referTo, mServerInviteSession);
 
This is can't complie, please help me how to do it , thank you in advance.

On Sun, Apr 13, 2008 at 4:19 PM, Karlsson <boost.regex@xxxxxxxxx> wrote:
Hi all, I want to make the a REFER with replace, but can't complied it:
 
ClientInviteSessionHandle mClientInviteSession;
ServerInviteSessionHandle mServerInviteSession;
 
 
mClientInviteSession->refer(referTo, mServerInviteSession);
 
the complier says second parameter is error, how to do ?
 
Thanks