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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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/ecd906dabbc5dc19d0fabb35d22320e2ba3fccf0.diff
Patch: 
https://github.com/kamailio/kamailio/commit/ecd906dabbc5dc19d0fabb35d22320e2ba3fccf0.patch

---

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);
 

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to [email protected]

Reply via email to