[Serdev] [BUG] Commented: (SER-47) userloc patch to allow databse
resync on fifo command.
Chris St Denis (JIRA)
serdev at lists.iptel.org
Thu Sep 29 17:24:22 UTC 2005
[ http://bugs.sip-router.org/browse/SER-47?page=comments#action_10072 ]
Chris St Denis commented on SER-47:
-----------------------------------
I don't know how to do that, I just threw this together as a little hack because I needed the functionality and posted it here incase anyone could make use of it.
I suspect it's trivial for somebody who is more experienced with SER architecture to make it its own command though.
> userloc patch to allow databse resync on fifo command.
> ------------------------------------------------------
>
> Key: SER-47
> URL: http://bugs.sip-router.org/browse/SER-47
> Project: SIP Express Router
> Type: New Feature
> Components: usrloc
> Versions: 0.8.14
> Reporter: Chris St Denis
> Assignee: Jan Janak
> Priority: Trivial
>
> This patch causes the ul_flush fifo command to also reload the contacts from the database. This has the side effect of causing duplicate contacts and frequent use of it could cause the contact list to get very large.
> This was done before my userloc mode 4 patch and should not be used with it. The userloc mode4 patch purges the contact list just before reload so it does not have this problem. Something similar could be added here but this is an old patch and I don?t have time to add that functionality -- Just contributing it for anyone who wants it.
> --- modules/usrloc/ul_fifo.c.orig Wed May 25 11:38:39 2005
> +++ modules/usrloc/ul_fifo.c Wed May 25 11:38:49 2005
> @@ -114,6 +114,7 @@
> int static ul_flush(FILE* pipe, char* response_file)
> {
> synchronize_all_udomains();
> + preload_all_udomains();
> fifo_reply(response_file, "200 ul_flush completed" );
> return 1;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://bugs.sip-router.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
More information about the Serdev
mailing list