[Freeswitch-svn] [commit] r4286 - freeswitch/trunk/src/mod/endpoints/mod_dingaling
Freeswitch SVN
anthm at freeswitch.org
Thu Feb 15 11:53:44 EST 2007
Author: anthm
Date: Thu Feb 15 11:53:44 2007
New Revision: 4286
Modified:
freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c
Log:
update
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 11:53:44 2007
@@ -1643,7 +1643,21 @@
}
if (cid_msg) {
- ldl_handle_send_msg(mdl_profile->handle, tech_pvt->them, tech_pvt->us, "", cid_msg);
+ char *us, *them;
+ us = strdup(tech_pvt->us);
+ them = strdup(tech_pvt->them);
+ if (us && 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);
+ }
+ switch_safe_free(us);
+ switch_safe_free(them);
}
switch_safe_free(f_cid_msg);
More information about the Freeswitch-svn
mailing list