]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 4 Dec 2008 22:24:43 +0000 (22:24 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 4 Dec 2008 22:24:43 +0000 (22:24 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10602 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 1dae34c20fd7404d10b9229978584dec2261fdff..3b0065c6adc89d1aec8eaaef929e28762033d084 100644 (file)
@@ -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);