You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Goal (short description)

Routing of inter domain sessions over a TLS encrypted link between a SER and an OpenSER proxy 

Applicability

Inter-domain SIP routing over TLS

Prerequisites (OS, dependencies on other software)

Configuration  

OpenSER proxy configuration:

  1. add the certificate chain of the other proxy in PEM format to the CA list file in /usr/local/etc/openser/user/user-calist.pem. You can open the file in a text editor and add the certificate string at the end of the file. 
  2. add routing logic in the openser.cfg file:
        # check for requests targeted out of our domain
        if (!uri==myself) {
                # mark routing logic in request
                append_hf("P-hint: outbound\r\n");
                # if you have some interdomain connections via TLS
                if(uri=~"@domainA.net") {
                        t_relay("tls:sipserver.domainA.net:5061");
                        xlog("L_INFO", "Time [%Tf] Route to ces.net :%rm RURI:%ru  FROM:%fu TO:%tu \n buffer %mb \n flags \n %mf \n");
                        exit;
                } else if(uri=~"@domainB.net") { t_relay("tls:sipserver.domainB.net:5061");
                        xlog("L_INFO", "Time [%Tf] Route to ten.cz :%rm
                        RURI:%ru FROM:%fu TO:%tu \n buffer %mb \n flags \n
                        %mf \n"); exit;
                }
                route(1);
        };
 

OS specific help


  • No labels