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

[reSIProcate-users] Proxying Registrations with a B2BUA


 

Hi,  

 

I am writing a SIP server that is a B2BUA.

I will configure UAs to point to my server as an outbound proxy.

So my server will receive REGISTERs from UAs, rewrite Via and Contact header-fields and forward them to the domain SIP Registrar.

My B2BUA is not a registrar, I am doing this so any future incoming INVITEs reach B2BUA instead of getting to the UAs.

      

 

Flow below shows what I need. Symbol “*” means a rewrite of parts of a SIP message as it is forwarded:

 

UA                      B2BUA(my app)                  REGISTRAR  

                                                                   

|           REGISTER          ||                             |     

|--------------------------->>||           REGISTER*         |     

|                             ||--------------------------->>|     

|                             ||                             |     

|                             ||   407 Proxy Auth.Required   |     

|                             ||<<---------------------------|     

|   407 Proxy Auth.Required   ||                             |     

|<<---------------------------||                             |     

|                             ||                             |     

|           REGISTER          ||                             |     

|--------------------------->>||                             |     

|                             ||           REGISTER*         |     

|                             ||--------------------------->>|     

|                             ||                             |     

|                             ||            200 OK           |      

|                             ||<<---------------------------|      

|            200 OK           ||                             |     

|<<---------------------------||                             |     

|                             ||                             |     

 

 

I am using DUM for the B2BUA and I wonder if someone has some clues of what and where to do in reciprocate/my B2BUA to achieve that.

Can it be done by merely subclassing stack/DUM classes or will I need to rewrite stack/DUM classes ?

 

 

Thank you all,

Julio Cabezas