diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-10 13:30:32 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-10 13:30:32 +0000 |
commit | de847473fd745601d89d989e81349274a9c8568b (patch) | |
tree | 4b44a50f80c6e9254058295fa9d01b68e3127702 /channels | |
parent | c46e630c223fc52addcf43663738899b036814b7 (diff) |
Merged revisions 114022 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r114022 | file | 2008-04-10 10:28:30 -0300 (Thu, 10 Apr 2008) | 14 lines
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@114023 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 379a42a11..fcaba4c7c 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -8615,7 +8615,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 |