summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2021-09-17 15:39:35 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2021-09-17 15:39:35 +0200
commit755bdb8505516c518bc131fa3a2b6f7a3a5eea27 (patch)
tree78fce24f2de20e53b14f7a112e7390e9b9198ac8
parent4cdc6437a6e0b75ca0fdcccd307d7354a5388c97 (diff)
Fixed bug that stopped registration towards remote registrar
If someone tries to register to us, which does not make sense, caused to stop the registration process to the remote registrar. This is now fixed.
-rw-r--r--src/sip/sip.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/sip/sip.c b/src/sip/sip.c
index 0988213..d1f40c7 100644
--- a/src/sip/sip.c
+++ b/src/sip/sip.c
@@ -893,7 +893,6 @@ static void ep_i_register(sip_endpoint_t *sip_ep, int status, nua_t *nua, nua_ha
nua_destroy_event(saved);
PDEBUG(DSIP, DEBUG_DEBUG, "destroying nua_handle %p (register)\n", nh);
nua_handle_destroy(nh);
- sip_ep->register_handle = NULL;
return;
}
@@ -930,7 +929,6 @@ static void ep_i_register(sip_endpoint_t *sip_ep, int status, nua_t *nua, nua_ha
nua_destroy_event(saved);
PDEBUG(DSIP, DEBUG_DEBUG, "destroying nua_handle %p (register)\n", nh);
nua_handle_destroy(nh);
- sip_ep->register_handle = NULL;
return;
}
@@ -963,7 +961,6 @@ static void ep_i_register(sip_endpoint_t *sip_ep, int status, nua_t *nua, nua_ha
// PDEBUG(DSIP, DEBUG_DEBUG, "nua_handle %p (register)\n", nh);
PDEBUG(DSIP, DEBUG_DEBUG, "destroying nua_handle %p (register)\n", nh);
nua_handle_destroy(nh);
- sip_ep->register_handle = NULL;
}
static void ep_r_register(sip_endpoint_t *sip_ep, int status, char const *phrase, nua_handle_t *nh, sip_t const *sip)
@@ -1507,10 +1504,6 @@ static void sip_message(nua_event_t event, int status, char const *phrase, nua_t
/* new handle */
switch (event) {
case nua_i_register:
- if (!call && !sip_ep->register_handle) {
- PDEBUG(DSIP, DEBUG_DEBUG, "new nua_handle %p (register)\n", nh);
- sip_ep->register_handle = nh;
- }
if (!call) {
ep_i_register(sip_ep, status, nua, nh, sip);
return;