List Info

Thread: Bug: linphonec fails to determine local IP when no default gateway is set




Bug: linphonec fails to determine local IP when no default gateway is set
country flaguser name
Germany
2007-12-16 18:03:24
Versions:
  linphone-2.0.1
  libosip2-3.0.3-2
  libeXosip2-3.0.3-3

Platform is an embedded system, only accessable in the LAN,
so there is 
no default gw defined (and necessary) in the routing table.

Having no default gateway results in below linphonec
warnings:
  DEBUG: [get_output_if] connect: Network is unreachable
  DEBUG: [get_output_if] connect: Network is unreachable
  DEBUG: [get_output_if] connect: Network is unreachable
  ortp-error-Could not find default routable ip address !

Another result is that in the SIP/SDP header contains the
loopback IP 
instead of the device IP:
  [...]
  From: <sip:root127.0.0.1>
  [...]
  Contact: <sip:root127.0.0.1:5060>
  [...]

This is independent of the contact setting in .linphonec:
  [sip]
  contact=sip:root192.168.1.33

Adding a default gw fixes this behavior.

Calls inside the LAN are still possible without gw, but the
headers are 
obviously flawed. It seems to work anyway with all tested
peers, so I'd 
consider this as a minor error.
Currently, I don't have time to track this down, so I'd
throw it over to 
the public 

-- 

carpe noctem engineering
Ingenieurbuero fuer Hard- & Software-Entwicklung Andreas
Pretzsch
Dipl.-Ing. (FH) Andreas Pretzsch                 Tel.
0731/98588-800
Marlene-Dietrich-Strasse 5                       Fax:
0731/98588-801
89231 Neu-Ulm                                    email:
aprcn-eng.de


_______________________________________________
Linphone-developers mailing list
Linphone-developersnongnu.org
http://lists.nongnu.org/mailman/listinfo/linphone-de
velopers

Re: Bug: linphonec fails to determine local IP when no default gateway is set
country flaguser name
France
2007-12-23 08:39:41
Hi,

You are right.
I have submitted a patch to eXosip maintainer to fix this
problem. It will be 
fixed in next eXosip2 release.

Simon

Le Monday 17 December 2007 01:03:24 Andreas Pretzsch, vous
avez écrit :
> Versions:
>   linphone-2.0.1
>   libosip2-3.0.3-2
>   libeXosip2-3.0.3-3
>
> Platform is an embedded system, only accessable in the
LAN, so there is
> no default gw defined (and necessary) in the routing
table.
>
> Having no default gateway results in below linphonec
warnings:
>   DEBUG: [get_output_if] connect: Network is
unreachable
>   DEBUG: [get_output_if] connect: Network is
unreachable
>   DEBUG: [get_output_if] connect: Network is
unreachable
>   ortp-error-Could not find default routable ip address
!
>
> Another result is that in the SIP/SDP header contains
the loopback IP
> instead of the device IP:
>   [...]
>   From: <sip:root127.0.0.1>
>   [...]
>   Contact: <sip:root127.0.0.1:5060>
>   [...]
>
> This is independent of the contact setting in
.linphonec:
>   [sip]
>   contact=sip:root192.168.1.33
>
> Adding a default gw fixes this behavior.
>
> Calls inside the LAN are still possible without gw, but
the headers are
> obviously flawed. It seems to work anyway with all
tested peers, so I'd
> consider this as a minor error.
> Currently, I don't have time to track this down, so I'd
throw it over to
> the public 




_______________________________________________
Linphone-developers mailing list
Linphone-developersnongnu.org
http://lists.nongnu.org/mailman/listinfo/linphone-de
velopers

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )