# HG changeset patch # User Thomas Butter # Date 1138709230 0 # Node ID 7768cfa2e67e3a1d27f7b48f7144e18799a62b14 # Parent 1dc109c12ef513c161cfe37f30d0f55fbbc8a719 [gaim-migrate @ 15443] fix for [ 1418678 ] Missing sip: in SUBSCRIBE (SIP) committer: Tailor Script diff -r 1dc109c12ef5 -r 7768cfa2e67e src/protocols/simple/simple.c --- 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: \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->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);