Re: [reSIProcate] question about sipstack not running on default 5060
The stack will automatically populate the contact header with the correct values, as long as you are not manually populating it with your application or using Profile::setOverrideHostAndPort.
Scott
On Tue, Nov 8, 2011 at 3:49 PM, Allen Guan
<allenguan@xxxxxxxxx> wrote:
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
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel