]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
park should not render but everything else should
authorBrian West <brian@freeswitch.org>
Mon, 31 Dec 2007 20:41:35 +0000 (20:41 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 31 Dec 2007 20:41:35 +0000 (20:41 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7046 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_presence.c

index 156b5f555e549310e9ac64192fd6b8a40eb86849..afccf7ea5508e8055e7bb0008f63276f479900c6 100644 (file)
@@ -746,7 +746,8 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
                                        stream.write_function(&stream, "<local>\n<identity display=\"%s\">sip:%s@%s;%s=%s</identity>\n", 
                                                                                  proto, proto, host, proto, !switch_strlen_zero(clean_to_user) ? clean_to_user : "unknown");
                                        stream.write_function(&stream, "<target uri=\"sip:%s@%s\">\n", proto, host);
-                                       stream.write_function(&stream, "<param pname=\"+sip.rendering\" pvalue=\"no\"/>\n</target>\n</local>\n");  
+                                       stream.write_function(&stream, "<param pname=\"+sip.rendering\" pvalue=\"%s\"/>\n</target>\n</local>\n",
+                                                                                 !strcasecmp(proto, "park") ? "no" : "yes");  
                                        stream.write_function(&stream, "<remote>\n<identity display=\"%s\">sip:%s@%s</identity>\n", proto, uuid, host);
                                        stream.write_function(&stream, "<target uri=\"sip:%s+%s@%s;%s=%s\"/>\n", proto, uuid, host, proto, uuid);
                                        stream.write_function(&stream, "</remote>\n");