From: Joshua Colp Date: Thu, 10 Apr 2008 13:27:11 +0000 (+0000) Subject: Don't add custom URI options if they don't exist OR they are empty. X-Git-Tag: 1.4.20-rc1~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5cfba060893523fb76acdde3f0b88d2b3a5d842e;p=thirdparty%2Fasterisk.git 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/branches/1.4@114021 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index ab5be58910..ef7e5171b2 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7034,7 +7034,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_build_string(&invite, &invite_max, ";%s", p->options->uri_options); ast_string_field_set(p, uri, invite_buf);