[reSIProcate] How to send a re-INVITE
郑卿
cavalzheng at gmail.com
Wed Apr 12 03:29:27 CDT 2006
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 at icescape.com>:
>
> You can either store the DialogId from a previous message ¨C or store the
> InviteSessionHandle.
>
>
>
> You should use the provideOffer API ¨C not setOffer. And you should get
> the onAnswer callback not onDialogModified. In fact onDialogModified is not
> actually implemented.
>
>
>
> Scott
>
>
> ------------------------------
>
> *From:* resiprocate-devel-bounces at list.sipfoundry.org [mailto:
> resiprocate-devel-bounces at list.sipfoundry.org] *On Behalf Of *Kevin Wang
> *Sent:* Tuesday, April 11, 2006 12:18 PM
> *To:* resiprocate-devel at list.sipfoundry.org
> *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 at list.sipfoundry.org
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20060412/01e26cf2/attachment.htm>
More information about the resiprocate-devel
mailing list