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

Re: [reSIProcate-users] Unregistering a SIP end point


This is my example to reference:

Register :

SharedPtr<SipMessage> reg = mDum.makeRegistration(nameAddr);
mDum.send(reg);

when register success,  the ClientRegistrationHandler got onSuccess
class YourClass : public ClientRegistrationHandler 
{
        NameAddr nameAddr;
bool registered;
ClientRegistration* cr;
        ...
};

void YourClass::onSuccess(ClientRegistrationHandle h, const SipMessage& response)
{
const resip::Data& aor = response.header(resip::h_From).uri().getAor();
log(INF, "Logged in: %s", aor.c_str());
        registered = true;
cr = h.get();
}

Unregister:

cr->end();

2010/5/27 Bhaskar Raghavendran <bhaskar.raghavendran@xxxxxxxxx>
Hi,

I just started out with Resiprocate. I have managed to understand the Registration procedure of a SIP end point, however, I am still trying to understand the idea of the Unregistering a SIP end point. Can some one please guide me in that direction and possibly refer the API's that resiprocate exposes to achieve this?

Thank You,
-Bhaskar

_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/



--
Best Regards

Maodong Hu