From ec6cca344b3e2df46bf66ef0fb0b05ef660fb092 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Wed, 9 Apr 2003 21:45:32 +0000
Subject: [PATCH] Add missing "Contact" line to Register

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@803 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/chan_sip.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 137c754816..6bd89f5d23 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2558,6 +2558,7 @@ static int transmit_register(struct sip_registry *r, char *cmd, char *auth)
 
 	snprintf(tmp, sizeof(tmp), "%d", default_expiry);
 	add_header(&req, "Expires", tmp);
+	add_header(&req, "Contact", p->our_contact);
 	add_header(&req, "Event", "registration");
 	add_header(&req, "Content-length", "0");
 	add_blank_header(&req);
-- 
GitLab