Re: [SR-Users] Advice on placement of t_replicate (REGISTER)

2012-03-09 Thread Daniel-Constantin Mierla
Hello, it is up to you how you want it, could be better to do it if save() succeeds, for consistency, but then the replicated one may fail on the second server. There is no drawback from kamailio instance point of view, in any of the cases. Cheers, Daniel On Wed, Mar 7, 2012 at 3:48 PM, Asgarot

[SR-Users] Advice on placement of t_replicate (REGISTER)

2012-03-07 Thread Asgaroth
Hi Guru's, I'd just like some advice on t_replace and its placement in the routing script. A lot of examples show the following setup: save("location"); t_replicate("backup_server"); Would it not be wiser to have something like: if (save("location")) { t_replcate("backup_server"); } Woul