From 24a6032405df44e55094863a59af9940495a8655 Mon Sep 17 00:00:00 2001 From: djfiander Date: Tue, 30 May 2006 01:58:50 +0000 Subject: [PATCH] Fix minor bugs in error condition for Renew Response --- Sip/MsgType.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Sip/MsgType.pm b/Sip/MsgType.pm index f5a4271..c4e7e58 100644 --- a/Sip/MsgType.pm +++ b/Sip/MsgType.pm @@ -1317,12 +1317,13 @@ sub handle_renew { } else { # renew failed for some reason # not OK, renewal not OK, Unknown media type (why bother checking?) - $resp .= '0NU'; + $resp .= '0NUN'; $resp .= Sip::timestamp; $resp .= add_field(FID_PATRON_ID, $patron_id); - $resp .= add_field(FID_ITEM_ID, $item_id); - $resp .= add_field(FID_TITLE_ID, $title_id); - $resp .= add_field(FID_DUE_DATE, Sip::timestamp($item->due_date)); + $resp .= add_field(FID_ITEM_ID, $item_id || ''); + $resp .= add_field(FID_TITLE_ID, $title_id || ''); + # Not checked out, no date to report + $resp .= add_field(FID_DUE_DATE, ''); } if ($status->fee_amount) { -- 2.11.0