[sr-dev] git:5.5:39143255: lost: error response fix in lost_function(), lost_held_dereference() and lost_held_function()

Wolfgang Kampichler dev at kampichler.info
Mon May 3 12:38:39 CEST 2021


Module: kamailio
Branch: 5.5
Commit: 39143255145ba6387cb001be4c70decfd3811aec
URL: https://github.com/kamailio/kamailio/commit/39143255145ba6387cb001be4c70decfd3811aec

Author: Wolfgang Kampichler <dev at kampichler.info>
Committer: Wolfgang Kampichler <dev at kampichler.info>
Date: 2021-05-03T12:33:00+02:00

lost: error response fix in lost_function(), lost_held_dereference() and lost_held_function()

- error variable was set to 0 (clean up) before return. Lost functions now returns 500
  in case of LOST/HELD server error, or 400 in case of internal error, otherwise 2xx.

(cherry picked from commit 201c219a5496924e701cc2b17fb0a439ee530813)

---

Modified: src/modules/lost/functions.c
Modified: src/modules/lost/response.c
Modified: src/modules/lost/response.h

---

Diff:  https://github.com/kamailio/kamailio/commit/39143255145ba6387cb001be4c70decfd3811aec.diff
Patch: https://github.com/kamailio/kamailio/commit/39143255145ba6387cb001be4c70decfd3811aec.patch




More information about the sr-dev mailing list