Created
June 16, 2018 04:59
-
-
Save alfredh/2a47125c06b3ca43326696e7d7e9ad01 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/sip/transp.c b/src/sip/transp.c | |
index dd3b7c4..bb9f6d6 100644 | |
--- a/src/sip/transp.c | |
+++ b/src/sip/transp.c | |
@@ -459,6 +459,14 @@ static void tcp_estab_handler(void *arg) | |
struct le *le; | |
int err; | |
+ { | |
+ struct sa laddr; | |
+ | |
+ tcp_conn_local_get(conn->tc, &laddr); | |
+ | |
+ re_printf("sip: establish: local addr %J\n", &laddr); | |
+ } | |
+ | |
conn->established = true; | |
le = list_head(&conn->ql); | |
@@ -519,6 +527,8 @@ static void tcp_connect_handler(const struct sa *paddr, void *arg) | |
if (err) | |
goto out; | |
+ re_printf("sip: accept: local addr %J\n", &conn->laddr); | |
+ | |
#ifdef USE_TLS | |
if (transp->tls) { | |
err = tls_start_tcp(&conn->sc, transp->tls, conn->tc, 0); | |
@@ -571,6 +581,8 @@ static int conn_send(struct sip_connqent **qentp, struct sip *sip, bool secure, | |
if (err) | |
goto out; | |
+ re_printf("sip: connect: local addr %J\n", &conn->laddr); | |
+ | |
#ifdef USE_TLS | |
if (secure) { | |
const struct sip_transport *transp; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment