From a96db89778f899fa9fcd8667f3b745ca7763bb57 Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Tue, 18 Oct 2011 15:08:50 -0400 Subject: [PATCH] Return proper renewal OK field on checkout fail This will allow (hopefully) the self check to know that a renewal was attempted on checkout failure (if the flag is set). Signed-off-by: Thomas Berezansky --- Sip/MsgType.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sip/MsgType.pm b/Sip/MsgType.pm index 8aeb9f7..783bf63 100644 --- a/Sip/MsgType.pm +++ b/Sip/MsgType.pm @@ -593,7 +593,7 @@ sub handle_checkout { # Checkout failed # Checkout Response: not ok, no renewal, don't know mag. media, # no desensitize - $resp = sprintf("120NUN%s", Sip::timestamp); + $resp = sprintf("120%sUN%s", sipbool($status->renew_ok), Sip::timestamp); $resp .= add_field(FID_INST_ID, $inst); $resp .= add_field(FID_PATRON_ID, $patron_id); $resp .= add_field(FID_ITEM_ID, $item_id); -- 2.11.0