Klaus Darilion wrote:
Hi!
I just came along a problem in the following scenario: user with public IP calls a NATed user. The first INVITE causes a lookup("location") which also sets the natflag (usually flag 6).
Then I check if flag 6 is set and will force the RTP proxy if it is set. If the public client sends an in-dialog reINVITE, the reINVITE is processed by the loose_route block and there is no lookup("location") for those request. So, how can I find out that the request will be forwarded to a NATed user (to force the RTP proxy)?
You can use "forced lookup" feature available in newest versions of nathelper/rtppoxy. When force_rtp_prpxy is called with the `l' flag, it only rewrites SDP and causes the session go through RTP proxy if session with such id already exists in the proxy.
-Maxim