[SR-Users] Strange TLS problem
miconda at gmail.com
Wed Oct 14 15:16:49 CEST 2015
I don't have the time to look at the code right now, but I remember that
I still have to tune some matching there, because the local port
allocated is random by the OS. One of the solutions was to set the
server name in tls.cfg and then set it via xavp_cfg (see tls parameters)
before relaying. Another one is to set the port to 0 in tls config, so
the port is no longer matched.
My plan was to enable matching the ip:port based on a value stored in
xavp_cfg, but got distracted by other tasks and forgot about it.
On 14/10/15 12:40, Pete Kelly wrote:
> I am trying to use the [client] directives in tls.cfg for the first
> time. For my configuration I need to connect to 2 servers, both via
> TLS and both using different certs.
> I have defined an entry in tls.cfg like
> [client:126.96.36.199:5061 <http://188.8.131.52:5061>]
> [client:184.108.40.206:5071 <http://220.127.116.11:5071>]
> and I also have an entry in dispatcher tables for each server using
> the URI format
> With this configuration, I expect dispatcher to send OPTIONS to each
> server, and Kamailio to resolve the host in dispatcher to the correct
> client section of tls.cfg and negotiate a connection.
> However this is not happening. Dispatcher module is trying to send
> OPTIONS as expected, and it is using TLS as expected but it is not
> using the correct [client] section from tls.cfg. Instead it is always
> falling back to [client:default], and if that is not present it then
> tries to look for some internal Kamailio defaults.
> Has anyone come across this issue before? Debug logs don't yield
> anything useful, however my suspicion is that Kamailio may be trying
> to match "sip:18.104.22.168:5061;transport=tls" from dispatcher module to
> "22.214.171.124:5061 <http://126.96.36.199:5061>" from tls.cfg.
> Any help or advice would be appreciated
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sr-users