<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<big><big>Hello,<br>
<br>
For my first post on this mailing list, I'm trying to make
opensips working in this scheme (that's a lab test, so don't
take care of my "public" ip addresses) :<br>
<br>
UAC (asterisk) <---------------------> routeur(<b>nat</b>)
<------------------> opensips (mhomed) <---------->
sip privoder<br>
10.10.1.1 10.10.1.254 /
10.7.59.1 10.7.59.2 / 10.0.95.10
10.0.95.1 <br>
<br>
mhomed is set to 1<br>
I have a rtpproxy set in bridge mode on my opensips, like this :
<br>
</big><i>/usr/local/bin/rtpproxy -p /var/run/rtpproxy.pid -u
rtpproxy -d DBUG LOG_LOCAL5 -m 10000 -M 20000 -l 10.0.95.10
10.7.59.2 -s udp:127.0.0.1 9999</i></big><big><br>
<br>
</big><big><big>I'm trying to establish a call from my asterisk to a
public phone number, but I have a problem with SDP reply (200
OK) , from my opensips to my UAC.<br>
SDP c= value is still 10.0.95.10, instead of 10.7.59.2. That's
the only thing that is not correct in the SIP session. I can't
find why c= value is not correct in the 200 OK.<br>
<br>
I use engage_rtp_proxy("fr"), but I tried with many combinations
(rtpproxy_offer / answer, params=fier, params=feir).<br>
<br>
If somebody has already been in this situation, I would
appreciate his help.<br>
Thanks for your replies, please tell me if you need more
captures or anything else<br>
<br>
Here's a short description of SIP requests, seen from OpenSIPS :<br>
</big><small><small><br>
<br>
<u><b>##### INVITE FROM MY UAC TO OPENSIPS ###############</b></u><br>
U 2013/04/04 18:18:09.621724 10.7.59.1:1028 ->
10.7.59.2:5060<br>
INVITE <a class="moz-txt-link-freetext" href="sip:0604596002@10.7.59.2">sip:0604596002@10.7.59.2</a> SIP/2.0<br>
Via: SIP/2.0/UDP 10.7.59.1:1029;branch=z9hG4bK13253a27;rport<br>
Max-Forwards: 70<br>
From: "100"
<a class="moz-txt-link-rfc2396E" href="sip:0970559990@10.7.59.1:1029"><sip:0970559990@10.7.59.1:1029></a>;tag=as747d5e5b<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:0604596002@10.7.59.2"><sip:0604596002@10.7.59.2></a><br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:0970559990@10.7.59.1:1029"><sip:0970559990@10.7.59.1:1029></a><br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:211f651b7793be045c9c25880e1df4ac@10.10.1.1:5060">211f651b7793be045c9c25880e1df4ac@10.10.1.1:5060</a><br>
CSeq: 102 INVITE<br>
User-Agent: Oceanet-test<br>
Date: Thu, 04 Apr 2013 16:12:34 GMT<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE,
NOTIFY, INFO, PUBLISH<br>
Supported: replaces<br>
Content-Type: application/sdp<br>
Content-Length: 282<br>
<br>
v=0<br>
o=root 1416933599 1416933599 IN IP4 10.10.1.1<br>
s=Asterisk PBX 1.8.20.1<br>
c=IN IP4 10.7.59.1<br>
t=0 0<br>
m=audio 17282 RTP/AVP 9 0 101<br>
a=rtpmap:9 G722/8000<br>
a=rtpmap:0 PCMU/8000<br>
a=rtpmap:101 telephone-event/8000<br>
a=fmtp:101 0-16<br>
a=silenceSupp:off - - - -<br>
a=ptime:20<br>
a=sendrecv<br>
<br>
</small></small></big><u><b><big><small><small>#####</small></small></big></b></u><big><small><small><u><b><big><big><small><small>INVITE
FROM OPENSIPS TO PROVIDER </small></small></big></big></b></u><u><b>###############</b></u><br>
U 2013/04/04 18:18:09.622378 10.0.95.10:5060 ->
10.0.95.1:5060<br>
INVITE <a class="moz-txt-link-freetext" href="sip:0604596002@10.0.95.1">sip:0604596002@10.0.95.1</a> SIP/2.0<br>
Via: SIP/2.0/UDP 10.0.95.10;branch=z9hG4bKbd97.ced0f0b2.0<br>
Max-Forwards: 69<br>
From: "100"
<a class="moz-txt-link-rfc2396E" href="sip:0970559990@10.7.59.1:1029"><sip:0970559990@10.7.59.1:1029></a>;tag=as747d5e5b<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:0604596002@10.7.59.2"><sip:0604596002@10.7.59.2></a><br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:10.0.95.10;did=b0b.7e82f333"><sip:10.0.95.10;did=b0b.7e82f333></a><br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:211f651b7793be045c9c25880e1df4ac@10.10.1.1:5060">211f651b7793be045c9c25880e1df4ac@10.10.1.1:5060</a><br>
CSeq: 102 INVITE<br>
User-Agent: Oceanet-test<br>
Date: Thu, 04 Apr 2013 16:12:34 GMT<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE,
NOTIFY, INFO, PUBLISH<br>
Supported: replaces<br>
Content-Type: application/sdp<br>
Content-Length: 283<br>
<br>
v=0<br>
o=root 1416933599 1416933599 IN IP4 10.10.1.1<br>
s=Asterisk PBX 1.8.20.1<br>
c=IN IP4 10.0.95.10<br>
t=0 0<br>
m=audio 19392 RTP/AVP 9 0 101<br>
a=rtpmap:9 G722/8000<br>
a=rtpmap:0 PCMU/8000<br>
a=rtpmap:101 telephone-event/8000<br>
a=fmtp:101 0-16<br>
a=silenceSupp:off - - - -<br>
a=ptime:20<br>
a=sendrecv<br>
</small></small></big><br>
<small><b><u>##### REPLY FROM PROVIDER TO OPENSIPS ###############</u></b><br>
U 2013/04/04 18:18:16.327567 10.0.95.1:5060 -> 10.0.95.10:5060<br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP 10.0.95.10;branch=z9hG4bKbd97.ced0f0b2.0<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:211f651b7793be045c9c25880e1df4ac@10.10.1.1:5060">211f651b7793be045c9c25880e1df4ac@10.10.1.1:5060</a><br>
From: "100" <a class="moz-txt-link-rfc2396E" href="sip:0970559990@10.7.59.1:1029"><sip:0970559990@10.7.59.1:1029></a>;tag=as747d5e5b<br>
To:
<a class="moz-txt-link-rfc2396E" href="sip:0604596002@10.7.59.2"><sip:0604596002@10.7.59.2></a>;tag=a94c095b773be1dd6e8d668a785a9c84530b7132<br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:10.0.95.1;did=b0b.c3c431b5"><sip:10.0.95.1;did=b0b.c3c431b5></a><br>
CSeq: 102 INVITE<br>
Server: Dialogic-SIP/10.5.3.360 ACKBAR 0<br>
Allow: INVITE, BYE, REGISTER, ACK, OPTIONS, CANCEL, SUBSCRIBE,
NOTIFY, INFO, REFER, UPDATE<br>
Supported: path, replaces, timer, tdialog<br>
Accept: application/sdp, application/dtmf-relay, text/plain<br>
Content-Type: application/sdp<br>
Content-Length: 238<br>
<br>
v=0<br>
o=Dialogic_SDP 2521466 0 IN IP4 91.213.145.116<br>
s=Dialogic-SIP<br>
c=IN IP4 10.0.95.3<br>
t=0 0<br>
m=audio 10018 RTP/AVP 0 101<br>
a=rtpmap:0 PCMU/8000<br>
a=rtpmap:101 telephone-event/8000<br>
a=fmtp:101 0-15<br>
a=silenceSupp:off - - - -<br>
a=ptime:20<br>
<br>
</small><big><small><small><u><b>#### REPLY FROM OPENSIPS TO UAC
WITH WRONG SDP ################</b></u><br>
U 2013/04/04 18:18:16.328296 10.7.59.2:5060 ->
10.7.59.1:1028<br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP 10.7.59.1:1029;branch=z9hG4bK13253a27;rport<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:211f651b7793be045c9c25880e1df4ac@10.10.1.1:5060">211f651b7793be045c9c25880e1df4ac@10.10.1.1:5060</a><br>
From: "100"
<a class="moz-txt-link-rfc2396E" href="sip:0970559990@10.7.59.1:1029"><sip:0970559990@10.7.59.1:1029></a>;tag=as747d5e5b<br>
To:
<a class="moz-txt-link-rfc2396E" href="sip:0604596002@10.7.59.2"><sip:0604596002@10.7.59.2></a>;tag=a94c095b773be1dd6e8d668a785a9c84530b7132<br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:10.7.59.2;did=b0b.7e82f333"><sip:10.7.59.2;did=b0b.7e82f333></a><br>
CSeq: 102 INVITE<br>
Server: Dialogic-SIP/10.5.3.360 ACKBAR 0<br>
Allow: INVITE, BYE, REGISTER, ACK, OPTIONS, CANCEL, SUBSCRIBE,
NOTIFY, INFO, REFER, UPDATE<br>
Supported: path, replaces, timer, tdialog<br>
Accept: application/sdp, application/dtmf-relay, text/plain<br>
Content-Type: application/sdp<br>
Content-Length: 239<br>
<br>
v=0<br>
o=Dialogic_SDP 2521466 0 IN IP4 91.213.145.116<br>
s=Dialogic-SIP<br>
<u><b>c=IN IP4 10.0.95.10</b></u><br>
t=0 0<br>
m=audio 11526 RTP/AVP 0 101<br>
a=rtpmap:0 PCMU/8000<br>
a=rtpmap:101 telephone-event/8000<br>
a=fmtp:101 0-15<br>
a=silenceSupp:off - - - -<br>
a=ptime:20<br>
</small></small></big><br>
<br>
<big><big>Cédric</big></big><br>
</body>
</html>