alternate fix for MODENDP-144 that does not break eyebeam/x-lite

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10102 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-10-21 20:01:52 +00:00
parent 7904c46533
commit ef24ef8db9
1 changed files with 7 additions and 0 deletions

View File

@ -791,6 +791,13 @@ static char *gen_pidf(char *user_agent, char *id, char *url, char *open, char *r
{
if (switch_stristr("polycom", user_agent)) {
*ct = "application/xpidf+xml";
/* of course!, lets make a big deal over dashes. Now the stupidity is complete. */
if (!strcmp(prpid, "on-the-phone")) {
prpid = "onthephone";
}
return switch_mprintf(
"<?xml version=\"1.0\"?>\n"
"<!DOCTYPE presence PUBLIC \"-//IETF//DTD RFCxxxx XPIDF 1.0//EN\" \"xpidf.dtd\">\n"