Hi Inaki,
Thank you very much for helping out. There is one thing I want to clearify from you.
Let's say I have UA 192.168.1.100 who wants to make call with UA 192.168.1.101
When the INVITE comes from 192.168.1.100, the $si is 192.168.1.100. When the ACK 200 comes from 192.168.1.101, the $si is 192.168.1.101.
How cane these two be matched? I am thinking maybe I am just confused on an issue that I still not yet understand.
Thanks, Mark
Compare source IP of the request ($si during INVITE processing) with the source IP of each response ($si during ON_REPLY_ROUTE). But is very important:
- You must store INVITE source IP in an AVP and set: modparam("tm", "onreply_avp_mode", 1)
and them compare the AVP with the $si in ON_REPLY_ROUTE, and only apply RtpProxy if they don't match.