[Serusers] Callee is behind NAT, start the mediaproxy session

Hendrik Scholz hendrik.scholz at freenet-ag.de
Mon Jan 24 12:45:44 CET 2005


Hi!

Doug Eubanks wrote:
> What is the easiest way if it is possible to determine if the person 
> being calling is behind NAT and then start the media_proxy session.  I 
> have worked out that if the caller is behind NAT, start the media 
> session, and it works great.  But if the caller is not behind NAT, and 
> the callee is, the phone rings and when you pick it up, no sound flows 
> in either direction.

I've been working on the same issue since I only want the calls 
depending on the mediaproxy for successful communication to use it.

What I see when client_nat_test() fails for the calling party (due to an 
external IP, yadda, yadda) but the called party needs it, is that
the mediaproxy doesn't have all information (see sessions.py that comes 
with the mediaproxy itself) to redirect the stream.

I thought about calling use_media_proxy() on all INVITES and then just
send the second use_media_proxy() from the called party if that party
needs the proxy ... but it didn't work out as expected till now.

Any help appreciated though :)

I also thought about making a DB containing clients that need NAT, i.e.
when you REGISTER client_nat_test() is used to see if you need it and 
upon INVITE both parties' NAT status can be looked up and if either one
needs mediaproxy support it is turned on.

Hendrik

-- 
freenet Cityline GmbH, Hamburger Chaussee 2-4, 24114 Kiel, Germany
Phone: +49 (0)431 9020552, Fax: +49 (0)431 9020559
Internet: http://www.freenet.de, eMail: hendrik.scholz at freenet-ag.de




More information about the sr-users mailing list