[SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

Yuriy Gorlichenko ovoshlook at gmail.com
Tue Oct 3 09:49:06 CEST 2017


Hi. I have presence server and it works fine for UDP/TCP/TLS endpoints.
For now i have new one type of endpoints that runs via WebSockets

It sends SUBSCRIBE request to the and then after handle_subscribe() NOTIFY
not comes to the subscriber because of
[core/forward.c:231]: get_send_socket2(): protocol/port mismatch

I already had some issues regarding this for ACK for example but i resolved
it cimply doing

$ru = $ru+";transport=wss"

but NOTIFY sending is internal process and can't be controlled by config
file. So i can not change $ru for NOTIFY directly.

Any ideas how to fix this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171003/3a474e4c/attachment.html>


More information about the sr-users mailing list