[SR-Users] Enforced TLS, still some packets are through UDP

Kamal Palei palei.kamal at gmail.com
Thu Nov 29 12:47:40 CET 2012


Dear All
I ma trying to have all SIP signalling through TLS. Using Kamailio 3.1.5.

In a typical setup, endpoints initiates call, messages reach Kamailio
proxy, Kamailio proxy forwards these packets to main proxy.

In Kamailio.cfg, I have added below code.


route {

        # per request initial checks
        route(REQINIT);
        setflag(FLT_NATS);

        if(is_method("REGISTER"))
        {
                t_relay_to("tls:115.114.48.19:443");
                exit();
        }
        else
        {
                xlog("incoming request\n");

                route(WITHINDLG);
                route(RTPPROXY);
                t_on_reply("REPLY_ONE");
                t_on_failure("FAIL_ONE");
                t_relay_to("tls:115.114.48.19:443");
                exit();
        }

..............

I am finding most of the messages are getting transmitted in TLS. But few
ACK and REFER / REFER response packets are still being transported in UDP.

Can somebody tell me whats the wrong I am doing here.

By any chance
                route(WITHINDLG);
                route(RTPPROXY);

before t_relay_to("tls:115.114.48.19:443");

can cause this ????


And one more doubt.., 115.114.48.19 I get in route header. How can I
extract the value of route header, so that I do not have to hard-code

Many thanks in advance.

-kamal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121129/dd49b9c7/attachment.htm>


More information about the sr-users mailing list