diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-10 13:27:11 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-10 13:27:11 +0000 |
commit | 50ecf1d3979f593c9b558115e9a5a972b544cd71 (patch) | |
tree | ae8a7b7086ee511ecad89102c49526cac98c4c0e /channels | |
parent | d544afcfbb42e749086235b5b6ccf6dde9d917ce (diff) |
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.4@114021 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 ab5be5891..ef7e5171b 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); |