]> sjero.net Git - linphone/commitdiff
fix bug with invalid contacts in registers.
authorSimon Morlat <simon.morlat@linphone.org>
Wed, 21 Apr 2010 12:52:29 +0000 (14:52 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Wed, 21 Apr 2010 12:52:29 +0000 (14:52 +0200)
coreapi/sal_eXosip2.c

index 629b7f37f5655bce47bc1881fedf90146b684e6a..8dad1518ce161e7029f65b406f9c73da153b9d5b 100644 (file)
@@ -377,6 +377,9 @@ int sal_listen_port(Sal *ctx, const char *addr, int port, SalTransport tr, int i
        if (ctx->sock==-1) return -1;
        ms_message("Exosip is given socket %i",ctx->sock);
        eXosip_set_socket(proto,ctx->sock,port);
+       /* this is to properly initialize the udp transport layer of eXosip, as we don't use eXosip_listen_addr() */
+       /* otherwise we have a bug with improper contacts in registers: <sip:user@host:;line=jIjijde68>*/
+       eXosip_masquerade_contact(NULL,0);
        /*
        err=eXosip_listen_addr(proto, addr, port, ipv6 ?  PF_INET6 : PF_INET, 0);
        */