From b879a937e74c9d039b7535bf8bddb32d7ca26e49 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 1 Feb 2008 19:57:34 +0000 Subject: [PATCH] tweak display name from different headers (SFSIP-47) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7472 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index f0ea2f7acf..083ab222fd 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -2375,7 +2375,7 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_ if (rpid->rpid_url && rpid->rpid_url->url_user) { from_user = rpid->rpid_url->url_user; } - if (rpid->rpid_display) { + if (!switch_strlen_zero(rpid->rpid_display)) { displayname = rpid->rpid_display; } } @@ -2384,7 +2384,7 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_ if (passerted->paid_url && passerted->paid_url->url_user) { from_user = passerted->paid_url->url_user; } - if (passerted->paid_display) { + if (!switch_strlen_zero(passerted->paid_display)) { displayname = passerted->paid_display; } } @@ -2393,7 +2393,7 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_ if (ppreferred->ppid_url && ppreferred->ppid_url->url_user) { from_user = ppreferred->ppid_url->url_user; } - if (ppreferred->ppid_display) { + if (!switch_strlen_zero(ppreferred->ppid_display)) { displayname = ppreferred->ppid_display; } }