Hi all, solved with following solution:

if (src_ip == IP_MEDIANT || (method=="INVITE")) { 
                        rewritehostport("FQDN_IPPBX1:PORT_IPPBX1");
                        route(10);
                        exit;
                } 
                
                
  ......
  ......                
                
route[10] {
        append_branch();
        rewritehostport("IP_IPPBX2:PORT_IPPBX2");
        $du = "sip:IP_IPPBX2:PORT_IPPBX2";
        # display branches
                $(branch(duri)[0]) = "sip:IP_IPPBX1:PORT_IPPBX1;transport=tcp"; 
  
                t_relay();
              exit;
        } 

Hope could help someone else.
Regards
                



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Help-with-t-relay-tp7583170p7583185.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to