[sr-dev] git:master:45d7500a: registrar: proper attribute name for contact record xavp

Daniel-Constantin Mierla miconda at gmail.com
Thu May 12 18:50:10 CEST 2022


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-05-12T18:49:06+02:00

registrar: proper attribute name for contact record xavp

---

Modified: src/modules/registrar/regpv.c

---

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

---

diff --git a/src/modules/registrar/regpv.c b/src/modules/registrar/regpv.c
index dca26fa30e..5cf0eb6d0f 100644
--- a/src/modules/registrar/regpv.c
+++ b/src/modules/registrar/regpv.c
@@ -937,7 +937,7 @@ int ki_lookup_xavp(sip_msg_t* msg, str *utname, str* uri,
 			memset(&nxval, 0, sizeof(sr_xval_t));
 			nxval.type = SR_XTYPE_STR;
 			nxval.v.s = ptr->received;
-			STR_STATIC_SET(fxname, "socket");
+			STR_STATIC_SET(fxname, "dsturi");
 			if(xavp_add_value(&fxname, &nxval, &cxavp)==NULL) {
 				LM_ERR("failed to add xavp %.*s field\n", fxname.len, fxname.s);
 				goto error;




More information about the sr-dev mailing list