From 6076e0c7e93814e1990adb93d4a0030a96b9581a Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 9 Nov 2016 16:27:10 -0600 Subject: [PATCH] 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 --- src/mod/endpoints/mod_sofia/sofia_presence.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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")) {