[asterisk-bugs] [JIRA] (ASTERISK-28544) Wrong contact representation in ipv6 mode

Sean Bright (JIRA) noreply at issues.asterisk.org
Fri Sep 27 10:21:47 CDT 2019


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

Sean Bright updated ASTERISK-28544:
-----------------------------------

    Comment: was deleted

(was: Actually, no. I know that is wrong. We include the brackets in {{local_name.host}} in {{res/res_pjsip_transport_websocket.c}}:

{noformat}
pj_strdup2(pool, &newtransport->transport.local_name.host, ast_sockaddr_stringify_host(ast_websocket_local_address(newtransport->ws_session)));
{noformat}

So I don't know how they would be getting stripped off. I think I am going to need to see some logs.)

> Wrong contact representation in ipv6 mode
> -----------------------------------------
>
>                 Key: ASTERISK-28544
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28544
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 16.6.0
>         Environment: Linux x64
>            Reporter: Jørgen H
>            Assignee: Jørgen H
>              Labels: patch, pjsip, webrtc
>         Attachments: 0001-res_pjsip_transport_websocket-Don-t-put-brackets-aro.patch
>
>
> res/res_pjsip.c and ast_sip_create_dialog_uas quotes ipv6 addresses with brackets [] when generating the contact address.
> The IP address is taken from transport local_name.host-variable which is already quoted with brackets by pjsip's pj_addr_str_print function. This result in Invalid URI and hangup errors when making a call in ipv6 mode



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list