[Serdev] [BUG] Resolved: (SER-47) userloc patch to allow databse resync on fifo command.

Jan Janak (JIRA) serdev at lists.iptel.org
Thu Sep 29 15:48:23 UTC 2005


     [ http://bugs.sip-router.org/browse/SER-47?page=history ]
     
Jan Janak resolved SER-47:
--------------------------

    Resolution: Won't Fix

I would prefer not to overload flush fifo command for this. Please introduce a new fifo command (reload) for this.

> 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