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

[reSIProcate] sumary about the REGISTER with resiprocate


Dear all,
 
I met an error with REGISTER,so i tried to understand the procedure of resiprocate for
Register in basicCall or basicRegister example.
 
If you see something wrong,pls notice that.
 
1. About the procedure Register:
    UA                                                        Server
   a) ----------request:REGISTER-------------------->
   b)<--------401 unAuthorized--------------------------
   c)-----------request:REGISTER--------------------->
              (with www_Authenticate)
  ..................
2. now i propose that UA can send the step a), and
    the server responses in step b).
   
    In resiprocate when UA receives 401 unAuthorized,
    these methods below will be called:
  
          s1.        DUM.process
                             |
                             |   (this methode will call internalProcess )
                            +
          s2.        internalProcess
                             |
                             |  (this methode will call processResponse )
                            +
          s3.        processResponse
                            |
                            |  (this methode will call dispatch from Dialogset)
                           +
         s4.        Dialogset.dispatch(response)
                            |
                            |  (this method will call handledbyAuthOrRedirect of Dialogset)
                           +
        s.5         handledbyAuthOrRedirect(response)
                            |
                            | (this method will call handle of ClientAuthManager )
                           +
        s.6          ClientAuthManager.handle(..)
                      Herer the response (sip message ) will be analyzed to get code.
                      Based the code of response, in our case is 401, some other methods of resiprocate library
                      will be called to build a new sip message for request REGISTER.
 
What do you think if in my program, it can't make a new sip message to response the 401 unAuthorized?
Where do you think i have to check? which step do i have to regard?
 
Look forward to hear your opinion.
 
Julien