[Serusers] Mediaproxy, problems in PSTN-to-SIP

Lucas Aimaretto lucas at cyneric.com
Wed Mar 30 15:49:51 CEST 2005


> <lucas at cyneric.com> wrote:
> > If I try to receive a call from the PSTN, trough my Gateway, I only 
> > have a one-way audio communication, but only in the SIP->PSTN 
> > direction. What could this be?.
> 
> Is the mediaproxy being used at all in this scenario? From 
> your description it looks like it is not.

Yes, it is running. I can see it with a ps -aux, and it is well
configured in my ser.cfg

In fact:

- If I have to UAs, both behind same (linux-iptables) nat, I have a
two-way audio communication, with nice quality, with no problems at all.
- If I place a call to the PSTN, trough my Gateway, from my UA, I have a
two-way audio communication, with nice quality, with no problems at all.

But ...

- If I try to receive a call from the PSTN, trough my Gateway, I only
have a one-way audio communication, but only in the SIP->PSTN direction.

look at what session.py showed when making calls from the pstn ...

Caller           Via                       Called     Status    Duration
Codec  Type   Traffic
------------------------------------------------------------------------
---------------------------
IP_CISCO:20482 - ip_mediaproxy:35234 - ?.?.?.?:?  inactive     1'04"
G729   Audio  11.29k/0/0

In some way, it cannot get the IP address of my UA ... and I do not why.
The intereseting sing is that signalling gets completed, because my UA
receives the last ACK ( from the proxy ) and starts sending RTP, but to
the Gateway instead of sending it to the mediaproxy. Look at some
tcpduming obtained at the UA (behind nat) ...

- tcpdumping RTP on the UA (private IP:192.168.1.185.15090)

20:36:37.596851 192.168.1.185.15090 > IP_CISCO.20482:  udp 32

Do you see? It sends RTP packets to the IP:PORT of my cisco ...

And, lastly, if you see the active calls at the cisco, you'll see the
following ...

- show call active voice brief

2D2B : 104269100hs.1 +273 pid:1991334 Originate 1991015 active  dur
00:00:36 tx:162/3202 rx:1790/35800  IP ip_ser_mediaproxy:35234 rtt:0ms
pl:33170/140ms lost:0/0/0 delay:69/69/70ms g729r8

So the cisco is communicating in a nice way with the proxy, but the
proxy is not forwarding any rtp traffic to my UA.

Ideas ??

Best regards,

Lucas

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 27/03/2005
 




More information about the sr-users mailing list