[asterisk-bugs] [JIRA] (ASTERISK-21301) extra space after port in VIA is treated as ERROR

Martin Vit (JIRA) noreply at issues.asterisk.org
Tue Mar 19 04:51:01 CDT 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-21301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Vit updated ASTERISK-21301:
----------------------------------

    Attachment: asterisk.patch

this is patch to remove space before port and spaces after port. This is probably NOT right way to do it and it should be done probably in sip channel. 
                
> extra space after port in VIA is treated as ERROR 
> --------------------------------------------------
>
>                 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: 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list