[Freeswitch-svn] [commit] r4288 - freeswitch/trunk/src/mod/endpoints/mod_dingaling
Freeswitch SVN
mikej at freeswitch.org
Thu Feb 15 12:48:14 EST 2007
Author: mikej
Date: Thu Feb 15 12:48:14 2007
New Revision: 4288
Modified:
freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c
Log:
don't strip the resource off the from in a chat msg
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 Thu Feb 15 12:48:14 2007
@@ -1643,20 +1643,15 @@
}
if (cid_msg) {
- char *us, *them;
- us = strdup(tech_pvt->us);
+ char *them;
them = strdup(tech_pvt->them);
- if (us && them) {
+ if (them) {
char *p;
- if ((p = strchr(us, '/'))) {
- *p = '\0';
- }
if ((p = strchr(them, '/'))) {
*p = '\0';
}
- ldl_handle_send_msg(mdl_profile->handle, us, them, "", cid_msg);
+ ldl_handle_send_msg(mdl_profile->handle, tech_pvt->us, them, "", cid_msg);
}
- switch_safe_free(us);
switch_safe_free(them);
}
switch_safe_free(f_cid_msg);
More information about the Freeswitch-svn
mailing list