[SR-Users] Doing automatic unregister when a WEBSOCKET connection is closed.

Juha Heinanen jh at tutpro.com
Sun May 12 16:21:26 CEST 2013


Peter Dunkley writes:

> 3) Use a hash-table to store $ruid, $tU, and $td indexed on $si:$sp
> 4) Then when event_route[websocket:closed] is called you can retrieve the
> information from the hash table and call unregister().  Use the $tU and
> $td you have cached to construct the unregister() URI parameter.

why does unregister need $tU and $td params, because $ruid alone
uniquely identifies the contact to be unregistered?

-- juha



More information about the sr-users mailing list