]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip.c: Space after port causes unnecessary resolution attempt 47/2447/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:43 +0000 (08:58 -0500)
commitc5170677e72e48b487462e79a31974845a417dce
tree23f01ffb056600c1190a4efcd064a1edf25288ff
parent7d6782cc0feb5357c6e9feb7c810f7fbe76190f0
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