chan_sip: prevent add_route from adding empty header.
authorCorey Farrell <git@cfware.com>
Fri, 21 Feb 2014 16:49:03 +0000 (16:49 +0000)
committerCorey Farrell <git@cfware.com>
Fri, 21 Feb 2014 16:49:03 +0000 (16:49 +0000)
commit3cfa1c882618d0a8828f8109567884898f0e437b
tree063d06617072ba0cb1c3f2eb43b4714f75e00348
parentb88c818153c47dec313e8986e24fc5ac9f133113
chan_sip: prevent add_route from adding empty header.

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
channels/chan_sip.c