auto build r3541: all 9 builds ok - 6 regression tests failed
Mikael Magnusson
mikma264 at gmail.com
Sat Dec 1 16:56:59 CET 2007
Erik Eliasson wrote:
> FYI,
>
> The automated testing shows that the SIP stack has changed what
> information is sent in the "Contact" header.
>
> It looks like we have dropped the port part which worries me. The test
> uses a random port for the SIP signalling, and we don't have it in the
> contact uri any more.
>
> (In the output, the random port number is replaced with "CPORT" for the
> UAC and SPORT for the UAS)
>
> I am not updating the expected output of the regression tests since I
> don't think it's ok. We will have to look into this.
>
...
The problem is that getLocalSipPort() by default returns the UDP port
the stack is using. It returns 0 since the UDP server wasn't started,
which results in an URI without a port number.
The simple solution is to call getLocalSipPort(false,"TCP") instead. But
a better solution may be to make sure all SIP servers are using the same
local port. Of course this will be tricky if one of the ports is in use,
then we have to stop the servers already started and try another port.
Mikael
More information about the Minisip-devel
mailing list