STUN (Simple Traversal Utilities for NAT) is a powerful address/network discovery tool, that can helps NAT traversal, which is the main requirements for a media(audio/video) sessions.
NAT traversal techniques are required for peer-to-peer and Voice-over-IP (VoIP) applications. Most techniques requires discover services from a publicly-routable IP address.
STUN is a method that uses the server only when establishing the connection, which saves bandwidth costs server-side, decreases latency and also boosts quality.
Jingle protocol uses STUN in a very efficient and easy way, making STUN the perfect combination for Jingle enabled Clients in order to provide peer-to-peer and great quality media sessions.
Check the diagram to understand why do you need and what can you do with a STUN Server on ejabberd:

Check it out:
svn co http://svn.process-one.net/ejabberd/trunk/src/stun/
http://svn.process-one.net/ejabberd/trunk/doc/guide.html