Module: kamailio
Branch: master
Commit: 927acf4c4e9bfaa97eb2b9d4f3163a26b97244aa
URL:
https://github.com/kamailio/kamailio/commit/927acf4c4e9bfaa97eb2b9d4f3163a2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-08-30T11:39:58+02:00
sca: new function that accepts to/from uri so the kemi exports are still valid
---
Modified: src/modules/sca/sca_subscribe.c
Modified: src/modules/sca/sca_subscribe.h
---
Diff:
https://github.com/kamailio/kamailio/commit/927acf4c4e9bfaa97eb2b9d4f3163a2…
Patch:
https://github.com/kamailio/kamailio/commit/927acf4c4e9bfaa97eb2b9d4f3163a2…
---
diff --git a/src/modules/sca/sca_subscribe.c b/src/modules/sca/sca_subscribe.c
index 9453e2de790..ca42fd138e9 100644
--- a/src/modules/sca/sca_subscribe.c
+++ b/src/modules/sca/sca_subscribe.c
@@ -1155,7 +1155,7 @@ int sca_subscription_from_request(sca_mod *scam, sip_msg_t *msg, int
event_type,
return rc;
}
-int ki_sca_handle_subscribe(sip_msg_t *msg, str *uri_to, str *uri_from)
+int ki_sca_handle_subscribe_uris(sip_msg_t *msg, str *uri_to, str *uri_from)
{
sca_subscription req_sub;
sca_subscription *sub = NULL;
@@ -1423,9 +1423,13 @@ int ki_sca_handle_subscribe(sip_msg_t *msg, str *uri_to, str
*uri_from)
return (rc);
}
+int ki_sca_handle_subscribe(sip_msg_t *msg)
+{
+ return ki_sca_handle_subscribe_uris(msg, NULL, NULL);
+}
int sca_handle_subscribe(sip_msg_t *msg, str *uri_to, str *uri_from)
{
- return ki_sca_handle_subscribe(msg, uri_to, uri_from);
+ return ki_sca_handle_subscribe_uris(msg, uri_to, uri_from);
}
int sca_subscription_reply(sca_mod *scam, int status_code, char *status_msg,
diff --git a/src/modules/sca/sca_subscribe.h b/src/modules/sca/sca_subscribe.h
index f4b802c81fc..cd6ab482d0e 100644
--- a/src/modules/sca/sca_subscribe.h
+++ b/src/modules/sca/sca_subscribe.h
@@ -94,6 +94,7 @@ int sca_subscription_aor_has_subscribers(int, str *);
int sca_subscription_delete_subscriber_for_event(
sca_mod *, str *, str *, str *);
int sca_subscription_terminate(sca_mod *, str *, int, str *, int, int);
-int ki_sca_handle_subscribe(sip_msg_t *msg, str *, str *);
+int ki_sca_handle_subscribe(sip_msg_t *msg);
+int ki_sca_handle_subscribe_uris(sip_msg_t *msg, str *, str *);
#endif // SCA_SUBSCRIBE_H