Module: kamailio
Branch: master
Commit: 3b3302e4178f22dd3aa47406598ce20fa0748c31
URL:
https://github.com/kamailio/kamailio/commit/3b3302e4178f22dd3aa47406598ce20…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-05-09T10:44:07+02:00
core: kemi - return bool for method test functions
---
Modified: src/core/kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3b3302e4178f22dd3aa47406598ce20…
Patch:
https://github.com/kamailio/kamailio/commit/3b3302e4178f22dd3aa47406598ce20…
---
diff --git a/src/core/kemi.c b/src/core/kemi.c
index afe46321f6..7c8e0a4056 100644
--- a/src/core/kemi.c
+++ b/src/core/kemi.c
@@ -1354,62 +1354,62 @@ static sr_kemi_t _sr_kemi_core[] = {
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init(""), str_init("is_INVITE"),
- SR_KEMIP_INT, sr_kemi_core_is_method_invite,
+ SR_KEMIP_BOOL, sr_kemi_core_is_method_invite,
{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init(""), str_init("is_ACK"),
- SR_KEMIP_INT, sr_kemi_core_is_method_ack,
+ SR_KEMIP_BOOL, sr_kemi_core_is_method_ack,
{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init(""), str_init("is_BYE"),
- SR_KEMIP_INT, sr_kemi_core_is_method_bye,
+ SR_KEMIP_BOOL, sr_kemi_core_is_method_bye,
{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init(""), str_init("is_CANCEL"),
- SR_KEMIP_INT, sr_kemi_core_is_method_cancel,
+ SR_KEMIP_BOOL, sr_kemi_core_is_method_cancel,
{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init(""), str_init("is_REGISTER"),
- SR_KEMIP_INT, sr_kemi_core_is_method_register,
+ SR_KEMIP_BOOL, sr_kemi_core_is_method_register,
{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init(""), str_init("is_OPTIONS"),
- SR_KEMIP_INT, sr_kemi_core_is_method_options,
+ SR_KEMIP_BOOL, sr_kemi_core_is_method_options,
{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init(""), str_init("is_SUBSCRIBE"),
- SR_KEMIP_INT, sr_kemi_core_is_method_subscribe,
+ SR_KEMIP_BOOL, sr_kemi_core_is_method_subscribe,
{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init(""), str_init("is_PUBLISH"),
- SR_KEMIP_INT, sr_kemi_core_is_method_publish,
+ SR_KEMIP_BOOL, sr_kemi_core_is_method_publish,
{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init(""), str_init("is_NOTIFY"),
- SR_KEMIP_INT, sr_kemi_core_is_method_notify,
+ SR_KEMIP_BOOL, sr_kemi_core_is_method_notify,
{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init(""), str_init("is_INFO"),
- SR_KEMIP_INT, sr_kemi_core_is_method_info,
+ SR_KEMIP_BOOL, sr_kemi_core_is_method_info,
{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init(""), str_init("is_UPDATE"),
- SR_KEMIP_INT, sr_kemi_core_is_method_update,
+ SR_KEMIP_BOOL, sr_kemi_core_is_method_update,
{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init(""), str_init("is_PRACK"),
- SR_KEMIP_INT, sr_kemi_core_is_method_prack,
+ SR_KEMIP_BOOL, sr_kemi_core_is_method_prack,
{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},