Module: kamailio Branch: master Commit: 08d7b66310e7c09a70db296f533f98b32d2e4ad8 URL: https://github.com/kamailio/kamailio/commit/08d7b66310e7c09a70db296f533f98b3...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/08d7b66310e7c09a70db296f533f98b3... Patch: https://github.com/kamailio/kamailio/commit/08d7b66310e7c09a70db296f533f98b3...
---
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 {