From: Anthony Minessale Date: Wed, 28 Mar 2012 23:44:51 +0000 (-0500) Subject: FS-4049 working X-Git-Tag: v1.2-rc1~19^2^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=175b6b223a63873e19b5a3df7c9ac144189046fa;p=thirdparty%2Ffreeswitch.git FS-4049 working --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 4b84d6a667..c553119360 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -2453,15 +2453,15 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * from_id = switch_str_nil(switch_event_get_header(helper->event, "Caller-Destination-Number")); } else { - from_id = switch_str_nil(switch_event_get_header(helper->event, "Other-Leg-Caller-ID-Number")); - from_name = switch_event_get_header(helper->event, "Other-Leg-Caller-ID-Name"); + from_id = switch_str_nil(switch_event_get_header(helper->event, "Caller-Caller-ID-Number")); + from_name = switch_event_get_header(helper->event, "Caller-Caller-ID-Name"); if (zstr(from_id)) { - from_id = switch_str_nil(switch_event_get_header(helper->event, "Caller-Caller-ID-Number")); + from_id = switch_str_nil(switch_event_get_header(helper->event, "Other-Leg-Caller-ID-Number")); } if (zstr(from_name)) { - from_name = switch_event_get_header(helper->event, "Caller-Caller-ID-Name"); + from_name = switch_event_get_header(helper->event, "Other-Leg-Caller-ID-Name"); } } @@ -2583,6 +2583,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * } stream.write_function(&stream, "\n", clean_to_user, host); stream.write_function(&stream, "\n"); + } else if (!strcasecmp(proto, "queue")) { stream.write_function(&stream, "\nsip:%s@%s;proto=queue\n", !zstr(clean_to_user) ? clean_to_user : "unknown", host);