From miconda@gmail.com Wed Oct 4 13:35:25 2017 From: Daniel-Constantin Mierla To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint Date: Wed, 04 Oct 2017 13:35:13 +0200 Message-ID: <6bdb8719-b2a5-1380-3110-81d48c3d3651@gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0122859870==" --===============0122859870== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Can you print $du there and see if it set? looks like it is not routed by r-uri, but dst uri. Cheers, Daniel On 03.10.17 22:58, Yuriy Gorlichenko wrote: > Found that at the tm:local-request $ru modifies but anyway - request > sent to old RURI. > =C2=A0INFO: NOTIFY to WS, update RURI > > -- here is making > $ru =3D $ru+";transport=3Dws"; > --- > > =C2=A0INFO: NOTIFY to WS, new RURI: > sip:94e51c30bdf28de52519(a)93.81.99.68:54733;gr=3Durn:uuid:88b3033f-e65d-46= 94-ac45-2a1d1a44501c;transport=3Dws > > --- for now $ru is updated > > -- but here also same result: > > =C2=A0INFO: presence [notify.c:1619]: send_notify_request(): NOTIFY > sip:94e51c30Bdf28de52519(a)d0c20d13-e5b4-4649-821e-9ab8ec94b141 via > sip:94e51c30bdf28de52519(a)93.81.99.68:54733;gr=3Durn:uuid:88b3033f-e65d-46= 94-ac45-2a1d1a44501c > on behalf of > sip:8dc08f881f2105dD3d75(a)d0c20d13-e5b4-4649-821e-9ab8ec94b141 for > event presence : 3biad4n635ugovv7vmjv > > > 2017-10-03 21:31 GMT+03:00 Yuriy Gorlichenko >: > > Can not find any entry of this device at the active watchers. > Suppose after module found sockets mistmatch and didnt got NOTIFY > response it removes entry from active watchers... > > I added handling at the event route as you sugested and tried to > do next > > Firs i tried fix $ru here but it does not work > Also tried to force socket but same > > > I see at the logs that first kamailio says about proto mistmatch > and only then calling=C2=A0=C2=A0event_route[tm:local-request]... > > This is my log with most important variables for understanding > > =C2=A0 INFO: