Logic for STUN signalling