summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2008-04-10 13:28:30 +0000
committerJoshua Colp <jcolp@digium.com>2008-04-10 13:28:30 +0000
commita4e73acaf838cf958b33e2e5bb7ddb5c581d1b76 (patch)
tree9ac20a93299afbe6df7e7a85c883d53278adc51b /channels
parent9bd9421c835c94718c05e07adce3c084cb8fb518 (diff)
Merged revisions 114021 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114021 | file | 2008-04-10 10:27:11 -0300 (Thu, 10 Apr 2008) | 6 lines Don't add custom URI options if they don't exist OR they are empty. (closes issue #12407) Reported by: homesick Patches: uri_options-1.4.diff uploaded by homesick (license 91) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index b538b70ec..4d0bbf841 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -8677,7 +8677,7 @@ static void initreqprep(struct sip_request *req, struct sip_pvt *p, int sipmetho
}
/* If custom URI options have been provided, append them */
- if (p->options && p->options->uri_options)
+ if (p->options && !ast_strlen_zero(p->options->uri_options))
ast_str_append(&invite, 0, ";%s", p->options->uri_options);
/* This is the request URI, which is the next hop of the call