[Freeswitch-svn] [commit] r10531 - freeswitch/trunk/src/mod/endpoints/mod_dingaling
FreeSWITCH SVN
anthm at freeswitch.org
Mon Nov 24 15:17:04 PST 2008
Author: anthm
Date: Mon Nov 24 18:17:03 2008
New Revision: 10531
Log:
fix LBDING-7
Modified:
freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c
Modified: freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c Mon Nov 24 18:17:03 2008
@@ -536,7 +536,7 @@
*p = '\0';
}
}
- ldl_handle_send_msg(profile->handle, from, to, NULL, body);
+ ldl_handle_send_msg(profile->handle, from, to, NULL, switch_str_nil(body));
} else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Profile %s\n", f_host ? f_host : "NULL");
return SWITCH_STATUS_FALSE;
@@ -1713,7 +1713,7 @@
if ((ptr = strchr(them, '/'))) {
*ptr = '\0';
}
- ldl_handle_send_msg(mdl_profile->handle, tech_pvt->us, them, "", cid_msg);
+ ldl_handle_send_msg(mdl_profile->handle, tech_pvt->us, them, "", switch_str_nil(cid_msg));
}
switch_safe_free(them);
}
@@ -2464,7 +2464,7 @@
if (profile->auto_reply) {
ldl_handle_send_msg(handle,
(profile->user_flags & LDL_FLAG_COMPONENT) ? to : ldl_handle_get_login(profile->handle), from, "",
- profile->auto_reply);
+ switch_str_nil(profile->auto_reply));
}
#endif
@@ -2487,7 +2487,7 @@
}
if ((ci = switch_loadable_module_get_chat_interface(proto))) {
- ci->chat_send(MDL_CHAT_PROTO, from, to, subject, msg, hint);
+ ci->chat_send(MDL_CHAT_PROTO, from, to, subject, switch_str_nil(msg), hint);
} else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Chat Interface [%s]!\n", proto);
}
More information about the Freeswitch-svn
mailing list