[OpenSIPS-Devel] Why "opensipsctl fifo dr_reload" returns 0 even if it fails?

Iñaki Baz Castillo ibc at aliax.net
Mon Oct 19 09:33:21 CEST 2009


El Lunes, 19 de Octubre de 2009, Bogdan-Andrei Iancu escribió:
> Hi Iñaki,
> 
> When loading rules and gateways, the DR module is able to skip records
> which are not valid - this is required to prevent a reload to failed
> because of a single bogus rule or GW.

Yes, the only issue I see is that MI commands says nothing so the only way to 
realize of it is by inspecting hte logs. Am I wrong?

 
> Regards,
> Bogdan
> 
> Iñaki Baz Castillo wrote:
> > Hi, after setting drouting tables with wrong values I run:
> >
> >   ~# opesipsctl fifo dr_reload
> >
> > The command return $? = 0 (success). However the log clearly says:
> >
> > Oct 17 23:27:45 [4422] INFO:drouting:dr_reload_cmd: "dr_reload" MI
> > command received!
> > Oct 17 23:27:45 [4422] ERROR:drouting:build_rt_info: invalid GW id 123123
> > Oct 17 23:27:45 [4422] ERROR:drouting:dr_load_routing_info: failed to add
> > routing info for rule id 204 -> skipping
> > Oct 17 23:27:45 [4422] ERROR:drouting:build_rt_info: invalid GW id 666
> > Oct 17 23:27:45 [4422] ERROR:drouting:dr_load_routing_info: failed to add
> > routing info for rule id 206 -> skipping
> > Oct 17 23:27:45 [4422] ERROR:drouting:build_rt_info: invalid GW id 4444
> > Oct 17 23:27:45 [4422] ERROR:drouting:dr_load_routing_info: failed to add
> > routing info for rule id 207 -> skipping
> >
> > Shouldn't the command return != 0 in this case?
> 
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
> 


-- 
Iñaki Baz Castillo <ibc at aliax.net>



More information about the Devel mailing list