Module: kamailio
Branch: master
Commit: dfaf93c3cc9bd6e65dacafd01a8299f42abacbf5
URL:
https://github.com/kamailio/kamailio/commit/dfaf93c3cc9bd6e65dacafd01a8299f…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: 2015-02-11T15:30:42-05:00
pua_dialoginfo: set expiration timeout to 10s for dialogs in terminated state
- this will avoid accumulation of expired dialogs
---
Modified: modules/pua_dialoginfo/pua_dialoginfo.c
---
Diff:
https://github.com/kamailio/kamailio/commit/dfaf93c3cc9bd6e65dacafd01a8299f…
Patch:
https://github.com/kamailio/kamailio/commit/dfaf93c3cc9bd6e65dacafd01a8299f…
---
diff --git a/modules/pua_dialoginfo/pua_dialoginfo.c
b/modules/pua_dialoginfo/pua_dialoginfo.c
index 7bed1998..de53e0f 100644
--- a/modules/pua_dialoginfo/pua_dialoginfo.c
+++ b/modules/pua_dialoginfo/pua_dialoginfo.c
@@ -269,11 +269,11 @@ __dialog_sendpublish(struct dlg_cell *dlg, int type, struct
dlg_cb_params *_para
dlginfo->from_uri.s);
dialog_publish_multi("terminated", dlginfo->pubruris_caller,
&(dlginfo->from_uri), &uri, &(dlginfo->callid), 1,
- dlginfo->lifetime, 0, 0, &(dlginfo->from_contact),
+ 10, 0, 0, &(dlginfo->from_contact),
&target, send_publish_flag==-1?1:0);
dialog_publish_multi("terminated", dlginfo->pubruris_callee,
&uri, &(dlginfo->from_uri), &(dlginfo->callid), 0,
- dlginfo->lifetime, 0, 0, &target, &(dlginfo->from_contact),
+ 10, 0, 0, &target, &(dlginfo->from_contact),
send_publish_flag==-1?1:0);
break;
case DLGCB_CONFIRMED:
@@ -364,11 +364,11 @@ __dialog_sendpublish(struct dlg_cell *dlg, int type, struct
dlg_cb_params *_para
type, dlginfo->from_uri.len, dlginfo->from_uri.s);
dialog_publish_multi("terminated", dlginfo->pubruris_caller,
&(dlginfo->from_uri), &uri, &(dlginfo->callid), 1,
- dlginfo->lifetime, 0, 0, &(dlginfo->from_contact), &target,
+ 10, 0, 0, &(dlginfo->from_contact), &target,
send_publish_flag==-1?1:0);
dialog_publish_multi("terminated", dlginfo->pubruris_callee, &uri,
&(dlginfo->from_uri), &(dlginfo->callid), 0,
- dlginfo->lifetime, 0, 0, &target, &(dlginfo->from_contact),
+ 10, 0, 0, &target, &(dlginfo->from_contact),
send_publish_flag==-1?1:0);
}