Hi Scott and thanks as usual for your help :)
i am facing a couple of issues trying to emulate the scenario that i posted before:
1) if i strip all contacts with removeAll() i get a REGISTER going out with "Contact:" set to "*" and i would rather not (to mimic the scenario exactly)
2) if i try to remove the contact i used in the first REGISTER well, i don't know where to find it! :) let me explain
Basically to mimic that scenario i am adding code in the onSuccess() method of the registration handler.
However when I read the contact from the response message the URI has an rinstance parameter that i did not know before... (i.e. if i try to store my contact when i send out the first REGISTER, that URI doesn't have any parameters) so if i try to use removeBinding() it fails.
Am i doing this all wrong or am i missing something?
Is there a way to retrieve the contact used when sending the first REGISTER? if i ask for the contact header uri().getAor() before sending the register message through dum i only get the username.
3) i also tried some code along the lines of
for (ParserContainer<NameAddr>::const_iterator i=response.header(h_Contacts).begin(); i != response.header(h_Contacts).end(); i++)
{
qDebug() << "examining contact header: " << i->uri().toString().c_str();
pReg->removeBinding(*i);
}
but this also fails, and still haven't figured out why.
thanks and best regards