Fix regression caused by ASTERISK-22582. Empty Route
headers were added when the route had a single strict
hop.
(closes issue ASTERISK-23306)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/3236/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@408699
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
}
if ((r = sip_route_list(route, 0, skip))) {
- add_header(req, "Route", ast_str_buffer(r));
+ if (ast_str_strlen(r)) {
+ add_header(req, "Route", ast_str_buffer(r));
+ }
ast_free(r);
}
}