Module: kamailio
Branch: master
Commit: 856ecb09711773c6f24831a1a1d8724733541a7e
URL:
https://github.com/kamailio/kamailio/commit/856ecb09711773c6f24831a1a1d8724…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-06-14T08:08:16+02:00
siputils: rename internal kemi function for is_sip()
---
Modified: src/modules/siputils/checks.c
Modified: src/modules/siputils/checks.h
Modified: src/modules/siputils/siputils.c
---
Diff:
https://github.com/kamailio/kamailio/commit/856ecb09711773c6f24831a1a1d8724…
Patch:
https://github.com/kamailio/kamailio/commit/856ecb09711773c6f24831a1a1d8724…
---
diff --git a/src/modules/siputils/checks.c b/src/modules/siputils/checks.c
index 7caeb809b2f..19250567479 100644
--- a/src/modules/siputils/checks.c
+++ b/src/modules/siputils/checks.c
@@ -119,7 +119,7 @@ int w_is_sip(sip_msg_t *msg, char *foo, char *bar)
/**
* return 1 (true) if it is a SIP message
*/
-int is_sip(sip_msg_t *msg)
+int ki_is_sip(sip_msg_t *msg)
{
if(msg == NULL)
return -1;
diff --git a/src/modules/siputils/checks.h b/src/modules/siputils/checks.h
index fa914ecc0da..7ce632b6116 100644
--- a/src/modules/siputils/checks.h
+++ b/src/modules/siputils/checks.h
@@ -120,7 +120,7 @@ int is_reply(struct sip_msg *msg);
* Return true (1) if it is a SIP message, otherwise false (-1)
*/
int w_is_sip(struct sip_msg *msg, char *foo, char *bar);
-int is_sip(struct sip_msg *msg);
+int ki_is_sip(struct sip_msg *msg);
/*
diff --git a/src/modules/siputils/siputils.c b/src/modules/siputils/siputils.c
index 0912c6b132b..f22f0c8f485 100644
--- a/src/modules/siputils/siputils.c
+++ b/src/modules/siputils/siputils.c
@@ -625,7 +625,7 @@ static sr_kemi_t sr_kemi_siputils_exports[] = {
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init("siputils"), str_init("is_sip"),
- SR_KEMIP_INT, is_sip,
+ SR_KEMIP_INT, ki_is_sip,
{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},