[Freeswitch-svn] [commit] r7472 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
mikej at freeswitch.org
Fri Feb 1 14:57:35 EST 2008
Author: mikej
Date: Fri Feb 1 14:57:34 2008
New Revision: 7472
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
Log:
tweak display name from different headers (SFSIP-47)
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Fri Feb 1 14:57:34 2008
@@ -2375,7 +2375,7 @@
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 @@
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 @@
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;
}
}
More information about the Freeswitch-svn
mailing list