From 9638aee91909736a88011aa6123caf17e04c4abe Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 27 Oct 2009 19:19:07 +0000 Subject: [PATCH] reallly? really sonus? you're gonna ignore packets cos you don't like how the PAI header is formatted? git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15252 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 4d4818595f..f476149e13 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -196,7 +196,7 @@ char *generate_pai_str(switch_core_session_t *session) callee_name = callee_number; } - if (ua && !zstr(callee_number) && !switch_stristr("polycom", ua)) { + if (!zstr(callee_number) && (zstr(ua) || !switch_stristr("polycom", ua))) { callee_number = switch_core_session_sprintf(session, "sip:%s@%s", callee_number, tech_pvt->profile->sipip); }