[sr-dev] git:master:aa7dee1a: uac: bug fix for uac module uac_replace* functions, register callbacks after start

Henning Westerholt hw at skalatan.de
Sat Apr 13 20:00:46 CEST 2019


Module: kamailio
Branch: master
Commit: aa7dee1ab874aaac807c2166f38ec9da0fa0ccf6
URL: https://github.com/kamailio/kamailio/commit/aa7dee1ab874aaac807c2166f38ec9da0fa0ccf6

Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2019-04-13T19:52:03+02:00

uac: bug fix for uac module uac_replace* functions, register callbacks after start

- bug fix for uac module uac_replace* functions, register callbacks after restart
- only applies to the dialog tracking mode of the module
- the uac module was not using the available dialog callbacks for a proxy (re-)start
- because of this the uac module was not able to properly re-write in-dialog messages
  like BYEs after a proxy restart
- As we don't have access to the uac_flag at the dialog on load callback, we just
  install a callback for both from and to rewriting cases. If only one of the
  functions is used in the cfg hen the uac module will obviously not find
  database variables for the other case, and will log an error. This is of
  course also a bit inefficient, but as it only applies to this (re-)start
  case it does not matter.

---

Modified: src/modules/uac/replace.c
Modified: src/modules/uac/replace.h
Modified: src/modules/uac/uac.c

---

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




More information about the sr-dev mailing list