[asterisk-dev] ast_sockaddr_stringify
Kevin P. Fleming
kpfleming at digium.com
Fri Feb 24 09:56:42 CST 2012
On 02/24/2012 09:40 AM, Simon Perreault wrote:
> On 2012-02-24 10:35, Johann Steinwendtner wrote:
>> Yes, but than the usage is incorrect. (null) is not an ip address to me.
>> in my system: sip show peer <peername> prints:
>> Defaddr->IP : (null)
>>
>> Howwever, iax2 show peer <peername> prints:
>> Defaddr->IP : 0.0.0.0 Port 0
>
> It is important that the stringification of NULL not equal the
> strigification of a valid sockaddr.
>
> It could be "" or "(null)" or "patate", it doesn't matter, as long as
> it's not a valid sockaddr.
Oh man, can we change it to 'patate'? That would rock.
--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
Jabber: kfleming at digium.com | SIP: kpfleming at digium.com | Skype: kpfleming
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at www.digium.com & www.asterisk.org
More information about the asterisk-dev
mailing list