How Does Registrations Look Like On A Stun-enabled System ?

Home » Asterisk Users » How Does Registrations Look Like On A Stun-enabled System ?
Asterisk Users No Comments

Hello,

I’m currently studying STUN on new 13.13.1 setup. As I’m planning to backport my findings to older Asterisk setups, I’m focusing on SIP stack, at the moment, leaving PJSIP alone.

I always thought STUN could be an alternative to externip/externhost setting so that, if properly configured my Asterisk box would send, for instance, REGISTER messages similar to those sent with externip.

Turning on SIP debug, I’m seeing that my Asterisk box still uses private IP
address within REGISTER contact header:
Contact:

I was expecting to observe my STUN-acquired public address:
Contact:

Before diging into this, I would like to ask: are my expectations are correct ?

Best regards