[Users] one way audio problem with stun
Daniel-Constantin Mierla
daniel at voice-system.ro
Mon Sep 26 11:30:08 CEST 2005
Hello,
the problem is the natbox, being a linux it implements symmetric NAT
which allocates a new port for media, other than STUN returned.
To solve the problem you have to use nathelper/rtpproxy or mediaproxy on
the SIP server.
Cheers,
Daniel
On 09/24/05 00:23, Diego Valencia wrote:
> Hi everybody, I have a "one way audio" problem. My enviroment is:
>
> xx.xx.63.75/27 = SER
> xx.xx.63.68/27 = Natbox (linux iptables masquerade)
> xx.xx.70.2/25 = STUN server
> xx.xx.63.78/27 = PAP1 linksys AOR 2000
> 10.1.1.233/24 = PAP2 linksys AOR 2001 (behind NATbox with stun enable)
>
> I have no audio from PAP1 to PAP2 when the call is made from PAP1 to
> PAP2, but when the call is made from PAP2 to PAP1 it works correctly.
>
> I see on the natbox that the RTP packet is droped with unreachable
> cause (icmp messages).
>
> This is the trace (ngrep) for the call from PAP1 to PAP2 on external
> interface of the natbox, where I can see STUN packets and the number
> udp port that the PAP willl be use (16444 to 16447).
> The problem is natbox use other port (1173). I don't know if this
> problem is on natbox or stun server or PAP.
> Can you helpme?
>
>
> Thanks!!
>
>
> U xx.xx.63.75:5060 -> xx.xx.63.68:5060
> INVITE sip:2001 at xx.xx.63.68:5060 SIP/2.0..Record-Route:
> <sip:xx.xx.63.75;ftag=d1ccd3db9e31eb1fo0;lr=on>..Via: SIP/2.0/UDP
> xx.xx.63.75;branch=z9hG4bK52fb.41985863.0..Via: SIP/2.0/UDP
> xx.xx.63.78:5060;branch=z9hG4bK-57b1577f..From: 2000 <sip:5
> 890000 at xx.xx.63.75>;tag=d1ccd3db9e31eb1fo0..To
> <mailto:890000 at xx.xx.63.75%3E;tag=d1ccd3db9e31eb1fo0..To>:
> <sip:2001 at xx.xx.63.75>..Call-ID: d6e2df8b-5193d32f at xx.xx.63.78..CSeq
> <mailto:d6e2df8b-5193d32f at xx.xx.63.78..CSeq>: 101
> INVITE..Max-Forwards: 16..Contact: 2000
> <sip:2000 at xx.xx.63.78:5060>..Expires: 240..User-Agent:
> Linksys/PAP2-2.0.10(L
> Sc)..Content-Length: 420..Allow: ACK, BYE, CANCEL, INFO, INVITE,
> NOTIFY, OPTIONS, REFER..Supported: x-sipura..Content-Type: app
> lication/sdp....v=0..o=- 29375 29375 IN IP4 xx.xx.63.78..s=-..c=IN
> IP4 xx.xx.63.78..t=0 0..m=audio 16472 RTP/AVP 18 0 2 4 8 9
> 6 97 98 100 101..a=rtpmap:18 G729a/8000..a=rtpmap:0
> PCMU/8000..a=rtpmap:2 G726-32/8000..a=rtpmap:4 G723/8000..a=rtpmap:8
> PCMA/8
> 000..a=rtpmap:96 G726-40/8000..a=rtpmap:97 G726-24/8000..a=rtpmap:98
> G726-16/8000..a=rtpmap:100 NSE/8000..a=rtpmap:101 telephon
> e-event/8000..a=fmtp:101
> 0-15..a=ptime:30..a=sendrecv..
>
> #
> U xx.xx.63.68:5060 -> xx.xx.63.75:5060
> SIP/2.0 100 Trying..To: <sip:2001 at xx.xx.63.75>..From: 2000
> <sip:2000 at xx.xx.63.75>;tag=d1ccd3db9e31eb1fo0..Call-ID
> : d6e2df8b-5193d32f at xx.xx.63.78..CSeq
> <mailto:d6e2df8b-5193d32f at xx.xx.63.78..CSeq>: 101 INVITE..Via:
> SIP/2.0/UDP xx.xx.63.75;branch=z9hG4bK52fb.41985863.0..Via: SIP/2.0/U
> DP xx.xx.63.78:5060;branch=z9hG4bK-57b1577f..Record-Route:
> <sip:xx.xx.63.75;ftag=d1ccd3db9e31eb1fo0;lr=on>..Server: Linksys/P
> AP2-2.0.10(LSc)..Content-Length:
> 0....
>
> #
> U xx.xx.63.68:5060 -> xx.xx.70.2:3478
>
> .....*f..*f..*f..*f.
>
> #
> U xx.xx.63.68:16444 -> xx.xx.70.2:3478
>
> .....OB..OB..OB..OB.
>
> #
> U xx.xx.63.68:16445 -> xx.xx.70.2:3478
>
> ....................
>
> #
> U xx.xx.63.68:16446 -> xx.xx.70.2:3478
>
> .......&...&...&...&
>
> #
> U xx.xx.63.68:16447 -> xx.xx.70.2:3478
>
> ....#...#...#...#...
>
> #
> U xx.xx.70.2:3478 -> xx.xx.63.68:16447
> ...$#...#...#...#.........@?.+?D.........+F..........+F
> <mailto:...$#...#...#...#.........@?.+?D.........+F..........+F>.
>
> #
> U xx.xx.63.68:5060 -> xx.xx.70.2:3478
>
> .....*f..*f..*f..*f.
>
> #
> U xx.xx.63.68:16444 -> xx.xx.70.2:3478
>
> .....OB..OB..OB..OB.
>
> #
> U xx.xx.70.2:3478 -> xx.xx.63.68:5060
>
> ...$.*f..*f..*f..*f..........+?D.........+F..........+F.
>
> #
> U xx.xx.63.68:16445 -> xx.xx.70.2:3478
>
> ....................
>
> #
> U xx.xx.63.68:16446 -> xx.xx.70.2:3478
>
> .......&...&...&...&
>
> #
> U xx.xx.70.2:3478 -> xx.xx.63.68:16444
> ...$.OB..OB..OB..OB.......@<.+?D.........+F..........+F
> <mailto:...$.OB..OB..OB..OB.......@%3C.+?D.........+F..........+F>.
>
> #
> U xx.xx.70.2:3478 -> xx.xx.63.68:16446
> ...$...&...&...&...&......@>.+?D.........+F..........+F
> <mailto:...$...&...&...&...&......@%3E.+?D.........+F..........+F>.
>
> #
> U xx.xx.63.68:5060 -> xx.xx.63.75:5060
> SIP/2.0 180 Ringing..To:
> <sip:2001 at xx.xx.63.75>;tag=156298945b7d27i0..From: 2000
> <sip:2000 at xx.xx.63.75>;tag=d1ccd
> 3db9e31eb1fo0..Call-ID: d6e2df8b-5193d32f at xx.xx.63.78..CSeq
> <mailto:d6e2df8b-5193d32f at xx.xx.63.78..CSeq>: 101 INVITE..Via:
> SIP/2.0/UDP xx.xx.63.75;branch=z9hG4bK52fb.4198
> 5863.0..Via: SIP/2.0/UDP
> xx.xx.63.78:5060;branch=z9hG4bK-57b1577f..Record-Route:
> <sip:xx.xx.63.75;ftag=d1ccd3db9e31eb1fo0;lr=
> on>..Server: Linksys/PAP2-2.0.10(LSc)..Content-Length:
> 0....
> #
> U xx.xx.70.2:3478 -> xx.xx.63.68:16444
> ...$.OB..OB..OB..OB.......@<.+?D.........+F..........+F
> <mailto:...$.OB..OB..OB..OB.......@%3C.+?D.........+F..........+F>.
>
> #
> U xx.xx.63.68:5060 -> xx.xx.63.75:5060
> SIP/2.0 200 OK..To:
> <sip:2001 at xx.xx.63.75>;tag=156298945b7d27i0..From: 2000
> <sip:2000 at xx.xx.63.75>;tag=d1ccd3db9e
> 31eb1fo0..Call-ID: d6e2df8b-5193d32f at xx.xx.63.78..CSeq
> <mailto:d6e2df8b-5193d32f at xx.xx.63.78..CSeq>: 101 INVITE..Via:
> SIP/2.0/UDP xx.xx.63.75;branch=z9hG4bK52fb.41985863.
> 0..Via: SIP/2.0/UDP
> xx.xx.63.78:5060;branch=z9hG4bK-57b1577f..Record-Route:
> <sip:xx.xx.63.75;ftag=d1ccd3db9e31eb1fo0;lr=on>..
> Contact: 2001 <sip:2001 at xx.xx.63.68:5060>..Server:
> Linksys/PAP2-2.0.10(LSc)..Content-Length: 236..Allow: ACK, BYE, CANCE
> L, INFO, INVITE, NOTIFY, OPTIONS, REFER..Supported:
> x-sipura..Content-Type: application/sdp....v=0..o=- 659101 659101 IN
> IP4 20
> 0.43.63.68..s=-..c=IN IP4 xx.xx.63.68..t=0 0..m=audio 16444 RTP/AVP
> 18 100 101..a=rtpmap:18 G729a/8000..a=rtpmap:100 NSE/8000.
> .a=rtpmap:101 telephone-event/8000..a=fmtp:101
> 0-15..a=ptime:30..a=sendrecv..
>
> #
> U xx.xx.63.75:5060 -> xx.xx.63.68:5060
> ACK sip:2001 at xx.xx.63.68:5060 SIP/2.0..Record-Route:
> <sip:xx.xx.63.75;ftag=d1ccd3db9e31eb1fo0;lr=on>..Via: SIP/2.0/UDP 200
> .43.63.75;branch=0..Via: SIP/2.0/UDP
> xx.xx.63.78:5060;branch=z9hG4bK-5a4c9c84..From: 2000
> <sip:2000 at xx.xx.63.75>;tag
> =d1ccd3db9e31eb1fo0..To:
> <sip:2001 at xx.xx.63.75>;tag=156298945b7d27i0..Call-ID:
> d6e2df8b-5193d32f at xx.xx.63.78..CSeq
> <mailto:d6e2df8b-5193d32f at xx.xx.63.78..CSeq>: 101 AC
> K..Max-Forwards: 16..Contact: 2000
> <sip:2000 at xx.xx.63.78:5060>..User-Agent:
> Linksys/PAP2-2.0.10(LSc)..Content-Length:
>
> 0....
>
> #
> U xx.xx.63.78:16472 -> xx.xx.63.68:16444
> ..8...-..L.... at .....tF.34..V.|B..n..a.k(.R
> <mailto:..8...-..L.... at .....tF.34..V.%7CB..n..a.k%28.R>
>
> #
> I xx.xx.63.68 -> xx.xx.63.78 3:3
>
> ....E..F.........+?N.+?D at X@<.2....8...-..L.... at .....tF.34..V.|B..n..a.k(.R
> <mailto:....E..F.........+?N.+?D at X@%3C.2....8...-..L.... at .....tF.34..V.%7CB..n..a.k%28.R>
>
> #
> U xx.xx.63.68:1173 -> xx.xx.63.78:16472
>
> ..!o..vy.F.!...|...&.T.BP..Z..n...:.3..d..
>
> #
> U xx.xx.63.78:16472 -> xx.xx.63.68:16444
> ..8......L...
> .s..._exR..Kc.....+.O<.RZ.O{
>
> #
> I xx.xx.63.68 -> xx.xx.63.78 3:3
> ....E..F.........+?N.+?D at X@<.2....8......L
> <mailto:....E..F.........+?N.+?D at X@%3C.2....8......L>...
> .s..._exR..Kc.....+.O<.RZ.O{
>
> #
> U xx.xx.63.68:1173 -> xx.xx.63.78:16472
> ..!p..wi.F.!.'D.F...K.... at C..e.Z.[~P...Et
> <mailto:..%21p..wi.F.%21.%27D.F...K.... at C..e.Z.%5B%7EP...Et>,
>
> #
> U xx.xx.63.78:16472 -> xx.xx.63.68:16444
> ..8.../..L...... at H..._...,[.P...rU.A..P
> <mailto:..8.../..L...... at H..._...,%5B.P...rU.A..P>...
>
> #
> I xx.xx.63.68 -> xx.xx.63.78 3:3
>
> ....E..F.........+?N.+?D at X@<.2....8.../..L...... at H..._...,[.P...rU.A..P
> <mailto:....E..F.........+?N.+?D at X@%3C.2....8.../..L...... at H..._...,%5B.P...rU.A..P>...
>
> #
> U xx.xx.63.68:1173 -> xx.xx.63.78:16472
>
> ..!q..xY.F.!....Mf.....Fu.Q.....~.}....v..
>
> #
> U xx.xx.63.78:16472 -> xx.xx.63.68:16444
>
> ..8...0..L..\.~..h..+..|S.C.M..~6W}....6sR
>
> #
> I xx.xx.63.68 -> xx.xx.63.78 3:3
>
> ....E..F.........+?N.+?D at X@<.2....8...0..L..\.~..h..+..|S.C.M..~6W}....6sR
> <mailto:....E..F.........+?N.+?D at X@%3C.2....8...0..L..%5C.%7E..h..+..%7CS.C.M..%7E6W%7D....6sR>
>
> #
> U xx.xx.63.68:1173 -> xx.xx.63.78:16472
>
> ..!r..yI.F.!x|..Eo..._.1...;..GRz....*.x.Z
>
> #
> U xx.xx.63.78:16472 -> xx.xx.63.68:16444
>
> ..8...1..L..x.....n."..6.v....S.D.......S.
>
> #
> I xx.xx.63.68 -> xx.xx.63.78 3:3
>
> ....E..F.........+?N.+?D at X@<.2.!..8...1..L..x.....n."..6.v....S.D.......S
> <mailto:....E..F.........+?N.+?D at X@%3C.2.%21..8...1..L..x.....n.%22..6.v....S.D.......S>.
>
> #
> U xx.xx.63.68:1173 -> xx.xx.63.78:16472
> ..!s..z9.F.!0...ooPE..F.
> .5...E....v......
>
> #
> U xx.xx.63.78:16472 -> xx.xx.63.68:16444
>
> ..8...2..L..z....+.b..r?...r....|..$.x...^
>
> #
> I xx.xx.63.68 -> xx.xx.63.78 3:3
>
> ....E..F.........+?N.+?D at X@<.2....8...2..L..z....+.b..r?...r....|..$.x
> <mailto:....E..F.........+?N.+?D at X@%3C.2....8...2..L..z....+.b..r?...r....%7C..$.x>...^
>
> #
> U xx.xx.63.68:1173 -> xx.xx.63.78:16472
> ..!t..{).F.!.o...{..r..3....F.$.r..
> V..by.
>
> #
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Users mailing list
>Users at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>
>
More information about the sr-users
mailing list