[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