Handling REFER Requests

From reSIProcate
Jump to navigation Jump to 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