# HG changeset patch # User Thomas Butter # Date 1123147197 0 # Node ID fde0f4c1348d766f89bbab51f85c66f673a364f5 # Parent 5f79dfde334c66f38222b744151796ff5da4d94f [gaim-migrate @ 13308] - UDP fix - 501 response on unknown requests committer: Tailor Script diff -r 5f79dfde334c -r fde0f4c1348d src/protocols/simple/simple.c --- a/src/protocols/simple/simple.c Thu Aug 04 09:10:11 2005 +0000 +++ b/src/protocols/simple/simple.c Thu Aug 04 09:19:57 2005 +0000 @@ -378,7 +378,7 @@ buf = g_strdup_printf("%s %s SIP/2.0\r\n" - "Via: SIP/2.0/TCP %s:%d;branch=%s\r\n" + "Via: SIP/2.0/%s %s:%d;branch=%s\r\n" "From: ;tag=%s\r\n" "To: <%s>%s%s\r\n" "Max-Forwards: 10\r\n" @@ -389,6 +389,7 @@ "Content-Length: %d\r\n\r\n%s", method, url, + sip->udp ? "UDP" : "TCP", sip->ip, sip->listenport, branch, @@ -826,6 +827,9 @@ process_incoming_subscribe(sip, msg); found = 1; } + if(!found) { + send_sip_response(sip->gc, msg, 501, "Not implemented", NULL); + } } else { // response struct transaction *trans = transactions_find(sip, msg); if(trans) {