Module: kamailio Branch: master Commit: a33b41ba804bc944b0e1c4ecf17fdc3ca68d4da0 URL: https://github.com/kamailio/kamailio/commit/a33b41ba804bc944b0e1c4ecf17fdc3c...
Author: Stefan Mititelu stefan-cristian.mititelu@1and1.ro Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2022-09-14T18:11:50+02:00
siputils: export is_gruu() to kemi
---
Modified: src/modules/siputils/siputils.c
---
Diff: https://github.com/kamailio/kamailio/commit/a33b41ba804bc944b0e1c4ecf17fdc3c... Patch: https://github.com/kamailio/kamailio/commit/a33b41ba804bc944b0e1c4ecf17fdc3c...
---
diff --git a/src/modules/siputils/siputils.c b/src/modules/siputils/siputils.c index e7c5e3dcfca..88ed33050b6 100644 --- a/src/modules/siputils/siputils.c +++ b/src/modules/siputils/siputils.c @@ -118,6 +118,7 @@ static int fixup_get_uri_param(void** param, int param_no); static int free_fixup_get_uri_param(void** param, int param_no); static int fixup_option(void** param, int param_no);
+static int ki_is_gruu(sip_msg_t *msg);
char *contact_flds_separator = DEFAULT_SEPARATOR;
@@ -726,11 +727,20 @@ static sr_kemi_t sr_kemi_siputils_exports[] = { { SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } }, + { str_init("siputils"), str_init("is_gruu"), + SR_KEMIP_INT, ki_is_gruu, + { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + },
{ {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } } }; /* clang-format on */
+static int ki_is_gruu(sip_msg_t *msg) { + return w_is_gruu(msg, NULL, NULL); +} + /** * */