[sr-dev] git:4.2:d3005687: uac: reset the ongoing registration flags in case of error in tm callback
Daniel-Constantin Mierla
miconda at gmail.com
Thu Apr 16 11:02:43 CEST 2015
Module: kamailio
Branch: 4.2
Commit: d3005687cc7d52ef689592391a19fc89c59aa312
URL: https://github.com/kamailio/kamailio/commit/d3005687cc7d52ef689592391a19fc89c59aa312
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-04-16T11:02:20+02:00
uac: reset the ongoing registration flags in case of error in tm callback
- resulted in being stuck in a state that didn't retry registration
- reported by AndyJRobinson, GH#124
(cherry picked from commit 08d7b66310e7c09a70db296f533f98b32d2e4ad8)
---
Modified: modules/uac/uac_reg.c
---
Diff: https://github.com/kamailio/kamailio/commit/d3005687cc7d52ef689592391a19fc89c59aa312.diff
Patch: https://github.com/kamailio/kamailio/commit/d3005687cc7d52ef689592391a19fc89c59aa312.patch
---
diff --git a/modules/uac/uac_reg.c b/modules/uac/uac_reg.c
index 1f47ee5..d295dbb 100644
--- a/modules/uac/uac_reg.c
+++ b/modules/uac/uac_reg.c
@@ -878,6 +878,7 @@ void uac_reg_tm_callback( struct cell *t, int type, struct tmcb_params *ps)
}
error:
+ ri->flags &= ~(UAC_REG_ONGOING|UAC_REG_AUTHSENT);
if(reg_retry_interval)
ri->timer_expires = time(NULL) + reg_retry_interval;
else
More information about the sr-dev
mailing list