[OpenSIPS-Users] is this a bug? acc module setting empty string for unset fields

Kingsley Tart kingsley at dns99.co.uk
Tue May 11 10:55:57 EST 2021


On Tue, 2021-05-11 at 12:00 +0300, Liviu Chircu wrote:
> On 11.05.2021 11:58, Kingsley Tart wrote:
> > 2. the acc module defaults these fields to NULL instead of an empty
> > string
> 
> I think defaulting to SQL's special DEFAULT value is even better.

Yes that works for me, and should do the same as not specifying the
field at all which was my first suggestion, but is probably easier for
you to implement. It's better than setting to NULL I agree.

> The discussion is already ongoing on the tracker, see [1]
> 
> [1]: https://github.com/OpenSIPS/opensips/issues/2205

Excellent. This would be a good step forward.

-- 
Cheers,
Kingsley.




More information about the Users mailing list