[asterisk-dev] What happened to Defaddr->IP ?

Olle E. Johansson oej at edvina.net
Thu Mar 12 10:35:46 CDT 2009


12 mar 2009 kl. 16.31 skrev John Lange:

> On Thu, 2009-03-12 at 09:22 +0100, Klaus Darilion wrote:
>>
>> John Lange schrieb:
>>> In the past, if I did a "sip show peer xxx", it would list a bunch  
>>> of
>>> information including the Defaddr field which showed the phones  
>>> internal
>>> IP if it was behind a nat. This made it easy to locate phones for
>>> debugging.
>>>
>>> Now all my peers show:
>>>
>>> Defaddr->IP  : 0.0.0.0 Port 5060
>>>
>>> I'm pretty sure this only started happening since we moved to  
>>> 1.4.23.1
>>> from 1.4.21.2.
>>>
>>> Can anyone confirm? And what does Defaddr stand for anyhow?
>>
>> the thing you are looking for is the registered contact:
>>
>>   Addr->IP     : 34.16.133.23 Port 2059
>>   Defaddr->IP  : 0.0.0.0 Port 5060
>>   Def. Username: asfsafs
>>   SIP Options  : (none)
>>   Codecs       : 0x40e (gsm|ulaw|alaw|ilbc)
>>   Codec Order  : (ulaw:20,alaw:20,ilbc:30,gsm:20)
>>   Auto-Framing:  No
>>   Status       : Unmonitored
>>   Useragent    : snom320/6.5.18
>>   Reg. Contact : sip:asfsafs at 192.168.0.3:2059;line=1sy2urd3
>
> I'm sure you are probably right, but in this version of Asterisk Reg.
> Contact is now showing the external IP, not the IP of the phone inside
> the NAT. Something has changed.

Then you need to check your phone. That string is verbatim what we
get from the phone in the Contact: header.

/O



More information about the asterisk-dev mailing list