Module: kamailio
Branch: master
Commit: 5c0dbcb62eb1e6be91b3c28ea9987566e3249342
URL:
https://github.com/kamailio/kamailio/commit/5c0dbcb62eb1e6be91b3c28ea998756…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-10-04T14:14:37+02:00
core: renamed FL_ADD_XAVP_VIA to FL_ADD_XAVP_VIA_PARAMS
- match better the purpose of the internal flag
---
Modified: src/core/msg_translator.c
Modified: src/core/parser/msg_parser.h
---
Diff:
https://github.com/kamailio/kamailio/commit/5c0dbcb62eb1e6be91b3c28ea998756…
Patch:
https://github.com/kamailio/kamailio/commit/5c0dbcb62eb1e6be91b3c28ea998756…
---
diff --git a/src/core/msg_translator.c b/src/core/msg_translator.c
index 487215c655..986f0144b1 100644
--- a/src/core/msg_translator.c
+++ b/src/core/msg_translator.c
@@ -2955,7 +2955,8 @@ char* create_via_hf( unsigned int *len,
}
/* test and add xavp params */
- if(msg && (msg->msg_flags&FL_ADD_XAVP_VIA) &&
_ksr_xavp_via_params.len>0) {
+ if(msg && (msg->msg_flags&FL_ADD_XAVP_VIA_PARAMS)
+ && _ksr_xavp_via_params.len>0) {
xparams.s = pv_get_buffer();
xparams.len = xavp_serialize_fields(&_ksr_xavp_via_params,
xparams.s, pv_get_buffer_size());
diff --git a/src/core/parser/msg_parser.h b/src/core/parser/msg_parser.h
index 0bbf83d9da..94d6db0d7f 100644
--- a/src/core/parser/msg_parser.h
+++ b/src/core/parser/msg_parser.h
@@ -106,7 +106,7 @@ typedef enum request_method {
#define FL_RR_ADDED (1<<18) /* Record-Route header was added */
#define FL_UAC_AUTH (1<<19) /* Proxy UAC-like authentication */
#define FL_ADD_SRVID (1<<20) /*!< add 'srvid' to local via hdr
*/
-#define FL_ADD_XAVP_VIA (1<<21) /*!< add xavp fields to local via params
*/
+#define FL_ADD_XAVP_VIA_PARAMS (1<<21) /*!< add xavp fields to local via params
*/
#define FL_MSG_NOREPLY (1<<22) /*!< do not send sip reply for request */
/* WARNING: Value (1 << 28) is temporarily reserved for use in kamailio
call_control