]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4049 alt patch 2
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 28 Mar 2012 19:51:09 +0000 (14:51 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 28 Mar 2012 19:51:09 +0000 (14:51 -0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 3b09287494658cbf4213c72c5caa8547f0613674..24e16eb8620dec22b387ce0b708f5f107c46c577 100644 (file)
@@ -2456,13 +2456,14 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
                }
 
                if (zstr(from_id)) {
-                       from_id = switch_str_nil(switch_event_get_header(helper->event, "Caller-Callee-ID-Number"));
+                       from_id = from_user;
                }
 
                if (zstr(from_id)) {
-                       from_id = switch_str_nil(switch_event_get_header(helper->event, "Caller-Destination-Number"));
+                       from_id = switch_str_nil(switch_event_get_header(helper->event, "Caller-Callee-ID-Number"));
                }
 
+               
                if (zstr(from_id)) {
                        from_id = "n/a";
                }