[OpenSIPS-Devel] Why "opensipsctl fifo dr_reload" returns 0 even if it fails?
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Mon Oct 19 06:14:34 CEST 2009
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.
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?
>
>
>
More information about the Devel
mailing list