]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add params
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 3 Jan 2012 23:42:15 +0000 (17:42 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 3 Jan 2012 23:42:15 +0000 (17:42 -0600)
src/mod/endpoints/mod_sofia/sofia_presence.c

index adb3231b3b46749e2b4dcbc441093f159d7830c4..94dd8622e5ba2318ecdad5eb0efe11312cf58a1a 100644 (file)
@@ -2270,7 +2270,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
                                        } else if (!strcasecmp(proto, "queue")) {
                                                stream.write_function(&stream, "<local>\n<identity display=\"queue\">sip:queue@%s;fifo=%s</identity>\n",
                                                                                          host, !zstr(clean_to_user) ? clean_to_user : "unknown");
-                                               stream.write_function(&stream, "<target uri=\"sip:queue@%s\">\n", host);
+                                               stream.write_function(&stream, "<target uri=\"sip:queue@%s;fifo=%s\">\n", host, !zstr(clean_to_user) ? clean_to_user : "unknown");
                                                stream.write_function(&stream, "<param pname=\"+sip.rendering\" pvalue=\"no\"/>\n</target>\n</local>\n");
                                                stream.write_function(&stream, "<remote>\n<identity display=\"queue\">sip:%s</identity>\n", uuid);
                                                if (skip_proto) {
@@ -2283,7 +2283,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
                                        } else if (!strcasecmp(proto, "park")) {
                                                stream.write_function(&stream, "<local>\n<identity display=\"park\">sip:park@%s;slot=%s</identity>\n",
                                                                                          host, !zstr(clean_to_user) ? clean_to_user : "unknown");
-                                               stream.write_function(&stream, "<target uri=\"sip:park@%s\">\n", host);
+                                               stream.write_function(&stream, "<target uri=\"sip:park@%s;slot=%s\">\n", host, !zstr(clean_to_user) ? clean_to_user : "unknown");
                                                stream.write_function(&stream, "<param pname=\"+sip.rendering\" pvalue=\"no\"/>\n</target>\n</local>\n");
                                                stream.write_function(&stream, "<remote>\n<identity display=\"park\">sip:%s</identity>\n", uuid);
                                                if (skip_proto) {
@@ -2295,7 +2295,8 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
                                        } else if (!strcasecmp(proto, "conf")) {
                                                stream.write_function(&stream, "<local>\n<identity display=\"conference\">sip:conference@%s;conference=%s</identity>\n",
                                                                                          host, !zstr(clean_to_user) ? clean_to_user : "unknown");
-                                               stream.write_function(&stream, "<target uri=\"sip:conference@%s\">\n", host);
+                                               stream.write_function(&stream, "<target uri=\"sip:conference@%s;conference=%s\">\n", 
+                                                                                         host, !zstr(clean_to_user) ? clean_to_user : "unknown");
                                                stream.write_function(&stream, "<param pname=\"+sip.rendering\" pvalue=\"yes\"/>\n</target>\n</local>\n");
                                                stream.write_function(&stream, "<remote>\n<identity display=\"conference\">sip:%s@%s</identity>\n", uuid, host);
                                                if (skip_proto) {