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

Freddy C freddyco at gmail.com
Thu Nov 29 13:32:27 CET 2012


Hi,

TLS work on TCP 5061
To view the header you can use $ hdr (HEADER_NAME).

Not much English, sorry.



2012/11/29 Kamal Palei <palei.kamal at gmail.com>

> 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
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 

*Freddy Condori Chura
Ingeniero Civil en Computación e Informática
Magister en Ingeniería de Software*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121129/5cb4f84e/attachment.htm>


More information about the sr-users mailing list