[reSIProcate] question about sipstack not running on default 5060

Scott Godin sgodin at sipspectrum.com
Tue Nov 15 15:23:27 CST 2011


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 at gmail.com> 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 at resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20111115/a7665781/attachment.htm>


More information about the resiprocate-devel mailing list