[OpenSIPS-Users] Need Hint for Opensips as UDP/TCP Proxy
spady
spady77 at gmail.com
Wed Oct 10 11:51:20 CEST 2012
Hi Binan, seems your idea does not work. I post ngrep traces. Look at last
200OK from IP 172.16.55.100 (opensips) to IP 10.9.101.163 (lync). SDP still
have "a=inactive".
Snippet of code:
branch_route[2] {
if (is_method("INVITE") && is_audio_on_hold()) {
xlog( "L_ERR", "########LOG: Setto la flag \n" );
set_dlg_flag("7");
}
if (is_dlg_flag_set("7") && (status=="200")) {
xlog( "L_ERR", "########LOG: SDP-ON-HOLD Sostituzione del parametro
INACTIVE\n" );
replace_body("a=sendrecv.", "a=inactive");
}
xlog("new branch at $ru\n");
}
T 2012/10/10 11:45:56.587382 10.9.101.163:61892 -> 172.16.55.100:5060 [AP]
INVITE sip:172.16.52.51 SIP/2.0.
FROM: <sip:3707 at 172.16.55.100;user=phone>;epid=D430E933C4;tag=198e999071.
TO: <sip:172.16.52.51>;tag=8b30fc41e5be9ba91c2d8e1b152a7e9a.
CSEQ: 2 INVITE.
CALL-ID: 8fc28eebc1aa2e142dd34dd6d9f4713d at 172.16.52.51.
MAX-FORWARDS: 70.
VIA: SIP/2.0/TCP 10.9.101.163:61892;branch=z9hG4bKa8eef17.
ROUTE:
<sip:172.16.55.100;transport=tcp;r2=on;lr>,<sip:172.16.55.100;r2=on;lr>.
CONTACT:
<sip:LYNC.lwtec.eu:5068;transport=Tcp;maddr=10.9.101.163;ms-opaque=dcf7ba7515f99f91>.
CONTENT-LENGTH: 255.
SUPPORTED: timer.
SUPPORTED: 100rel.
USER-AGENT: RTCC/4.0.0.0 MediationServer.
CONTENT-TYPE: application/sdp.
Session-Expires: 1800.
Min-SE: 90.
.
v=0.
o=- 115 3 IN IP4 10.9.101.163.
s=session.
c=IN IP4 10.9.101.163.
b=CT:1000.
t=0 0.
m=audio 56346 RTP/AVP 8 106.
c=IN IP4 10.9.101.163.
a=rtcp:56347.
a=label:Audio.
a=sendrecv.
a=rtpmap:8 PCMA/8000.
a=rtpmap:106 telephone-event/8000.
a=fmtp:106 0-16.
T 2012/10/10 11:45:56.591138 172.16.55.100:5060 -> 10.9.101.163:61892 [AP]
SIP/2.0 100 Giving a try.
FROM: <sip:3707 at 172.16.55.100;user=phone>;epid=D430E933C4;tag=198e999071.
TO: <sip:172.16.52.51>;tag=8b30fc41e5be9ba91c2d8e1b152a7e9a.
CSEQ: 2 INVITE.
CALL-ID: 8fc28eebc1aa2e142dd34dd6d9f4713d at 172.16.52.51.
VIA: SIP/2.0/TCP 10.9.101.163:61892;branch=z9hG4bKa8eef17.
Server: OpenSIPS-Longwave.
Content-Length: 0.
.
U 2012/10/10 11:45:56.591494 172.16.55.100:5060 -> 172.16.52.51:5060
INVITE sip:172.16.52.51 SIP/2.0.
Record-Route: <sip:172.16.55.100;r2=on;lr>.
Record-Route: <sip:172.16.55.100;transport=tcp;r2=on;lr>.
FROM: <sip:3707 at 172.16.55.100;user=phone>;epid=D430E933C4;tag=198e999071.
TO: <sip:172.16.52.51>;tag=8b30fc41e5be9ba91c2d8e1b152a7e9a.
CSEQ: 2 INVITE.
CALL-ID: 8fc28eebc1aa2e142dd34dd6d9f4713d at 172.16.52.51.
MAX-FORWARDS: 69.
Via: SIP/2.0/UDP 172.16.55.100;branch=z9hG4bKf65f.5b426246.0;i=5.
VIA: SIP/2.0/TCP 10.9.101.163:61892;branch=z9hG4bKa8eef17.
CONTACT:
<sip:LYNC.lwtec.eu:5068;transport=Tcp;maddr=10.9.101.163;ms-opaque=dcf7ba7515f99f91>.
CONTENT-LENGTH: 255.
SUPPORTED: timer.
SUPPORTED: 100rel.
USER-AGENT: RTCC/4.0.0.0 MediationServer.
CONTENT-TYPE: application/sdp.
Session-Expires: 1800.
Min-SE: 90.
.
v=0.
o=- 115 3 IN IP4 10.9.101.163.
s=session.
c=IN IP4 10.9.101.163.
b=CT:1000.
t=0 0.
m=audio 56346 RTP/AVP 8 106.
c=IN IP4 10.9.101.163.
a=rtcp:56347.
a=label:Audio.
a=sendrecv.
a=rtpmap:8 PCMA/8000.
a=rtpmap:106 telephone-event/8000.
a=fmtp:106 0-16.
U 2012/10/10 11:45:56.604032 172.16.52.51:5060 -> 172.16.55.100:5060
SIP/2.0 100 Trying.
To: <sip:172.16.52.51>;tag=8b30fc41e5be9ba91c2d8e1b152a7e9a.
From: <sip:3707 at 172.16.55.100;user=phone>;tag=198e999071;epid=D430E933C4.
Call-ID: 8fc28eebc1aa2e142dd34dd6d9f4713d at 172.16.52.51.
CSeq: 2 INVITE.
Via: SIP/2.0/UDP 172.16.55.100;branch=z9hG4bKf65f.5b426246.0;i=5.
Via: SIP/2.0/TCP 10.9.101.163:61892;branch=z9hG4bKa8eef17.
Content-Length: 0.
.
U 2012/10/10 11:45:56.626543 172.16.52.51:5060 -> 172.16.55.100:5060
SIP/2.0 200 OK.
Record-Route: <sip:172.16.55.100;r2=on;lr>.
Record-Route: <sip:172.16.55.100;transport=tcp;r2=on;lr>.
Content-Type: application/sdp.
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, PRACK, REFER, NOTIFY, UPDATE.
Contact: "Pippo" <sip:172.16.52.51>.
Require: timer.
Supported: 100rel,timer,from-change.
User-Agent: OXO_GW_820/044.001.
Session-Expires: 1800;refresher=uac.
P-Asserted-Identity: "Pippo" <sip:172.16.52.51>.
To: <sip:172.16.52.51>;tag=8b30fc41e5be9ba91c2d8e1b152a7e9a.
From: <sip:3707 at 172.16.55.100;user=phone>;tag=198e999071;epid=D430E933C4.
Call-ID: 8fc28eebc1aa2e142dd34dd6d9f4713d at 172.16.52.51.
CSeq: 2 INVITE.
Via: SIP/2.0/UDP 172.16.55.100;branch=z9hG4bKf65f.5b426246.0;i=5.
Via: SIP/2.0/TCP 10.9.101.163:61892;branch=z9hG4bKa8eef17.
Content-Length: 219.
.
v=0.
o=default 1349862354 1349862356 IN IP4 172.16.52.51.
s=session.
c=IN IP4 172.16.52.51.
t=0 0.
m=audio 32000 RTP/AVP 8 106.
a=sendrecv.
a=rtpmap:106 telephone-event/8000.
a=fmtp:106 0-15.
a=ptime:30.
a=maxptime:90.
*T 2012/10/10 11:45:56.627802 172.16.55.100:5060 -> 10.9.101.163:61892 [AP]*
SIP/2.0 200 OK.
Record-Route: <sip:172.16.55.100;r2=on;lr>.
Record-Route: <sip:172.16.55.100;transport=tcp;r2=on;lr>.
Content-Type: application/sdp.
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, PRACK, REFER, NOTIFY, UPDATE.
Contact: "Pippo" <sip:172.16.52.51>.
Require: timer.
Supported: 100rel,timer,from-change.
User-Agent: OXO_GW_820/044.001.
Session-Expires: 1800;refresher=uac.
P-Asserted-Identity: "Pippo" <sip:172.16.52.51>.
To: <sip:172.16.52.51>;tag=8b30fc41e5be9ba91c2d8e1b152a7e9a.
From: <sip:3707 at 172.16.55.100;user=phone>;tag=198e999071;epid=D430E933C4.
Call-ID: 8fc28eebc1aa2e142dd34dd6d9f4713d at 172.16.52.51.
CSeq: 2 INVITE.
Via: SIP/2.0/TCP 10.9.101.163:61892;branch=z9hG4bKa8eef17.
Content-Length: 218.
.
v=0.
o=default 1349862354 1349862356 IN IP4 172.16.52.51.
s=session.
c=IN IP4 172.16.52.51.
t=0 0.
m=audio 32000 RTP/AVP 8 106.
*a=inactive*
a=rtpmap:106 telephone-event/8000.
a=fmtp:106 0-15.
a=ptime:30.
a=maxptime:90.
--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Need-Hint-for-Opensips-as-UDP-TCP-Proxy-tp7582137p7582184.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
More information about the Users
mailing list