Module: kamailio Branch: master Commit: c7e228eae76a432ea93fac7e95f50fe50979d79e URL: https://github.com/kamailio/kamailio/commit/c7e228eae76a432ea93fac7e95f50fe5...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2023-03-31T18:34:00+02:00
pua: updates for the new t field names
---
Modified: src/modules/pua/send_subscribe.c
---
Diff: https://github.com/kamailio/kamailio/commit/c7e228eae76a432ea93fac7e95f50fe5... Patch: https://github.com/kamailio/kamailio/commit/c7e228eae76a432ea93fac7e95f50fe5...
---
diff --git a/src/modules/pua/send_subscribe.c b/src/modules/pua/send_subscribe.c index 723507bb861..dc239c61b63 100644 --- a/src/modules/pua/send_subscribe.c +++ b/src/modules/pua/send_subscribe.c @@ -335,7 +335,7 @@ void subs_cback_func(struct cell *t, int cb_type, struct tmcb_params *ps) goto faked_error; } memset(callid, 0, sizeof(struct hdr_field)); - get_hdr_field(t->callid.s, t->callid.s + t->callid.len, callid); + get_hdr_field(t->callid_hdr.s, t->callid_hdr.s + t->callid_hdr.len, callid); hentity->call_id = callid->body;
from = (struct hdr_field *) pkg_malloc(sizeof(struct hdr_field)); @@ -345,7 +345,7 @@ void subs_cback_func(struct cell *t, int cb_type, struct tmcb_params *ps) goto faked_error; } memset(from, 0, sizeof(struct hdr_field)); - get_hdr_field(t->from.s, t->from.s + t->from.len, from); + get_hdr_field(t->from_hdr.s, t->from_hdr.s + t->from_hdr.len, from); parse_to(from->body.s, from->body.s + from->body.len + 1, &FROM); if(FROM.uri.len <= 0) {