Module: kamailio
Branch: master
Commit: e9dd041ce6af9ee4b9cc2e29b4417787a8056776
URL:
https://github.com/kamailio/kamailio/commit/e9dd041ce6af9ee4b9cc2e29b441778…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-08-13T21:01:51+02:00
phonenum: export match_cn() to kemi
---
Modified: src/modules/phonenum/phonenum_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e9dd041ce6af9ee4b9cc2e29b441778…
Patch:
https://github.com/kamailio/kamailio/commit/e9dd041ce6af9ee4b9cc2e29b441778…
---
diff --git a/src/modules/phonenum/phonenum_mod.c b/src/modules/phonenum/phonenum_mod.c
index 5f07635099c..665fa9b2772 100644
--- a/src/modules/phonenum/phonenum_mod.c
+++ b/src/modules/phonenum/phonenum_mod.c
@@ -196,6 +196,11 @@ static sr_kemi_t sr_kemi_phonenum_exports[] = {
{ SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
+ { str_init("phonenum"), str_init("match_cn"),
+ SR_KEMIP_INT, phonenum_match_cn,
+ { SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_STR,
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
+ },
{ {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } }
};