[reSIProcate] question about sipstack not running on default 5060
Hi, all,
I used resip to write a sip server NOT running at the default 5060
port, for example port 8000. in the serverinvitehandler with DUM:
MyInviteSessionHandler::onNewSession(ServerInviteSessionHandle
oServerInviteSessionHandle, ...)
{
//.............
oServerInviteSessionHandle->provisional(180);
}
I can see the generated ring 180 sip message's Contact field doesn't
contain the port 8000 I specified. this causes the failure of sip
handshaking.
I specified the port as this:
oSipStack.addTransport(UDP, 8000, V4, StunEnabled);
oSipStack.addTransport(TCP, 8000, V4, StunEnabled);
I wonder if I missed some part of configuration. Would you please give
me some suggestions on this?
thanks a lot!
-Allen