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

Re: [reSIProcate] UdpTransport


Hi scott,
 
If i am right, i think the code below called the ClientAuthManager->handle
when it received a response 401 unAuthorized.

if (mDum.mClientAuthManager.get() && mDum.mClientAuthManager->handle(*mDialogSet.getUserProfile(), r->second, msg))

 
On 5/17/05, julien thai <julienresiprocate@xxxxxxxxx> wrote:
 
Scott,
 
I found in ClientAuthManager.cxx the method below:
 

bool

ClientAuthManager::handle(UserProfile& userProfile, SipMessage& origRequest,

const SipMessage& response)

in your example BasicCall or BasicRegister, where did you call this method?

Julien

 

On 5/17/05, julien thai <julienresiprocate@xxxxxxxxx > wrote:
Hi,Scot
 
If the UA ( a program based resiprocate ) can receive the 401 unAuthorized after
send a Request REGISTER.
 
But it can't make a new Request REGISTER with www_Authentication,
where do you think the problem?

 
On 5/17/05, julien thai <julienresiprocate@xxxxxxxxx > wrote:
Hi,Scott
 
I looked in ClientAuthManager.cxx,
i also looked in udptransport.cxx
 
can you help me to understand the code below
in udptransport.cxx.
 

if (mMsgHeaderScanner.scanChunk(buffer,

len,

&unprocessedCharPtr) !=

MsgHeaderScanner::scrEnd)

{

StackLog(<<"Scanner rejecting datagram as unparsable / fragmented from " << tuple);

StackLog(<< Data(buffer, len));

delete message;

message=0;

return;

}


 
On 5/16/05, Scott Godin <slgodin@xxxxxxxxxxxx > wrote:

Look in dum/ClientAuthManager.cxx

 


From: julien thai [mailto: julienresiprocate@xxxxxxxxx]
Sent: Monday, May 16, 2005 2:59 PM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] UdpTransport

 

For basiccall example.

 

In the UdpTransport.cxx

I found the method sendto and recvform.

For the REGISTER.

After recvform received a response "401 unauthorized" it will copied

the content of response and add in the message header the information

for authentication.

 

How did it happened in UdpTransport? which methods did author use

to do a new message request for REGISTER?