Module: kamailio
Branch: master
Commit: c1bf2048de60c4abb9a5b8b343f50400deefa3bf
URL: https://github.com/kamailio/kamailio/commit/c1bf2048de60c4abb9a5b8b343f5040…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-24T12:25:38+01:00
tls: try to lookup client profile via bind address
- local address connection can have a randomly allocated port by os
---
Modified: modules/tls/tls_server.c
---
Diff: https://github.com/kamailio/kamailio/commit/c1bf2048de60c4abb9a5b8b343f5040…
Patch: https://github.com/kamailio/kamailio/commit/c1bf2048de60c4abb9a5b8b343f5040…
---
diff --git a/modules/tls/tls_server.c b/modules/tls/tls_server.c
index b7e3207..28cf1a3 100644
--- a/modules/tls/tls_server.c
+++ b/modules/tls/tls_server.c
@@ -196,8 +196,16 @@ static int tls_complete_init(struct tcp_connection* c)
} else {
state=S_TLS_CONNECTING;
sname = tls_get_connect_server_name();
- dom = tls_lookup_cfg(cfg, TLS_DOMAIN_CLI,
- &c->rcv.dst_ip, c->rcv.dst_port, sname);
+ if(&c->rcv.bind_address!=NULL) {
+ /* if there is a bind_address, use it, because the src port
+ * for connection can be randomly assigned by OS */
+ dom = tls_lookup_cfg(cfg, TLS_DOMAIN_CLI,
+ &c->rcv.bind_address->address,
+ c->rcv.bind_address->port_no, sname);
+ } else {
+ dom = tls_lookup_cfg(cfg, TLS_DOMAIN_CLI,
+ &c->rcv.dst_ip, c->rcv.dst_port, sname);
+ }
}
if (unlikely(c->state<0)) {
BUG("Invalid connection (state %d)\n", c->state);
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Jack Wang (GoGoJack)
Attached to Project - sip-router
Summary - [RTIMER] specified route block doesn't be executed...
Task Type - Bug Report
Category - Module
Status - Unconfirmed
Assigned To -
Operating System - Linux
Severity - Medium
Priority - Normal
Reported Version - 4.0
Due in Version - Undecided
Due Date - Undecided
Details - Hello everyone,
I got a little trouble on using the RTIMER module.
Sometimes the route block I set using the "exec" parameter in RTIMER module doesn't be executed,
this will happen from Kamailio server being started,
and only work (not always) after restarting server.
I have no idea why this happen,
does anyone ever met this?
Which part should I notice?
Thx :)
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=506
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.