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

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


I used the same way scott mentioned. For example, I used the re-Invite method to realize onhold
function.
 
with my code fragment:
----------------------------------------------------------------------------------------------------------------------------
 // here pis is InviteSession*
 SdpContents* pSDP = dynamic_cast<SdpContents*>(pis->getLocalSdp().clone());
 assert(pSDP);
 pSDP->session().connection().setAddress(Data(" 0.0.0.0"));
 pis->provideOffer(*pSDP, DialogUsageManager::None, 0);
 delete pSDP;
---------------------------------------------------------------------------------------------------------------------------

Regards
Caval
 


2006/4/12, Scott Godin <slgodin@xxxxxxxxxxxx>:

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


_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel