Marc,
perhaps force_rtp_proxy() is accepting instead of ip an avp, so u can
query first the ip in an avp and then push it instead of connection
ip.
For applying this only to requests behind the same nat router, you
could try following code:
$avp(i:51) = $rd;
if (avp_check("$avp(i:51)","eq/$src_ip/i")){
force_rtp_proxy("c", "$avp(s:yourqueriedavp)");
};
Did not test the scenario, but could be an idea.
DanB
On 8/3/07, Marc LEURENT <lftsy(a)free.fr> wrote:
Hello everybody,
To remind you, I'm trying to set a SIP architecture for NATTED SIP users
without using any rtp proxy (because of lack of ressource).
STUN is working very well between 2 users in 2 differents NATs.
But when they are behing the same NAT, they cannot reach the other.. In
the INVITE and 200Ok SDP fields, they have put their public address with
a port reserved with STUN: it's not working!
I think that it is because it's difficult for them to reach the public
IPaddress/port where they should send the RTP stream from inside the NAT.
So my idea was: Why not rewriting SDP fields to put their private
address when they are behind the same NAT
But I don't know how to rewrite the SDP fields for both users. (I have
the private address of both users in the location database)
Help would be very grateful...
If you have any idea!
Best Regards
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users