]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 15 Feb 2007 16:53:44 +0000 (16:53 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 15 Feb 2007 16:53:44 +0000 (16:53 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4286 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_dingaling/mod_dingaling.c

index 3d100f8e697f4c695340dff04f44e4ec35328f25..ab7a5716a78cf07ea65dbd409230d7d6f91ade65 100644 (file)
@@ -1643,7 +1643,21 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
                }
 
                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);