[asterisk-bugs] [JIRA] (ASTERISK-21301) ERROR and failure to resolve socket address due to whitespace after port number in SIP Via header
Francesco Castellano (JIRA)
noreply at issues.asterisk.org
Thu Mar 10 09:10:56 CST 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-21301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Francesco Castellano updated ASTERISK-21301:
--------------------------------------------
Attachment: 0001-ASTERISK-21301-Avoid-complaining-about-Could-not-res.patch
An equipment of ours used to send OPTIONS to an Asterisk server with a blank between the Via port and the semicolon, so we patched it to get ridden of the warnings.
This patch works on asterisk 13, I just created it from the GIT master HEAD (the parent being commit b12980011abed533eea13d1d3b80faed331a1f1e). But it should apply finely elsewhere.
Obviously it is a very small improvement (probably you should skip the internal white spaces too).
Regards,
Francesco
> ERROR and failure to resolve socket address due to whitespace after port number in SIP Via header
> -------------------------------------------------------------------------------------------------
>
> Key: ASTERISK-21301
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-21301
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_sip/General
> Affects Versions: 11.2.1
> Environment: all
> Reporter: Martin Vit
> Attachments: 0001-ASTERISK-21301-Avoid-complaining-about-Could-not-res.patch, asterisk.patch
>
>
> ERROR[28204][C-00000003]: netsock2.c:273 ast_sockaddr_resolve: getaddrinfo("1.2.3.4", "5060 ", ...): Servname not supported for ai_socktype
> WARNING[28204][C-00000003]: chan_sip.c:17830 check_via: Could not resolve socket address for '1.2.3.4:5060 '
> the extra space after 5060 port comes from VIA header - 1.2.3.4:5060[space];params which is allowed by RFC
> I'm not sure what is right way to fix this problem but I did quick and dirty patch to address this.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list