linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] NAT SIP register with WAN and LAN IP Address


From: Christoph Kuhr
Subject: [Linphone-developers] NAT SIP register with WAN and LAN IP Address
Date: Thu, 16 Jun 2016 13:24:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0

Hi *,

I am operating a test environment.
I am trying to establish a p2p connection with two linphone clients,
running on a Raspberry Pi, latest Raspbian.
Linphone is installed from the repository, I did not manage to compile
it myself so far.
linphone:
  Installed: 3.6.1-2.4+b1
  Candidate: 3.6.1-2.4+b1
  Version table:
 *** 3.6.1-2.4+b1 0
        500 http://mirrordirector.raspbian.org/raspbian/ jessie/main
armhf Packages
        100 /var/lib/dpkg/status


The SIP server is Asterisk 13.9.1 with PJSIP 2.5.1, both compiled from
source.
The STUN server is stuntman also from the repository.
Both running on the same server, Ubuntu 16.04.


My problem is, that both clients register on Asterisk with both ip
address candidates, LAN and WAN.
And if I unregister, only the WAN address is unregistered.
Configuration details are below.
How can I stop linphone publishing the LAN IP address?


Network Configuration:
WAN Subnet : 192.168.188.0
Server IP address: 192.168.188.50
Client 1 IP address: 192.168.0.121, External Gateway Address: 192.168.188.2
Client 2 IP address: 192.168.2.9, External Gateway Address: 192.168.188.20

Client 1: linphonec> register sip:address@hidden 192.168.188.50
Client 2: linphonec> register sip:address@hidden 192.168.188.50

SIP part in .linphonerc of Client 1, mostly default and corresponding to
Client 2:
[sip]
sip_port=5062
media_encryption=none
guess_hostname=0
contact=sip:address@hidden
inc_timeout=30
in_call_timeout=0
delayed_timeout=4
use_ipv6=0
register_only_when_network_is_up=1
register_only_when_upnp_is_ok=0
default_proxy=0



Astersik Debug Output:
============================


After registration:
STUNSIP*CLI> pjsip show aors

      Aor:  <Aor..............................................> 
<MaxContact>
    Contact:  <Aor/ContactUri............................> <Hash....>
<Status> <RTT(ms)..>
==========================================================================================

      Aor:  6005                                                10
    Contact:  6005/sip:address@hidden:5062;line=7b411259 0fa5d12326
Unknown         nan
    Contact:  6005/sip:address@hidden:16048;line=7b41 27ed11dfc8
Unknown         nan
    Contact:  6005/sip:address@hidden:5062;line=69e6483e 5d250a5b14
Unknown         nan
    Contact:  6005/sip:address@hidden:5060               b49ca5c3ce
Unknown         nan
    Contact:  6005/sip:192.168.188.20                      4d20fbf43a
Created       0.000

      Aor:  6006                                                10
    Contact:  6006/sip:address@hidden:5060               b49ca5c3ce
Unknown         nan
    Contact:  6006/sip:address@hidden:5062;line=5d7d39 b761694e6a
Unknown         nan
    Contact:  6006/sip:address@hidden:5062;line=5d7d39 fc1fdefc26
Unknown         nan
    Contact:  6006/sip:address@hidden:5062;line=5f8450 e19f07ebc1
Unknown         nan
    Contact:  6006/sip:192.168.188.2                       ddc2d14726
Created       0.000









After deregistration:

STUNSIP*CLI> pjsip show aors

      Aor:  <Aor..............................................> 
<MaxContact>
    Contact:  <Aor/ContactUri............................> <Hash....>
<Status> <RTT(ms)..>
==========================================================================================

      Aor:  6005                                                10
    Contact:  6005/sip:address@hidden:5062;line=7b411259 0fa5d12326
Unknown         nan
    Contact:  6005/sip:address@hidden:5062;line=69e6483e 5d250a5b14
Unknown         nan
    Contact:  6005/sip:address@hidden:5060               b49ca5c3ce
Unknown         nan
    Contact:  6005/sip:192.168.188.20                      4d20fbf43a
Created       0.000

      Aor:  6006                                                10
    Contact:  6006/sip:address@hidden:5060               b49ca5c3ce
Unknown         nan
    Contact:  6006/sip:address@hidden:5062;line=5d7d39 b761694e6a
Unknown         nan
    Contact:  6006/sip:address@hidden:5062;line=5f8450 e19f07ebc1
Unknown         nan
    Contact:  6006/sip:192.168.188.2                       ddc2d14726
Created       0.000




reply via email to

[Prev in Thread] Current Thread [Next in Thread]