Bug 31202: Don't remove optional SIP fields with a value of "0"
authorKyle Hall <kyle@bywatersolutions.com>
Wed, 20 Jul 2022 16:32:58 +0000 (12:32 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 21 Jul 2022 18:55:56 +0000 (15:55 -0300)
commit8b957a69d4449bedd0f593cf946e5fde0e8d7a69
tree607d97dc9cc7c5ef20365c937b46f9a2fcdc6c8d
parentbf32471053fe86d909d6c7857d38f265285b5482
Bug 31202: Don't remove optional SIP fields with a value of "0"

If the value of a SIP field is "0", that evaluates to false, so any calls to maybe_add with a value of "0" will not get added to the SIP response message.

Test Plan:
1) Apply this patch
2) prove t/db_dependent/SIP/Message.t

Signed-off-by: Michal Urban <michalurban177@gmail.com>
JK: Adjust commit title

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/SIP/Sip.pm
t/db_dependent/SIP/Message.t