[sr-dev] git:master:08d7b663: uac: reset the ongoing registration flags in case of error in tm callback

Daniel-Constantin Mierla miconda at gmail.com
Thu Apr 16 10:53:35 CEST 2015


Module: kamailio
Branch: master
Commit: 08d7b66310e7c09a70db296f533f98b32d2e4ad8
URL: https://github.com/kamailio/kamailio/commit/08d7b66310e7c09a70db296f533f98b32d2e4ad8

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-04-16T10:53:17+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

---

Modified: modules/uac/uac_reg.c

---

Diff:  https://github.com/kamailio/kamailio/commit/08d7b66310e7c09a70db296f533f98b32d2e4ad8.diff
Patch: https://github.com/kamailio/kamailio/commit/08d7b66310e7c09a70db296f533f98b32d2e4ad8.patch

---

diff --git a/modules/uac/uac_reg.c b/modules/uac/uac_reg.c
index 07081d4..5bf24eb 100644
--- a/modules/uac/uac_reg.c
+++ b/modules/uac/uac_reg.c
@@ -898,6 +898,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