Hi,

I have send the patch directly to Toni.
I try attaching it here again for completeness, as I wasn't subscribed to the 
list using this email address.

/Kristian.


On Wednesday 23 October 2013 15:35:42 SIP Guru wrote:


Hi Kristian,

thank you. I'll check this. I think in some cases we are using even a higher 
lifetime.

Could you please send me a patch with your changes for the pua_dialoginfo 
module in case we run into the same issue.

Toni
 
On Tuesday 22 October 2013 13:19:01 Kristian Høgh wrote:
>Hi,
>
>I think I've got the same issue.
>At call creation we set dialog lifetime to 6 hours.
>pua_dialoginfo uses that value and send PUBLISH for each hour, even after the 
>dialog terminates.
>After 6 hours the entry is deleted.
>
>To prevent the updates, I've made a small change to pua_dialoginfo module, 
>which set pua-dialog timeout to 300 sec. when the dialog terminates.
>pua_dialoginfo then sends PUBLISH, which updates presence.
>
>Regards,
>Kristian Høgh
>
>
>On Monday 21 October 2013 15:21:16 SIP Guru wrote:
>>/ Hi,/
>>/ /
>>/ expired entries in pua table won't be deleted./
<>/ And kamailio keep sending PUBLISH's for expired entries./
>>/ /
>>/ Am I missing something ?/
>>/ /
>>/ Toni/
>>/ /
>>/ /
>>/ /
>>/ _______________________________________________/
>>/ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list/
>>/ sr-users at lists.sip-router.org[1]/
>>/ _http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users_/
>-------------- next part --------------
>A non-text attachment was scrubbed...
>Name: publish.patch
>Type: text/x-patch
>Size: 1158 bytes
>Desc: not available
>URL: 
><http://lists.sip-router.org/pipermail/sr-users/attachments/20131022/ddff432f/attachment.bin[2]>
> 



--------
[1] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[2] 
http://lists.sip-router.org/pipermail/sr-users/attachments/20131022/ddff432f/attachment.bin
--- a/modules/pua_dialoginfo/pua_dialoginfo.c	2013-04-25 16:56:29.000000000 +0200
+++ b/modules/pua_dialoginfo/pua_dialoginfo.c.	2013-08-15 15:42:38.000000000 +0200
@@ -246,8 +246,8 @@
 	case DLGCB_TERMINATED:
 	case DLGCB_EXPIRED:
 		LM_DBG("dialog over, from=%.*s\n", 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, 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), send_publish_flag==-1?1:0);
+		dialog_publish_multi("terminated", dlginfo->pubruris_caller, &(dlginfo->from_uri), &uri, &(dlginfo->callid), 1, 300, 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, 300, 0, 0, &target, &(dlginfo->from_contact), send_publish_flag==-1?1:0);
 		break;
 	case DLGCB_CONFIRMED:
 	case DLGCB_REQ_WITHIN:
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to