Module: kamailio Branch: master Commit: b198b390106924df2279d94f28305c25c86b435e URL: https://github.com/kamailio/kamailio/commit/b198b390106924df2279d94f28305c25...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2015-10-01T16:08:13+02:00
dialog: completed previous commit for spiral handling
---
Modified: modules/dialog/dlg_handlers.c
---
Diff: https://github.com/kamailio/kamailio/commit/b198b390106924df2279d94f28305c25... Patch: https://github.com/kamailio/kamailio/commit/b198b390106924df2279d94f28305c25...
---
diff --git a/modules/dialog/dlg_handlers.c b/modules/dialog/dlg_handlers.c index 3117e33..123330b 100644 --- a/modules/dialog/dlg_handlers.c +++ b/modules/dialog/dlg_handlers.c @@ -796,8 +796,10 @@ int dlg_new_dialog(sip_msg_t *req, struct cell *t, const int run_initial_cbs) dlg = dlg_search(&callid, &ftag, &ttag, &dir); if(dlg) { if (detect_spirals) { - if (spiral_detected == 1) + if (spiral_detected == 1) { + dlg_hash_release(&callid); return 0; + }
if ( dlg->state != DLG_STATE_DELETED ) { LM_DBG("Callid '%.*s' found, must be a spiraled request\n",