From: djfiander Date: Tue, 30 May 2006 01:58:50 +0000 (+0000) Subject: Fix minor bugs in error condition for Renew Response X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=24a6032405df44e55094863a59af9940495a8655;p=SIPServer.git Fix minor bugs in error condition for Renew Response --- 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) {