use ip address from via if received is not there.

This commit is contained in:
Simon Morlat 2010-04-26 11:16:26 +02:00
parent 1cb2b66ca1
commit e420bcdd54

View file

@ -370,6 +370,7 @@ static int extract_received_rport(osip_message_t *msg, const char **received, in
rport=param->gvalue;
if (rport && rport[0]!='\0') *rportval=atoi(rport);
else *rportval=5060;
*received=via->host;
}
param=NULL;
osip_via_param_get_byname(via,"received",&param);