aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-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 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);