<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>
<div><font face="Calibri,sans-serif">Hello all,</font></div>
<div><font face="Calibri,sans-serif"><br>
</font></div>
<div><font face="Calibri,sans-serif">I’ve seen this asked a long time ago here but I could not find an answer, so trying again. I realise this is the old way of putting a call on hold, but why does sofiasip automatically change my origin and media IPs?</font></div>
<div><font face="Calibri,sans-serif"><br>
</font></div>
<div><font face="Calibri,sans-serif">When the address is “0.0.0.0”, sofia sip changes it silently, after calling “soa_check_sdp_connection” from “offer_answer_step”, while processing the o= and c= fields before sending the INVITE.</font></div>
<div><font face="Calibri,sans-serif"><br>
</font></div>
<div><font face="Calibri,sans-serif">I am just wondering why does “soa_check_sdp_connection” check for “0.0.0.0” as invalid, when some systems out there still use this address to signal that the call is on hold:</font></div>
<div><font face="Calibri,sans-serif"><br>
</font></div>
<div><font face="Calibri,sans-serif">int</font></div>
<div><font face="Calibri,sans-serif">soa_check_sdp_connection(sdp_connection_t const *c)</font></div>
<div><font face="Calibri,sans-serif">{</font></div>
<div><font face="Calibri,sans-serif"> return c != NULL &&</font></div>
<div><font face="Calibri,sans-serif"> c->c_nettype &&c->c_address &&</font></div>
<div><font face="Calibri,sans-serif"> strcmp(c->c_address, "") &&</font></div>
<div><font face="Calibri,sans-serif"> strcmp(c->c_address, "0.0.0.0") &&</font></div>
<div><font face="Calibri,sans-serif"> strcmp(c->c_address, "::");</font></div>
<div><font face="Calibri,sans-serif">}</font></div>
<div><font face="Calibri,sans-serif"><br>
</font></div>
<div><font face="Calibri,sans-serif">Thanks, </font></div>
</div>
<div><font face="Calibri,sans-serif">Kun-Yao Huang</font></div>
</body>
</html>