When the sipserver processes a end_patron_session it always reports an erroneous institution_id has been sent. The reason is because it is not passing the contents of the requisite field but of an undefined value because the hash key is incorrect. It should be passing the field value, correctly as in other messages
Created attachment 4041 [details] [review] Proposed Patch
Pushed, please test