changeset 13081:7768cfa2e67e

[gaim-migrate @ 15443] fix for [ 1418678 ] Missing sip: in SUBSCRIBE (SIP) committer: Tailor Script <tailor@pidgin.im>
author Thomas Butter <tbutter>
date Tue, 31 Jan 2006 12:07:10 +0000
parents 1dc109c12ef5
children f6ed8290f1cf
files src/protocols/simple/simple.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/simple/simple.c	Tue Jan 31 06:01:10 2006 +0000
+++ b/src/protocols/simple/simple.c	Tue Jan 31 12:07:10 2006 +0000
@@ -655,7 +655,7 @@
 	gchar *to;
 	if(strstr(buddy->name,"sip:")) to = g_strdup(buddy->name);
 	else to = g_strdup_printf("sip:%s",buddy->name);
-	contact = g_strdup_printf("%sContact: <%s@%s>\r\n", contact, sip->username, sip->servername);
+	contact = g_strdup_printf("%sContact: <sip:%s@%s>\r\n", contact, sip->username, sip->servername);
 	/* subscribe to buddy presence
 	 * we dont need to know the status so we do not need a callback */
 
@@ -984,7 +984,7 @@
 	else
 		watcher->expire = time(NULL) + 600;
 	sipmsg_remove_header(msg, "Contact");
-	tmp = g_strdup_printf("<%s@%s>",sip->username, sip->servername);
+	tmp = g_strdup_printf("<sip:%s@%s>",sip->username, sip->servername);
 	sipmsg_add_header(msg, "Contact", tmp);
 	gaim_debug_info("simple","got subscribe: name %s ourtag %s theirtag %s callid %s\n", watcher->name, watcher->dialog.ourtag, watcher->dialog.theirtag, watcher->dialog.callid);
 	send_sip_response(sip->gc, msg, 200, "Ok", NULL);