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

[reSIProcate] meaning of username/authname/password


envir: ondo sip server / eyebeam
 
when i use eyebeam, what is meaning of username/authname/password?
 
from ethereal log. from is sip:username@domain, auth info is authname/password. proxy server need pre-define authname/pasword account. so i can register more than one user name to proxy server with the same auth info. any one want call me, just dial any one of username. is that right??
 
when i implement using resiprocate, i code as following:
 
1.sprintf(str_uri, "sip:%s@%s:%d", mUserName, mProxyIP, mProxyPort);
2.mUser = NameAddr(str_uri);
3.mUser.displayName() = UA_DISPLAY_NAME;
4.mUser.uri().password() = Data(mPassword);
5.printf("SipUserAgent.%s.\n", NameAddr2Data(mUser).c_str());
6.mProfile->setDigestCredential(mUser.uri().host(), mUser.uri().user(), mPassword);
 
line 5 prinf result is:"FOOLBEAR_USERAGENT"<sip:5911:5944aaa@xxxxxxxxxxxxxx:5060>,  auth ok. when i call 5911, failed, call 5911:5944aaa, works. why?
if i remove line 4, call 5911 success. so what is the meaning of "mUser.uri().password() "?

--
大笨熊????