Hi All,<br>I have a following scenario:<br>1) I have one opensips proxy(proxy1) where sip endpoints register and sends calls to.<br>2) The calls from proxy1 is sent to another opensips proxy(proxy2) which routes calls to PSTN carriers.<br>
3) Both the proxy1 and proxy2 have mediaproxy module loaded and the dispatcher on each server is connected to the same media-relay(Relay1).<br>The problem is here:<br>1) When a call comes to Proxy1, I call engage_media_proxy. This allocates media ports from Relay1 and sends the call to Proxy2 for call completion.<br>
2) Now the Proxy2 is again calling engage_media_proxy, since the Proxy2 is configured in such a way that it calls engage_media_relay for every call signaled through it.<br>3) Now since the Proxy2 is also configured to use the same media-relay that Proxy1 was using, the Relay1 allocates media ports for same call from the same media-relay again.<br>
4) Theoretically, I assumed that this should work but it results in No Audio on both ends.<br>5) But, When I enabled a condition in Proxy2 which says that if the call is initiated from Proxy1, don't call "engage_media_proxy", the voice is good and both parties can hear.<br>
<br>I understand that it is not right to call media_proxy twice for the same call even if it is from different opensips proxies, I am only curios to know what goes wrong in this scenario.<br>These are two different opensips calling "engage_media_proxy", so why and where does the mediaproxy get confused??<br>
<br>Any ideas in making me understand this concept will be very helpful !!<br><br>Thanks in advance,<br><br>--- Jayesh<br>