diff --git a/src/mod/endpoints/mod_dingaling/mod_dingaling.c b/src/mod/endpoints/mod_dingaling/mod_dingaling.c index ab7a5716a7..60cd3722db 100644 --- a/src/mod/endpoints/mod_dingaling/mod_dingaling.c +++ b/src/mod/endpoints/mod_dingaling/mod_dingaling.c @@ -1643,20 +1643,15 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi } 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);