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

Iñaki Baz Castillo ibc at aliax.net
Sun Oct 18 00:31:04 CEST 2009


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?


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



More information about the Devel mailing list