[OpenSIPS-Users] Mediaproxy wrong port, bug?
remconl87 at gmail.com
Tue Jan 22 16:04:24 CET 2013
I have sent you the information you asked for by e-mail. For the
interest of others, who might encounter the same problem in the future
I'll post my findings here as well.
The streams seem to traverse the mediaproxy somehow (or at least, they
go over the box). They do so on port 1024/udp (on both ends). An
update entry is visible in the syslog (level: debug).
On Tue, Jan 22, 2013 at 12:45 PM, Saúl Ibarra Corretgé
<saul at ag-projects.com> wrote:
> Sorry it took me some time. I inspected the traces you sent me privately, see inline.
> On Jan 22, 2013, at 12:59 AM, Remco . wrote:
>> After some hair pulling, and going over a number of examples I
>> established some sort of pattern in this issue:
>> Session establishes, one party starts sending RTP. Lets say A
>> (asterisk) sends to B (proxy) C (proxy) sends to D (asterisk). B and C
>> are both on the same machine / same interface. The first couple of
>> packets (10-20) are relayed just fine on the correct ports.
> Do those packets traverse MediaProxy? The traces didn't show any. Otherwise you would have seen a stream update log line mentioning that RTP was received. Also, the statistics don't account for any received packets (caller_packets, callee_packets).
>> Then, a return packet arrives, from D to C, which is correctly relayed
>> to A using the right ports.
>> Then a new packet comes in from A to B, again using the correct ports
>> and is then relayed using 1024/udp (always this portnumber, although
>> configured to use 40k to 60k!) as source port.
>> The issue is, D starts replying to 1024/udp. Streams are not detected,
>> and no conntrack rule is inserted.
>> The following post seems to describe exact the same behaviour:
>> nat=no is specified for the peer, however media is proxy'ied on a
>> different IP address than SIP is received from (could that explain
>> I hope this rings a bell to someone, as apart from this issue
>> mediaproxy is functioning perfect and I don't feel like replacing it.
> Can you send me a trace which includes both SIP and RTP along with the syslog on the dispatcher and the relay machines?
> Saúl Ibarra Corretgé
> AG Projects
> Users mailing list
> Users at lists.opensips.org
More information about the Users