mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-31 07:34:19 +00:00
update dingaling to be able to use TLS jabber servers such as googletalk
see sample config for new options. the dingaling library has changed so you must rebuild it rm libs/libdingaling/.complete make installall git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2251 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
a53f2b0c39
commit
07a7b6e54a
7 files changed
+1597
-1923
No files matched your search
@@ -97,10 +97,12 @@ struct mdl_profile {
|
||||
char *ip;
|
||||
char *extip;
|
||||
char *lanaddr;
|
||||
char *server;
|
||||
char *exten;
|
||||
char *context;
|
||||
ldl_handle_t *handle;
|
||||
unsigned int flags;
|
||||
uint32_t flags;
|
||||
uint32_t user_flags;
|
||||
};
|
||||
|
||||
struct private_object {
|
||||
@@ -1146,6 +1148,8 @@ static switch_status_t init_profile(struct mdl_profile *profile, uint8_t login)
|
||||
if (ldl_handle_init(&handle,
|
||||
profile->login,
|
||||
profile->password,
|
||||
profile->server,
|
||||
profile->user_flags,
|
||||
profile->message,
|
||||
handle_loop,
|
||||
handle_signalling,
|
||||
@@ -1224,8 +1228,20 @@ static void set_profile_val(struct mdl_profile *profile, char *var, char *val)
|
||||
profile->ip = switch_core_strdup(module_pool, val);
|
||||
} else if (!strcasecmp(var, "ext-rtp-ip")) {
|
||||
profile->extip = switch_core_strdup(module_pool, val);
|
||||
} else if (!strcasecmp(var, "server")) {
|
||||
profile->server = switch_core_strdup(module_pool, val);
|
||||
} else if (!strcasecmp(var, "lanaddr")) {
|
||||
profile->lanaddr = switch_core_strdup(module_pool, val);
|
||||
} else if (!strcasecmp(var, "tls")) {
|
||||
if (switch_true(val)) {
|
||||
profile->user_flags |= LDL_FLAG_TLS;
|
||||
}
|
||||
} else if (!strcasecmp(var, "sasl")) {
|
||||
if (!strcasecmp(val, "plain")) {
|
||||
profile->user_flags |= LDL_FLAG_SASL_PLAIN;
|
||||
} else if (!strcasecmp(val, "md5")) {
|
||||
profile->user_flags |= LDL_FLAG_SASL_MD5;
|
||||
}
|
||||
} else if (!strcasecmp(var, "exten")) {
|
||||
profile->exten = switch_core_strdup(module_pool, val);
|
||||
} else if (!strcasecmp(var, "context")) {
|
||||
|
||||
Reference in new issue
Block a user