linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] help reqd registering with proxy


From: Aymeric Moizard
Subject: Re: [Linphone-developers] help reqd registering with proxy
Date: Thu, 23 Jan 2003 21:22:03 +0100 (CET)

There I am :)

UA1 is on the LAN
UA2 is on the public internet.

Solution 1:
 Configure the RTP port in linphone to be whatever you want: 7078 is the
     default.
 +Add a rule in the firewall to forward INCOMING data coming on port
     7078 on the NAT to be sent to the ip of your host in the LAN
     and port 7078.

 +patch linphone so that it writes the public ip (instead of your
      lan ip) of your NAT in SDP messages (c= feilds)

Here is a simple patch where you have to replace with your public IP:

--- osipua/src/sdphandler.c     2002-10-19 16:25:18.000000000 +0000
+++ osipua/src/sdphandler.c.new 2003-01-23 20:49:39.000000000 +0000
@@ -648,7 +648,7 @@
                sdp_c_connection_add (*dest, -1,
                                      sgetcopy (config->c_nettype),
                                      sgetcopy (config->c_addrtype),
-                                     sgetcopy (config->c_addr),
+                                     sgetcopy ("81.48.98.32"),
                                      sgetcopy (config->c_addr_multicast_ttl),
                                      sgetcopy (config->
                                                c_addr_multicast_int));


I asked simon to add a new feild for that and didn't checked wether
this was included in the new 10 release... How lazy I am!

This is probably enough to get the audio to work. Also, for the
signalling part, you should be able to get answers back because
partysip will send it to the NAT (on the same port the request
was sent) and the NAT will "probably" send it back to your host.
Most NAT can do that. If this is not the case, add a rule to
forward answers coming on 5060 on the NAT to your host on port 5060.

Hope you'll have an acess to your NAT.
Aymeric


On 23 Jan 2003, Simon Morlat wrote:

> Hi,
>
> In the usual case, the proxy runs on the gateway between the public
> internet and the private network. That's (for my understanding) the main
> objective of the sip proxy.
> However I'm not a sip specialist...
> Simon
>
> Le mer 22/01/2003 ? 16:07, Yogesh Deshpande a ?crit :
> > Hi,
> >     I have my PC on local network and my proxy server resides on the
> > internet. I tried to register myself with the server. I found that my
> > request was sent to proxy server but i could not receive any response
> > since my ip address was not visible to the proxy server. How can I
> > register myself with proxy in such scenarios? Do I have to have a
> > global ip address ?
> >
> > Any help is appriciated.
> > Yogesh Deshpande
> >
> > ______________________________________________________________________
> >
> > _______________________________________________
> > Linphone-developers mailing list
> > address@hidden
> > http://mail.nongnu.org/mailman/listinfo/linphone-developers
> --
> Simon Morlat <address@hidden>
>
>
>
> _______________________________________________
> Linphone-developers mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/linphone-developers
>





reply via email to

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