Module: kamailio Branch: master Commit: ecd906dabbc5dc19d0fabb35d22320e2ba3fccf0 URL: https://github.com/kamailio/kamailio/commit/ecd906dabbc5dc19d0fabb35d22320e2...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2023-03-31T18:24:24+02:00
lcr: updates for the new t field names
---
Modified: src/modules/lcr/lcr_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/ecd906dabbc5dc19d0fabb35d22320e2... Patch: https://github.com/kamailio/kamailio/commit/ecd906dabbc5dc19d0fabb35d22320e2...
---
diff --git a/src/modules/lcr/lcr_mod.c b/src/modules/lcr/lcr_mod.c index 80b62f5d4c..a581c0b349 100644 --- a/src/modules/lcr/lcr_mod.c +++ b/src/modules/lcr/lcr_mod.c @@ -2830,8 +2830,8 @@ static void ping_callback(struct cell *t, int type, struct tmcb_params *ps) /* SIP URI is taken from the Transaction. * Remove the "To: <" (s+5) and the trailing >+new-line (s - 5 (To: <) * - 3 (>\r\n)). */ - uri.s = t->to.s + 5; - uri.len = t->to.len - 8; + uri.s = t->to_hdr.s + 5; + uri.len = t->to_hdr.len - 8;
LM_DBG("OPTIONS %.*s finished with code <%d>\n", uri.len, uri.s, ps->code);