From c8a93d08ebb76aa6a947e91a465c295e23affc82 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Sun, 12 Oct 2003 11:43:18 +0000
Subject: [PATCH] Properly strip "from" line

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

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index db07df9e61..488d3044d2 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3572,6 +3572,9 @@ static int get_destination(struct sip_pvt *p, struct sip_request *oreq)
 	if ((a = strchr(c, '@')) || (a = strchr(c, ';'))) {
 		*a = '\0';
 	}
+	if ((a = strchr(fr, '@')) || (a = strchr(fr, ';'))) {
+		*a = '\0';
+	}
 	if (sipdebug)
 		ast_verbose("Looking for %s in %s\n", c, p->context);
 	if (ast_exists_extension(NULL, p->context, c, 1, fr) ||
-- 
GitLab