~singpolyma/asterisk

aac0fc0b8cdca873c48632951e5168cac283a391 — Stephen Paul Weber 3 years ago 69b4c13
Commit Debian 3.0 (quilt) metadata

[dgit (8.5) quilt-fixup]
2 files changed, 20 insertions(+), 0 deletions(-)

A debian/patches/allow--in-user-part-of-fromuser_and_doma.patch
M debian/patches/series
A debian/patches/allow--in-user-part-of-fromuser_and_doma.patch => debian/patches/allow--in-user-part-of-fromuser_and_doma.patch +19 -0
@@ 0,0 1,19 @@
From: Stephen Paul Weber <singpolyma@singpolyma.net>
Date: Sat, 22 Aug 2020 21:07:48 -0500
X-Dgit-Generated: 1:16.2.1~dfsg-1+deb10u1 69b4c1393ac1eb7ca2abad79b0dbb08e1d15af9e
Subject: Allow @ in user part of fromuser_and_domain


---

--- asterisk-16.2.1~dfsg.orig/channels/chan_sip.c
+++ asterisk-16.2.1~dfsg/channels/chan_sip.c
@@ -30774,7 +30774,7 @@ static struct ast_channel *sip_request_c
 				*forward_compat = '\0';
 			}
 
-			if ((fromdomain = strchr(fromuser_and_domain, '@'))) {
+			if ((fromdomain = strrchr(fromuser_and_domain, '@'))) {
 				*fromdomain++ = '\0';
 				/* Set fromdomain. */
 				if (!ast_strlen_zero(fromdomain)) {

M debian/patches/series => debian/patches/series +1 -0
@@ 41,3 41,4 @@ apply-patch-from-eta.patch
there-can-be-children-other-than-content.patch
remove-duplicate-fingerprint.patch
default-to-active-on-session-accept.patch
allow--in-user-part-of-fromuser_and_doma.patch