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

Re: [reSIProcate] Contact: field getting over-written


Sasha Youkhananov wrote:

Try using of setOverrideHostAndPort () method of Profile class (see
Profile.cxx/hxx).
It stores your Contact header in Master profile and uses it in all
appropriate cases.
Oh - Ok...   I Know I looked at that method before, but didn't know its
exact use.  Thanx for the help.  I'll look into this and make the changes.
I wonder if this has to do with the fact that my program crashes in
the part where the DialogSet is destroyed when done.   I crash in
the destructor for some reason.   I'll make this change now,  and see
what happens.

//* Set Contact's fields
Uri ContactUri;

ContactUri.scheme () = Symbols::DefaultSipScheme;
ContactUri.host () = your address
ContactUri.port () = your port
ContactUri.user () = your user
and so on

Profile->setOverrideHostAndPort (ContactUri);

Don't forget to create an instance of MasterProfile that is inherited
from UserProfile and Profile classes.
Right - I'm doing that right now.

Thanx