There is two way audio from UA to OpenSIPs to Asterisk, but there is no Audio
from Asterisk to OpenSIPs to UA after upgrading to OpenSIPS 1.6.2 with
Mediaproxy 2 from OpenSIPS 1.3 with Mediaproxy 1. Can someone please help me
out? I tried everything I can think of. I can see the Media session created
in Mediaproxy and Audio is pass from Mediaproxy to Asterisk but nothing from
Mediaproxy to UA. MediaRelay debug so unknow RTP address for the UA. 

I tired to use engage_media_proxy on request route and use_media_proxy on
onreply_route both are not working. I also tried to use fix_nated_sdp as
well as fix_contact via nat_travesal module instead of nathelper module.
This worked before I did the upgrade with the same onreply_route. Thank You 

onreply_route[3] {
        if(nat_uac_test("1") ) {
                xlog("L_INFO", "INFO:  M=$rm RURI=$ru F=$fu T=$tu IP=$si
ID=$ci n\n");
                fix_nated_contact();    
        }
        if(isbflagset(6) && status=~"(180)|(183)|2[0-9][0-9]") {
                if(!search("^Content-Length:[ ]*0")) {
                        use_media_proxy(); 
                }
        }
        exit;

}

INVITE sip:[email protected]:41136 SIP/2.0

Record-Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

Via: SIP/2.0/UDP 7x.2x.6x.2x;branch=z9hG4bKbb2c.3f48cee.0

Via: SIP/2.0/UDP
6x.7x.1xx.5x:5060;received=6x.7x.1xx.5x;branch=z9hG4bK32b365a5;rport=5060

From: "1510555555" <sip:[email protected]>;tag=as42c14947

To: <sip:[email protected]:5060;user=phone>

Contact: <sip:[email protected]>

Call-ID: [email protected]

CSeq: 102 INVITE

User-Agent: iWorld

Max-Forwards: 69

Date: Tue, 03 Aug 2010 23:14:22 GMT

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO

Supported: replaces

Content-Type: application/sdp

Content-Length: 399

Session-Expires: 90



v=0

o=root 12815 12815 IN IP4 6x.7x.1xx.5x

s=session

c=IN IP4 6x.7x.1xx.5x

t=0 0

m=audio 34852 RTP/AVP 18 4 97 3 0 101

a=rtpmap:18 G729/8000

a=fmtp:18 annexb=no

a=rtpmap:4 G723/8000

a=fmtp:4 annexa=no

a=rtpmap:97 iLBC/8000

a=fmtp:97 mode=30

a=rtpmap:3 GSM/8000

a=rtpmap:0 PCMU/8000

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-16

a=silenceSupp:off - - - -

a=ptime:20

a=sendrecv

SIP/2.0 100 Trying

To: <sip:[email protected]:5060;user=phone>

From: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 102 INVITE

Via: SIP/2.0/UDP 7x.2x.6x.2x;branch=z9hG4bKbb2c.3f48cee.0

Via: SIP/2.0/UDP
6x.7x.1xx.5x:5060;received=6x.7x.1xx.5x;branch=z9hG4bK32b365a5;rport=5060

Record-Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

Server: Linksys/PAP2T-5.1.6(LS)

Content-Length: 0



SIP/2.0 180 Ringing

To: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

From: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 102 INVITE

Via: SIP/2.0/UDP 7x.2x.6x.2x;branch=z9hG4bKbb2c.3f48cee.0

Via: SIP/2.0/UDP
6x.7x.1xx.5x:5060;received=6x.7x.1xx.5x;branch=z9hG4bK32b365a5;rport=5060

Record-Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

Server: Linksys/PAP2T-5.1.6(LS)

Content-Length: 0



SIP/2.0 200 OK

To: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

From: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 102 INVITE

Via: SIP/2.0/UDP 7x.2x.6x.2x;branch=z9hG4bKbb2c.3f48cee.0

Via: SIP/2.0/UDP
6x.7x.1xx.5x:5060;received=6x.7x.1xx.5x;branch=z9hG4bK32b365a5;rport=5060

Record-Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

Contact: 1646999999<sip:[email protected]:5068>

Server: Linksys/PAP2T-5.1.6(LS)

Content-Length: 275

Allow: ACK, BYE, CANCEL, INFO, INVITE, [email protected],
OPTIONS, REFER

Supported: x-sipura, replaces

Content-Type: application/sdp



v=0

o=- 5176 5176 IN IP4 192.168.8.201

s=-

c=IN IP4 192.168.8.201

t=0 0

m=audio 16436 RTP/AVP 18 100 101

a=rtpmap:18 G729a/8000

a=fmtp:18 annexb=no

a=rtpmap:100 NSE/8000

a=fmtp:100 192-193

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

a=ptime:30

a=sendrecv

SIP/2.0 200 OK

To: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

From: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 102 INVITE

Via: SIP/2.0/UDP 7x.2x.6x.2x;branch=z9hG4bKbb2c.3f48cee.0

Via: SIP/2.0/UDP
6x.7x.1xx.5x:5060;received=6x.7x.1xx.5x;branch=z9hG4bK32b365a5;rport=5060

Record-Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

Contact: 1646999999<sip:[email protected]:5068>

Server: Linksys/PAP2T-5.1.6(LS)

Content-Length: 275

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER

Supported: x-sipura, replaces

Content-Type: application/sdp



v=0

o=- 5176 5176 IN IP4 192.168.8.201

s=-

c=IN IP4 192.168.8.201

t=0 0

m=audio 16436 RTP/AVP 18 100 101

a=rtpmap:18 G729a/8000

a=fmtp:18 annexb=no

a=rtpmap:100 NSE/8000

a=fmtp:100 192-193

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

a=ptime:30

a=sendrecv

SIP/2.0 200 OK

To: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

From: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 102 INVITE

Via: SIP/2.0/UDP 7x.2x.6x.2x;branch=z9hG4bKbb2c.3f48cee.0

Via: SIP/2.0/UDP
6x.7x.1xx.5x:5060;received=6x.7x.1xx.5x;branch=z9hG4bK32b365a5;rport=5060

Record-Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

Contact: 1646999999<sip:[email protected]:5068>

Server: Linksys/PAP2T-5.1.6(LS)

Content-Length: 275

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER

Supported: x-sipura, replaces

Content-Type: application/sdp



v=0

o=- 5176 5176 IN IP4 192.168.8.201

s=-

c=IN IP4 192.168.8.201

t=0 0

m=audio 16436 RTP/AVP 18 100 101

a=rtpmap:18 G729a/8000

a=fmtp:18 annexb=no

a=rtpmap:100 NSE/8000

a=fmtp:100 192-193

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

a=ptime:30

a=sendrecv

SIP/2.0 200 OK

To: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

From: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 102 INVITE

Via: SIP/2.0/UDP 7x.2x.6x.2x;branch=z9hG4bKbb2c.3f48cee.0

Via: SIP/2.0/UDP
6x.7x.1xx.5x:5060;received=6x.7x.1xx.5x;branch=z9hG4bK32b365a5;rport=5060

Record-Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

Contact: 1646999999<sip:[email protected]:5068>

Server: Linksys/PAP2T-5.1.6(LS)

Content-Length: 275

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER

Supported: x-sipura, replaces

Content-Type: application/sdp



v=0

o=- 5176 5176 IN IP4 192.168.8.201

s=-

c=IN IP4 192.168.8.201

t=0 0

m=audio 16436 RTP/AVP 18 100 101

a=rtpmap:18 G729a/8000

a=fmtp:18 annexb=no

a=rtpmap:100 NSE/8000

a=fmtp:100 192-193

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

a=ptime:30

a=sendrecv

....SIP/2.0 200 OK

To: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

From: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 102 INVITE

Via: SIP/2.0/UDP 7x.2x.6x.2x;branch=z9hG4bKbb2c.3f48cee.0

Via: SIP/2.0/UDP
6x.7x.1xx.5x:5060;received=6x.7x.1xx.5x;branch=z9hG4bK32b365a5;rport=5060

Record-Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

Contact: 1646999999<sip:[email protected]:5068>

Server: Linksys/PAP2T-5.1.6(LS)

Content-Length: 275

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER

Supported: x-sipura, replaces

Content-Type: application/sdp



v=0

o=- 5176 5176 IN IP4 192.168.8.201

s=-

c=IN IP4 192.168.8.201

t=0 0

m=audio 16436 RTP/AVP 18 100 101

a=rtpmap:18 G729a/8000

a=fmtp:18 annexb=no

a=rtpmap:100 NSE/8000

a=fmtp:100 192-193

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

a=ptime:30

a=sendrecv

SIP/2.0 200 OK

To: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

From: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 102 INVITE

Via: SIP/2.0/UDP 7x.2x.6x.2x;branch=z9hG4bKbb2c.3f48cee.0

Via: SIP/2.0/UDP
6x.7x.1xx.5x:5060;received=6x.7x.1xx.5x;branch=z9hG4bK32b365a5;rport=5060

Record-Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

Contact: 1646999999<sip:[email protected]:5068>

Server: Linksys/PAP2T-5.1.6(LS)

Content-Length: 275

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER

Supported: x-sipura, replaces

Content-Type: application/sdp



v=0

o=- 5176 5176 IN IP4 192.168.8.201

s=-

c=IN IP4 192.168.8.201

t=0 0

m=audio 16436 RTP/AVP 18 100 101

a=rtpmap:18 G729a/8000

a=fmtp:18 annexb=no

a=rtpmap:100 NSE/8000

a=fmtp:100 192-193

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

a=ptime:30

a=sendrecv

BYE sip:[email protected] SIP/2.0

Via: SIP/2.0/UDP 192.168.8.201:5068;branch=z9hG4bK-a6bf7d8e

From: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

To: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 101 BYE

Max-Forwards: 70

Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

User-Agent: Linksys/PAP2T-5.1.6(LS)

Content-Length: 0



BYE sip:[email protected] SIP/2.0

Via: SIP/2.0/UDP 192.168.8.201:5068;branch=z9hG4bK-a6bf7d8e

From: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

To: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 101 BYE

Max-Forwards: 70

Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

User-Agent: Linksys/PAP2T-5.1.6(LS)

Content-Length: 0



BYE sip:[email protected] SIP/2.0

Via: SIP/2.0/UDP 192.168.8.201:5068;branch=z9hG4bK-a6bf7d8e

From: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

To: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 101 BYE

Max-Forwards: 70

Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

User-Agent: Linksys/PAP2T-5.1.6(LS)

Content-Length: 0



BYE sip:[email protected] SIP/2.0

Via: SIP/2.0/UDP 192.168.8.201:5068;branch=z9hG4bK-a6bf7d8e

From: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

To: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 101 BYE

Max-Forwards: 70

Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

User-Agent: Linksys/PAP2T-5.1.6(LS)

Content-Length: 0



SIP/2.0 200 OK

To: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

From: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 102 INVITE

Via: SIP/2.0/UDP 7x.2x.6x.2x;branch=z9hG4bKbb2c.3f48cee.0

Via: SIP/2.0/UDP
6x.7x.1xx.5x:5060;received=6x.7x.1xx.5x;branch=z9hG4bK32b365a5;rport=5060

Record-Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

Contact: 1646999999<sip:[email protected]:5068>

Server: Linksys/PAP2T-5.1.6(LS)

Content-Length: 275

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER

Supported: x-sipura, replaces

Content-Type: application/sdp



v=0

o=- 5176 5176 IN IP4 192.168.8.201

s=-

c=IN IP4 192.168.8.201

t=0 0

m=audio 16436 RTP/AVP 18 100 101

a=rtpmap:18 G729a/8000

a=fmtp:18 annexb=no

a=rtpmap:100 NSE/8000

a=fmtp:100 192-193

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

a=ptime:30

a=sendrecv

BYE sip:[email protected] SIP/2.0

Via: SIP/2.0/UDP 192.168.8.201:5068;branch=z9hG4bK-a6bf7d8e

From: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

To: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 101 BYE

Max-Forwards: 70

Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

User-Agent: Linksys/PAP2T-5.1.6(LS)

Content-Length: 0



SIP/2.0 200 OK

To: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

From: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 102 INVITE

Via: SIP/2.0/UDP 7x.2x.6x.2x;branch=z9hG4bKbb2c.3f48cee.0

Via: SIP/2.0/UDP
6x.7x.1xx.5x:5060;received=6x.7x.1xx.5x;branch=z9hG4bK32b365a5;rport=5060

Record-Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

Contact: 1646999999<sip:[email protected]:5068>

Server: Linksys/PAP2T-5.1.6(LS)

Content-Length: 275

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER

Supported: x-sipura, replaces

Content-Type: application/sdp



v=0

o=- 5176 5176 IN IP4 192.168.8.201

s=-

c=IN IP4 192.168.8.201

t=0 0

m=audio 16436 RTP/AVP 18 100 101

a=rtpmap:18 G729a/8000

a=fmtp:18 annexb=no

a=rtpmap:100 NSE/8000

a=fmtp:100 192-193

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

a=ptime:30

a=sendrecv

BYE sip:[email protected] SIP/2.0

Via: SIP/2.0/UDP 192.168.8.201:5068;branch=z9hG4bK-a6bf7d8e

From: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

To: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 101 BYE

Max-Forwards: 70

Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

User-Agent: Linksys/PAP2T-5.1.6(LS)

Content-Length: 0



SIP/2.0 200 OK

To: <sip:[email protected]:5060;user=phone>;tag=fcc3c088aabd3fcfi0

From: "1510555555" <sip:[email protected]>;tag=as42c14947

Call-ID: [email protected]

CSeq: 102 INVITE

Via: SIP/2.0/UDP 7x.2x.6x.2x;branch=z9hG4bKbb2c.3f48cee.0

Via: SIP/2.0/UDP
6x.7x.1xx.5x:5060;received=6x.7x.1xx.5x;branch=z9hG4bK32b365a5;rport=5060

Record-Route: <sip:[email protected];lr=on;did=ae3.19f7b6a7>

Contact: 1646999999<sip:[email protected]:5068>

Server: Linksys/PAP2T-5.1.6(LS)

Content-Length: 275

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER

Supported: x-sipura, replaces

Content-Type: application/sdp



v=0

o=- 5176 5176 IN IP4 192.168.8.201

s=-

c=IN IP4 192.168.8.201

t=0 0

m=audio 16436 RTP/AVP 18 100 101

a=rtpmap:18 G729a/8000

a=fmtp:18 annexb=no

a=rtpmap:100 NSE/8000

a=fmtp:100 192-193

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

a=ptime:30

a=sendrecv



-- 
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Mediaproxy2-OpenSIPS-1-6-use-media-proxy-onreply-no-audio-tp5373247p5373247.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to