]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4495 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 6 Aug 2012 15:49:48 +0000 (10:49 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 6 Aug 2012 15:49:48 +0000 (10:49 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index a3add9c434307b34f41463b499188cef2064431e..99f42169f1823635a564d2905e1a7eb3493ca35b 100644 (file)
@@ -900,6 +900,10 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro
                if ((tmp = switch_channel_get_variable(channel, "callee_id_number")) && !zstr(tmp)) {
                        number = (char *) tmp;
                }
+
+               if (zstr(number)) {
+                       number = "unknown";
+               }
        }
 
        if (zstr(name)) {
@@ -912,7 +916,7 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro
                name = (char *) number;
        }
 
-       if (zstr(name) && zstr(number)) {
+       if (zstr(name) || zstr(number)) {
                goto end;
        }