From: Simon Morlat Date: Mon, 23 Jan 2012 11:44:40 +0000 (+0100) Subject: fix duplicate route headers in registers X-Git-Url: http://sjero.net/git/?a=commitdiff_plain;h=02607711286be03ac9e074dde0ac02ba03025266;p=linphone fix duplicate route headers in registers --- diff --git a/coreapi/sal_eXosip2.c b/coreapi/sal_eXosip2.c index 7a2f3e05..948e67d8 100644 --- a/coreapi/sal_eXosip2.c +++ b/coreapi/sal_eXosip2.c @@ -2007,6 +2007,8 @@ static void register_set_contact(osip_message_t *msg, const char *contact){ static void sal_register_add_route(osip_message_t *msg, const char *proxy){ char tmp[256]={0}; snprintf(tmp,sizeof(tmp)-1,"<%s;lr>",proxy); + + osip_list_special_free(&msg->routes,(void (*)(void*))osip_route_free); osip_message_set_route(msg,tmp); }