[OpenSER-Docs] AVPOPS documentation bug - maybe

Johansson Olle E oej at edvina.net
Mon Jun 9 14:17:38 CEST 2008

9 jun 2008 kl. 13.40 skrev Henning Westerholt:

> On Thursday 05 June 2008, Johansson Olle E wrote:
>>>> The avpops module doesn't document if there's any return codes on  
>>>> the
>>>> database-related operations. I do hope there is, so I can figure  
>>>> out
>>>> if the database operation worked or not...
>>> Hi Olle,
>>> have you tried it? ;-) I did a quick look to the source, it seems
>>> that '-1' is
>>> returned if an error occured.
>> It does, I saw that too after checking the source. But the docs fail
>> to mention it...
> Hi Olle,
> i think that most functions return '-1' in case of an error, but i'm  
> not sure
> how many document this. Adding a statement to every available module  
> function
> is probably not the best way of dealing with this issue. Any idea  
> where this
> could be documented instead?

That's food for thought. In this case I can imagine more error codes  
like -2 for database error, -1 for "not found" and other codes...


More information about the sr-docs mailing list