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

[reSIProcate-users] Am I suffering profile inheritance?


Hi,

 

I am having kittens over this one.

 

·         Set up a master profile with a defaultFrom of FREDDY, realm etc

·         Send a REGISTER (1) which is challenged and Resip generates a REGISTER (2) with an Authorixation header with a username=”FREDDY”……great (I setDigestCredential(,“FREDDY”,) etc)

 

So all good to here, then:

 

·         Set up a user profile with                             SharedPtr<UserProfile> pLineProfile = SharedPtr<UserProfile>(new UserProfile()); and a defaultFrom of “BILLY”, same realm as FREDDY

·         Send a REGISTER (3) for BILLY which looks correct, and is challenged…

·         ….Resip sends a REGISTER (4) with a correct From: / To: etc (BILLY) but the response to the challenge contains the original FREDDY from the master profile digest creds, even though REGISTER (3) clearly used the contents of pLineProfile i.e. it created From: BILLY

 

 

I have tried clearing the digest credentials from pLineProfile before adding SetDigestCredentials(,“BILLY”,) prior to sending REGISTER (3). This was in case pLineProfile was somehow inheriting the base profile, ending up with 2 x creds (with the same realm) and serving up the master one when being challenged.

 

Any pointers gratefully received.