[asterisk-bugs] [JIRA] (ASTERISK-24853) Documentation claims chan_sip outbound registrations support WS or WSS as valid transports (not true)
Rusty Newton (JIRA)
noreply at issues.asterisk.org
Thu Mar 12 08:12:34 CDT 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-24853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rusty Newton updated ASTERISK-24853:
------------------------------------
Severity: Minor (was: Critical)
> Documentation claims chan_sip outbound registrations support WS or WSS as valid transports (not true)
> -----------------------------------------------------------------------------------------------------
>
> Key: ASTERISK-24853
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-24853
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Documentation
> Affects Versions: 11.16.0, 13.2.0
> Reporter: PSDK
> Severity: Minor
>
> Hi,
> In sip.conf, is mentioned to:
> {noformat}
> " The 'transport' part defaults to 'udp' but may also be 'tcp', 'tls', 'ws', or 'wss'."
> {noformat}
> Then when we can register users, over ws to the any server that support SIP over websocket.
> I defined something like this: register => ws://100:pass100@192.168.2.220:5060/601.
> but I received this error : 'ws' is not a valid transport type on line 70 of sip.conf. defaulting to udp.
> I found that in sip/config_parser.c there isn't any line for WS or WSS transport protocols.
> {code}
> /* set transport type */
> if (!pre2.transport) {
> transport = AST_TRANSPORT_UDP;
> } else if (!strncasecmp(pre2.transport, "tcp", 3)) {
> transport = AST_TRANSPORT_TCP;
> } else if (!strncasecmp(pre2.transport, "tls", 3)) {
> transport = AST_TRANSPORT_TLS;
> } else if (!strncasecmp(pre2.transport, "udp", 3)) {
> transport = AST_TRANSPORT_UDP;
> } else {
> transport = AST_TRANSPORT_UDP;
> ast_log(LOG_NOTICE, "'%.3s' is not a valid transport type on line %d of sip.conf. defaulting to udp.\n", pre2.transport, lineno);
> }
> {code}
> So how can I patch this issue? plz help me.
> Regards,
> H.Yavari
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list