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

Re: [reSIProcate] I sek advice on how I can un-register,or logout from SIP proxy


Scott Godin wrote:

I need to now have the ability to logout, or UnRegister from the SIP
server.   I already wrote the code,  but just not sure if I'm
supposed to release the memory allocation of my DUM subclass,
or just keep it around in case I need it....  The test code in the
release
obviously cannot show how this is done,   I can't figure out how
from just looking at the source code modules.

[Scott Godin] Both DUM and stack should stay around as long as you need
to send/receive any SIP messaging.  You call end() or removeAll(true) on
the ClientRegistrationHandle to unregister.
Oh, Ok... I wasn't sure about this.... want to avoid all unnecssary allocations
and deallocations.  Thanx a lot.

Log::initialize(Log::Cout, resip::Log::Debug, "SipPhone",
"/tmp/siplog");
Which does NOT write the logs into "/tmp/siplog", BTW..  instead it
writes logs into Console,  which is also OK with me so far.  Is this a
bug?

[Scott Godin] Log::Cout will go to console.  You should use Log::file to
go to file.

Oh, OK... is that mentioned anywhere, like in some obscure header file or
something?

Again,  thanx a lot.

John