[OpenSER-Devel] SF.net SVN: openser: [3163] trunk/modules/permissions/mi.c

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Nov 19 10:05:05 UTC 2007


Hi Dan,

makes sense what you are saying - actually there are a lot of places 
where the return codes of the MI commands needs to be change (there are  
mixture between the return code of the MI command and the retune code of 
the command itself - like if I a look after an non-existing AOR, the MI 
command is successful and it should return 200 OK but the command itself 
should return 404 NF ).

I think it is a bit too late for this changes now, but it is a must for 
the next release (1.4).

Regards,
Bogdan

Dan Pascu wrote:
> I wonder if we should send a 200 OK for this case. Since the database 
> reload is not necessary because caching is disabled, having this 
> operation be a NO-OP is tempting to allow a provisioning frontend to 
> issue a reload command that works on both a caching-enabled proxy as well 
> as on a caching-disabled one.
>
> 500 is a too generic error which makes this case hard to distinguish and 
> in the end sending a trusted reload to a proxy that doesn't cache the 
> trusted table should not result in an error but at most in a warning IMO
>
> If people are not comfortable with sending a 200 OK in this case because 
> it masks a potential issue, maybe we should use another 2xx code to 
> indicate that the operation was still successful, but there is a 
> difference compared to a normal table reload.
>
> Anyway, I thing this should either be considered a successful operation or 
> have a result code that is easily discernable, preferable a positive one. 
> It should not have the generic 500 error code at all.
>
> On Friday 16 November 2007, Bogdan-Andrei Iancu wrote:
>   
>> Revision: 3163
>>           http://openser.svn.sourceforge.net/openser/?rev=3163&view=rev
>> Author:   bogdan_iancu
>> Date:     2007-11-16 08:03:58 -0800 (Fri, 16 Nov 2007)
>>
>> Log Message:
>> -----------
>> - fixed trusted_reload MI command - disable it if cache is not used.
>>   Reported by Dan Pascu.
>>
>> Modified Paths:
>> --------------
>>     trunk/modules/permissions/mi.c
>>     
>
>   




More information about the Devel mailing list