Bug#743494: Patch

Pizzocel pizzican at pizzocel.canis.uberspace.de
Tue May 17 10:00:43 UTC 2016


I had the same problem on stretch/sid with amd64 architecture.

I did some debugging and it seems the reason is a call to
eXosip_set_option in sal_eXosip2.c line 480, where the internet protocol
version is set before the TCP listening port is established. The last
parameter indicating the protocol version (0 for IPv4, other for IPv6)
is a reference to an int variable (ipv6), but the library function
expects a pointer to int. So as a result an IPv6 port may be attempted
to be created with an IPv4 address, which fails.
In the attached patch the definition of ipv6 is changed to int, which
solved the problem for me.



-------------- next part --------------
Patch for debian bug #743494. TCP/TLS could not be used (with IPv4).
--- a/coreapi/sal_eXosip2.c
+++ b/coreapi/sal_eXosip2.c
@@ -433,7 +433,7 @@
 
 int sal_listen_port(Sal *ctx, const char *addr, int port, SalTransport tr, int is_secure){
 	int err;
-	bool_t ipv6;
+	int ipv6;
 	int proto=IPPROTO_UDP;
 	int keepalive = ctx->keepalive_period;
 


More information about the Pkg-voip-maintainers mailing list