[reSIProcate] UdpTransport

julien thai julienresiprocate at gmail.com
Tue May 17 10:08:27 CDT 2005


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 at gmail.com> 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 at gmail.com> 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 at gmail.com > 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 at icescape.com > wrote: 
> > > > 
> > > >  Look in dum/ClientAuthManager.cxx
> > > > 
> > > >   ------------------------------
> > > >  
> > > > *From:* julien thai [mailto: julienresiprocate at gmail.com] 
> > > > *Sent:* Monday, May 16, 2005 2:59 PM 
> > > > *To:* resiprocate-devel at list.sipfoundry.org 
> > > > *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?
> > > >  
> > > >   
> > > 
> > 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20050517/87607b01/attachment.htm>


More information about the resiprocate-devel mailing list