Hi everybody,

 

Since I implemented Kamailio 3.1 with TLS I've found a strange behavior. That 
is, with some clients (Bria and Blink) registered, if I restart Kamailio, then 
when the clients re-register the strange behaivour happens. This behavior 
consist on receiving calls, it took about 15 seconds to receive the first tone 
since the call was made.

 

I made the following modification in the "route[Relay]" config. The reason is I 
wanted my gateway and Kamailio to make signaling by TLS. Without this 
modification the signaling was unencrypted (SIP):

 

route[RELAY] {

#!ifdef WITH_NAT

        if (check_route_param("nat=yes")) {

                setbflag(FLB_NATB);

        }

        if (isflagset(FLT_NATS) || isbflagset(FLB_NATB)) {

                route(RTPPROXY);

        }

#!endif

 

        /* example how to enable some additional event routes */

        if (is_method("INVITE")) {

                #t_on_branch("BRANCH_ONE");

                t_on_reply("REPLY_ONE");

                t_on_failure("FAIL_ONE");

        }

 

# Se comunica con el GWa traves de TLS 

        if(!( ($od=~"mydomain.com") && ( ($rU=~"[a-z]{3,20}$") || 
($rU=~"^xx[0-9][0-9]$") ) ) ) {    ### If I'm calling a PBX extension do the 
signaling by TLS with the gateway (Cisco 2811)

 

                if (!t_relay_to_tls()) {

                        sl_reply_error();

                }

        } else if {

 

                if (!t_relay()) {

                        sl_reply_error();

                }

        }

        exit;

}

 

The rest of functionalities are working really fine. Any idea about what is 
happening?

 

Cheers!

 

Ricardo Domínguez

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to