From: Brian West Date: Wed, 9 Nov 2016 22:27:10 +0000 (-0600) Subject: FS-9204: complte the urls so that snom can execute the pickup, It used to probably... X-Git-Tag: v1.8.0~1108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6076e0c7e93814e1990adb93d4a0030a96b9581a;p=thirdparty%2Ffreeswitch.git FS-9204: complte the urls so that snom can execute the pickup, It used to probably send it to the proxy, but now needs the host in the packet or throws network error --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index e1973efabe..211e9bb7cd 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -3017,11 +3017,11 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * !zstr(clean_to_user) ? clean_to_user : "unknown", host); stream.write_function(&stream, "\n", !zstr(clean_to_user) ? clean_to_user : "unknown", host); stream.write_function(&stream, "\n\n\n"); - stream.write_function(&stream, "\nsip:%s\n", uuid); + stream.write_function(&stream, "\nsip:%s@%s\n", uuid, host); if (skip_proto) { - stream.write_function(&stream, "\n", uuid); + stream.write_function(&stream, "\n", uuid, host); } else { - stream.write_function(&stream, "\n", uuid); + stream.write_function(&stream, "\n", uuid, host); } stream.write_function(&stream, "\n"); @@ -3032,9 +3032,9 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * stream.write_function(&stream, "\n\n\n"); stream.write_function(&stream, "\nsip:%s\n", uuid); if (skip_proto) { - stream.write_function(&stream, "\n", uuid); + stream.write_function(&stream, "\n", uuid, host); } else { - stream.write_function(&stream, "\n", uuid); + stream.write_function(&stream, "\n", uuid, host); } stream.write_function(&stream, "\n"); } else if (!strcasecmp(proto, "pickup")) { @@ -3042,11 +3042,11 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * !zstr(clean_to_user) ? clean_to_user : "unknown", host); stream.write_function(&stream, "\n", !zstr(clean_to_user) ? clean_to_user : "unknown", host); stream.write_function(&stream, "\n\n\n"); - stream.write_function(&stream, "\nsip:%s\n", uuid); + stream.write_function(&stream, "\nsip:%s@%s\n", uuid, host); if (skip_proto) { - stream.write_function(&stream, "\n", uuid); + stream.write_function(&stream, "\n", uuid, host); } else { - stream.write_function(&stream, "\n", uuid); + stream.write_function(&stream, "\n", uuid, host); } stream.write_function(&stream, "\n"); } else if (!strcasecmp(proto, "conf")) {