[Home]

Summary:ASTERISK-07951: SIP don't show real ip into cli
Reporter:Eric Romang / DCLUX (eromang)Labels:
Date Opened:2006-10-18 10:54:49Date Closed:2011-06-07 14:08:19
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Hello,

Just this example :

Use X-Lite with "Register never" and "Send Internal IP" always :

dialing a number.

0_lu_preprod_supernode*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
eromangtest/eromangtest    80.92.xxx.xxx      D   N      64272    Unmonitored

Here we see the real ip of the peer

0_lu_preprod_supernode*CLI> sip show channels
Peer             User/ANR    Call ID      Seq (Tx/Rx)  Form  Hold     Last Message
80.92.xxx.xxx      eromangtes  534603855d2  00102/00000  unkn  No       Init: NOTIFY
192.168.1.50     eromangtes  37A11B68-5E  00101/51770  ilbc  No       Rx: ACK

We see the internal IP

_lu_preprod_supernode*CLI> sip show peer eromangtest

Addr->IP     : 80.92.xx.xx Port 64272
Defaddr->IP  : 0.0.0.0 Port 64366
Def. Username: eromangtest
SIP Options  : (none)
Codecs       : 0x71e (gsm|ulaw|alaw|g726|g729|speex|ilbc)
Codec Order  : (ilbc,speex,g726,gsm,g729,ulaw,alaw)
Status       : Unmonitored
Useragent    : rnode*CLI>
Reg. Contact : sip:eromangtest@192.168.1.50:5060

Every thing works fine.


But in this case into another DMZ behind a Microtik router :


0_lu_preprod_supernode*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
eromangtest/eromangtest              (Unspecified)    D   N      0        Unmonitored
35227273113/eromangtest        (Unspecified)    D   N      0        Unmonitored

We don't see the real IP

0_lu_preprod_supernode*CLI> sip show channels
Peer             User/ANR    Call ID      Seq (Tx/Rx)  Form  Hold     Last Message
62.41.xxx.xxx     xxxxxxxx  6d0218ad622  00102/00000  alaw  No       Init: INVITE
192.168.3.10     eromangtest      1317a655426  00101/00102  alaw  No       Rx: INVITE

We see the internal IP.

But,

0_lu_preprod_supernode*CLI> sip show peer eromangtest

Addr->IP     : (Unspecified) Port 0
Defaddr->IP  : 0.0.0.0 Port 1210
Def. Username: eromangtest
SIP Options  : (none)CLI>
Codecs       : 0x61c (ulaw|alaw|g726|speex|ilbc)
Codec Order  : (g726,ilbc,alaw,ulaw,speex)
Status       : Unmonitored
Useragent    : rnode*CLI>
Reg. Contact :

As you could see the Reg. Contact and Addr->IP is not specified.

Shouldn't not see the real informations instead of nothing ?

Regards.
Comments:By: Joshua C. Colp (jcolp) 2006-10-18 12:33:19

The peer entry you showed has nothing registered or configured for it, it is therefore empty. This is not a bug. If you still think it is, reopen and try to explain more about the issue.

By: Eric Romang / DCLUX (eromang) 2006-10-18 18:17:11

Could be a nice feature to have as variable the friend IP for the AGI.

Regards ;)



By: Russell Bryant (russell) 2006-10-23 20:19:57

As file said, this is not a bug.  If the peer is configured as dynamic and it is not registered, it will show no address configurered for it.