<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hello Marco,<br>
<br>
Did the interconnection partner mentioned the chapter/paragraph in
RFC6337 where the restriction on the port is mentioned (I was not
able to find it on a quick scan) ? it is the first time I hear
about anything like this.<br>
<br>
Now, if you use rtpproxy (I do not know about rtpengine) on your
side and you do rtpproxy_offer only once (when getting the call
from the carrier) , you can do rtpproxy_answer multiple time
(during the serial forking). In this case, the RTP IP:port towards
the carrier will never change, but the RTP callee leg will be
changed.<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
</pre>
<div class="moz-cite-prefix">On 11/21/2017 11:07 AM, Marco Hierl
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:58ac999d138842ec933c290b76ac188a@next-id.de">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Verdana","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Sprechblasentext Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Verdana","sans-serif";
color:windowtext;}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-priority:99;
mso-style-link:Sprechblasentext;
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Verdana","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Dear
all,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">I
want to play an early announcement before connecting a call.
The announcement can be heard by the caller, but the callee
can't hear the caller after the call is connected!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">To
be more precise:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">The
openSIPS proxy receives a call from an external
interconnection partner (public IP on external interface)
and sends it on to an announcement server (private IP on
internal interface).
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">After
REPLY 183 the announcement starts and the caller can hear
the announcement. It finishes with REPLY603 that comes to
the openSIPS failure route. Some stuff is done (e.g.
changing R-URI),
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">a
new t_relay will be done and an INVITE is send to the callee
(public IP on external interface). The callee sends 200ok,
it's forwarded to the caller, that sends ACK like usual.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">But
the caller does not send RTP to the IP/PORT indicated in the
200OK.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">The
interconnection partner said that the problem is, that the
RTP port in REPLY 183 is different to that in REPLY200 (not
allowed, see RFC6337). (just to mention: the to-tag is
different too)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">I'm
using openSIPS 2.3 and in order to overcome the issue with
internal and external addresses and also to keep the rtp
streams I'm using rtpengine 5.4 (on a different machine)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Is
the change of the RTP Port allowed in this way? If not, what
I can do better? Or is it a fault from rtp-engine, should it
keep the first port?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Any
help is very appreciated!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">I
tried to make a picture... maybe it helps a bit to
understand what I was not able to explain above...<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">No From To Message<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">1 external ownProxy Request:
INVITE <a class="moz-txt-link-freetext" href="sip:+49xxx@us.de;user=phone">sip:+49xxx@us.de;user=phone</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">2 ownProxy external Status:
100 Giving a try<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"> rtpengine_offer(external
internal replace-session-connection ICE=remove trust-address
replace-origin)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"> 3
to
announcement server Request: INVITE
<a class="moz-txt-link-freetext" href="sip:ANNC@mediaserver:5060;user=phone">sip:ANNC@mediaserver:5060;user=phone</a> |
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"> 4
from announcement server Status: 100 Trying |
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"> 5
from announcement server Status:
183 Session Progress |
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"> o=root
1135152900 1135152900 IN IP4 mediaserver<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">
m=audio 13788 RTP/AVP 8 101<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">
rtpengine_answer(internal external
replace-session-connection ICE=remove trust-address
replace-origin)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"> 6 ownProxy external Status:
183 Session Progress
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"> o=root
1135152900 1135152900 IN IP4 ownProxy<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">
m=audio 23024 RTP/AVP 8 101<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"> < ========== ANNOUNCEMENT
========= >
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"> 7
from announcement server Status: 603 Declined
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">
openSIPS failure route
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"> and
rtpengine_offer(external external replace-session-connection
ICE=remove trust-address replace-origin)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">
and new t_relay<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"> 8
to callee Request: INVITE
<a class="moz-txt-link-freetext" href="sip:bob@externalcarrier:5060;user=phone">sip:bob@externalcarrier:5060;user=phone</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">9
from callee Status: 100 Trying<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">10
from callee Status: 200 OK<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">
o=-
239036129 823630844 IN IP4 10.0.203.7<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">
m=audio 1044 RTP/AVP 8 101<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">
rtpengine_answer(external external
replace-session-connection ICE=remove trust-address
replace-origin)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"> <o:p>
</o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">11 ownProxy external Status:
200 OK<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">
o=- 239036129 823630844 IN IP4 ownProxy<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">
m=audio 23056 RTP/AVP 8 101
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"> < ========== RTP from B to A
is ok, A send NO RTP to B =========
>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">12 external ownProxy Request:
ACK <a class="moz-txt-link-freetext" href="sip:ownProxy;did=5db.a2833e17">sip:ownProxy;did=5db.a2833e17</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">13 external ownProxy Request:
BYE <a class="moz-txt-link-freetext" href="sip:ownProxy;did=5db.a2833e17">sip:ownProxy;did=5db.a2833e17</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"" lang="EN-GB">14 ownProxy external Status:
200 OK<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">version:
opensips 2.3.0 (x86_64/linux)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">flags:
STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC,
F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">ADAPTIVE_WAIT_LOOPS=1024,
MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE
1024, BUF_SIZE 65535<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">poll
method support: poll, epoll_lt, epoll_et, sigio_rt, select.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">git
revision: fe0ebcb45<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">main.c
compiled on 09:02:02 Sep 14 2017 with gcc 6.3.0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">rtpengine
version 5.4.0.0+0~mr5.4.0.0 git-master-a9d55c6<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks and
best regards!!!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Marco<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>