Handling REFER Requests

From reSIProcate
Revision as of 14:03, 9 December 2005 by Sgodin (talk | contribs) (Hanlding Refer Requests)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

If an application wishes to process the REFER request it should use the dum->makeInviteSessionFromRefer API.

Sample Code:

void onRefer(InviteSessionHandle is, ServerSubscriptionHandle ss, const SipMessage& msg)
{
   ss->send(ss->accept(202));  // accept refer request
   SdpContents sdpOffer;
   ...  // build sdpOffer
   dum->send(dum->makeInviteSessionFromRefer(msg, ss, sdpOffer);  // send new INVITE
}