]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
alternate fix for MODENDP-144 that does not break eyebeam/x-lite
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 21 Oct 2008 20:01:52 +0000 (20:01 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 21 Oct 2008 20:01:52 +0000 (20:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10102 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_presence.c

index 0da7ee7809b249b7f5e9d2bda2521140d7506eae..d0beebec3011e821d0bf8a225bb844f560853c92 100644 (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"