[reSIProcate] Adding STUN support
- From: "Matthias Moetje - TERASENS GmbH" <moetje@xxxxxxxxxxxx>
- Date: Thu, 2 Mar 2006 01:10:43 +0100
Hi,
I'm currently trying to implement STUN support using
the StunTest function in stun.cxx
- when I do StunTest I need to know the local port and IP
address that will be used by resiprocate to send out a
sip message
- Currently I check userprofile::getFixedTransportInterface()
to see if a fixed local IP address is used, otherwise I call
SipStack::getHostAddress to get the default address.
But how can I know the local port resiprocate will use to send the
message before the message is actually sent?
After StunTest has completed, am I right in calling
userprofile::setOverrideHostAndPort to set the external
IP address and port detected by STUN?
Thanks very much for your help
and best regards,
Matthias Moetje