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

RE: [reSIProcate] How to send a re-INVITE


You can either store the DialogId from a previous message – or store the InviteSessionHandle.

 

You should use the provideOffer API – not setOffer.  And you should get the onAnswer callback not onDialogModified.  In fact onDialogModified is not actually implemented.

 

Scott

 


From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Kevin Wang
Sent: Tuesday, April 11, 2006 12:18 PM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] How to send a re-INVITE

 

I'm trying to use DUM to send a re-INVITE so I can add a customized media stream to the existing call. Below is what I have in mind:

InviteSessionHandle isHandle = uacDum->findInviteSession(dialogID);
isHandle->setOffer(offer); // create offer seperately
isHandle->send(isHandle->modifySession());

In the onDialogModified(resip::InviteSessionHandle is, resip::InviteSession::OfferAnswerType oat, const resip::SipMessage& msg), answer the request with 200.

Will this work? And if it does, how do I get hold of the dialogID for an existing call? Since I'm new to reSIProcate, my pseudo code could be completely wrong. I'd highly appreciate any help you can provide.

Thanks,
Kevin