apsaras - 2012-10-29


I have a setup of OpenSIPs 1.8.1 as Proxy and B2BUA on the same box on different ports. Messages are handled first from proxy which checks permission running on port 5060 and then the messages is forwarded to B2BUA running on 5090 for topology hiding. B2BUA initiates the new call and sent it to Proxy. Up to here everything works fine. Proxy sends back 100, 180 and 200 OK to B2BUA and then B2BUA send the ACK to the Gateway and not to the Proxy. How can I force B2BUA to send all messages through Proxy? A diagram of the message flow is following.

Client                         Proxy (5060)                      B2BUA(5090)                        Proxy(5060)                              Gateway
             <--------- Trying
                                    INVITE --------------->
                                                  <---------------- Trying
                                                                                      INVITE ------------------>
                                                                                                    <------------------ Trying
                                                                                                                                            INVITE ------------->
                                                                                                                                                          <------------- Trying
                                                                                                                                                           <------------- Ringing
                                                                                                       <----------------- Ringing
                                                       <----------------- Ringing
             <------------ Ringing
                                                                                                                                                               <------------ OK
                                                                                                             <------------------- OK
                                                          <----------------- OK
              <------------- OK
                                                                                                ACK ------------------------------------------->

Thank you for your help