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

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Oct 19 19:06:52 CEST 2009


Hi Inaki,

Iñaki Baz Castillo wrote:
> 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?
>   
yes, right now there is no way to make a difference between a complete 
successful load and a partial load (with skipped rules or gateways).

Unfortunately the success code is only one ( 0 ), so we cannot play with 
multiple codes. But what can be done is to add some extra message in the 
command output to indicate if some data was discarded or not.

Regards,
Bogdan



More information about the Devel mailing list