Besides the other remarks, the issue can come in this case from the code, it seems it uses a functions that parses proto:address:port strings for listen parameter values, and there is no support to listen on wss:... or ws:..., only for udp, tcp, tls and sctp.
Probably it should use parse_protohostport() instead of parse_phostport().
Cheers,
Daniel
According RFC webrtc clients should use ws: as transport.
From my point of veiw we need overwrite transport on kamailio side, when client try use wss transport.
On Wed, May 11, 2022, 10:40 PM Luis Azedo <luis.azedo@factorlusitano.com> wrote:
_______________________________________________
Hi,
has anyone seen this error before ? running from master
thanks
116(469) ERROR: <core> [main.c:1231]: parse_phostport(): bad protocol in wss:192.168.1.197:61609116(469) ERROR: siptrace [siptrace.c:2545]: pv_get_siptrace(): invalid src_addr: wss:192.168.1.197:61609116(469) ERROR: <core> [main.c:1231]: parse_phostport(): bad protocol in wss:10.10.4.159:5065116(469) ERROR: siptrace [siptrace.c:2554]: pv_get_siptrace(): invalid dst_addr: wss:10.10.4.159:5065
snippet of config
modparam("siptrace", "trace_mode", 1)
modparam("siptrace", "trace_init_mode", 1)
event_route[siptrace:msg]
{
if ($sel(cfg_get.kazoo.trace_ignored_methods) != $null) {
if($rm =~ $sel(cfg_get.kazoo.trace_ignored_methods)) {
xlog("L_DEBUG", "dropping trace for method $rm\n");
drop();
}
}
if ($sel(cfg_get.kazoo.trace_ignored_ports) != $null) {
if($Rp =~ $sel(cfg_get.kazoo.trace_ignored_ports)) {
xlog("L_INFO", "dropping trace for port $Rp\n");
drop();
}
}
#!ifdef KZ_TRACE_IGNORE_INTERNAL
if ($siptrace(src_hostip) =~ "127\\.0\\.0\\.1") drop();
if ($siptrace(dst_hostip) =~ "127\\.0\\.0\\.1") drop();
#!endif
}
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
_______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - Online: June 20-23, 2022 * https://www.asipto.com/sw/kamailio-advanced-training-online/