[reSIProcate] meaning of username/authname/password
大笨熊
foolbear at gmail.com
Mon Nov 21 20:33:59 CST 2005
envir: ondo sip server / eyebeam
when i use eyebeam, what is meaning of username/authname/password?
from ethereal log. from is sip:username at 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 at 192.168.101.85: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()
"?
--
´ó±¿ÐÜ©IÖðý
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20051122/3d3865db/attachment.htm>
More information about the resiprocate-devel
mailing list