[prev in list] [next in list] [prev in thread] [next in thread]
List: freeswitch-dev
Subject: [Freeswitch-dev] Sofia SIP: Addresses c= and o= changed when sending INVITE with 0.0.0.0
From: "Huang, Kun-Yao" <kxhuan () dolby ! com>
Date: 2016-10-20 0:08:07
Message-ID: D42E5643.DC3B%kxhuan () dolby ! com
[Download RAW message or body]
Hello all,
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?
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.
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:
int
soa_check_sdp_connection(sdp_connection_t const *c)
{
return c != NULL &&
c->c_nettype &&c->c_address &&
strcmp(c->c_address, "") &&
strcmp(c->c_address, "0.0.0.0") &&
strcmp(c->c_address, "::");
}
Thanks,
Kun-Yao Huang
[Attachment #3 (text/html)]
<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>
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org
--===============8831096277938374273==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic