From: Anthony Minessale Date: Thu, 4 Dec 2008 22:24:43 +0000 (+0000) Subject: doh X-Git-Tag: v1.0.2~354 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73d365830cce119191fd59df9deef12f5428773d;p=thirdparty%2Ffreeswitch.git doh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10602 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 1dae34c20f..3b0065c6ad 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -1188,7 +1188,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) or did he just suggest it to make our lives miserable? */ use_from_str = from_str; - if (strcasecmp(tech_pvt->caller_profile->caller_id_name, "_undef_")) { + if (!strcasecmp(tech_pvt->caller_profile->caller_id_name, "_undef_")) { from_str = switch_core_session_sprintf(session, "<%s>", use_from_str); } else { from_str = switch_core_session_sprintf(session, "\"%s\" <%s>", tech_pvt->caller_profile->caller_id_name, use_from_str);