]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip.c: Space after port causes unnecessary resolution attempt 48/2448/1
authorFrancesco Castellano <francesco.castellano@messagenet.it>
Fri, 20 Nov 2015 14:02:48 +0000 (15:02 +0100)
committerJoshua Colp <jcolp@digium.com>
Wed, 23 Mar 2016 13:58:56 +0000 (08:58 -0500)
commitd5fcd74fb522026730976615ea67f6492915bc33
tree05fad4c8063bd2c0c60b5ff8d4744ad361ea78b0
parent613fdff54387cbb32e443938c4645eac4f05da22
chan_sip.c: Space after port causes unnecessary resolution attempt

check_via() already skips leading blanks where the sent-by address (with the
optional port) should be placed.

Since RFC 3261 allows for blanks between the port ant the Via parameters:
> https://tools.ietf.org/html/rfc3261#section-20.42
(actually it allows a lot of blanks more ;-)). I just switched from
ast_skip_blanks() to ast_strip() on the local copy of the string.

ASTERISK-21301 #close

Change-Id: Ie5b8fe5a07067b7c0dc9bcdd1707e99b23b02b06
channels/chan_sip.c