Re: [reSIProcate-users] Send reINVITE with a modified SDP
Hi probably there is more elegant way, but here is what I did to enforce using reINVITE for session modification when UPDATE is enabled (and used for session timer). The better solution is use it configured at level of profile, but I looks that was not supported (I still use 1.2)
InviteSession::provideOffer(const SdpContents& offer, DialogUsageManager::EncryptionLevel level, const SdpContents* alternative) { switch (mState) { case
Connected: case WaitingToOffer: case UAS_WaitingToOffer: /* if (updateMethodSupported()) { transition(SentUpdate); mDialog.makeRequest(*mLastLocalSessionModification, UPDATE); } else { */ Always use reINVITE for session modifications (UPDATE is still be used for session
refresh) transition(SentReinvite); mDialog.makeRequest(*mLastLocalSessionModification, INVITE); startStaleReInviteTimer(); //}
Boris
--- On Tue, 1/20/09, Adam Roach <adam@xxxxxxxxxxx> wrote:
From: Adam Roach <adam@xxxxxxxxxxx> Subject: Re: [reSIProcate-users] Send reINVITE with a modified SDP To: "Wong Kok Meng-a17866" <kokmeng.wong@xxxxxxxxxxxx> Cc: resiprocate-users@xxxxxxxxxxxxxxx Received: Tuesday, January 20, 2009, 10:02 PM
What you want is InviteSession::provideOffer().
I think there are some profile settings
you can use to disable UPDATE support if you don't want to use it.
/a
Wong Kok Meng-a17866 wrote: > > Hi, > > After an INVITE session is established, my application needs to instruct > the resip to send an reINVITE message with a modified SDP (even if the > peer supports UPDATE). > > I study the code ./resip/dum/InviteSession.cxx and > ./resip/dum/ClientInviteSession.cxx. The closest APIs I can find are > targetRefresh() and sessionRefresh(). But these APIs don't do exactly > what I am looking for. > > Is there other available method that allows the resip to send an > reINVITE message with a modified SDP? > > Thank you very much for your time. > > Regards, > Kok Meng, Wong > _______________________________________________ > resiprocate-users mailing list > resiprocate-users@xxxxxxxxxxxxxxx > List
Archive: http://list.resiprocate.org/archive/resiprocate-users/ >
_______________________________________________ resiprocate-users mailing list resiprocate-users@xxxxxxxxxxxxxxx List Archive: http://list.resiprocate.org/archive/resiprocate-users/
|
Now with a new friend-happy design! Try the new
Yahoo! Canada Messenger