<div dir="ltr"><div class="gmail_default" style="font-family:monospace;font-size:large;color:#0b5394">Hi Rodrigo,</div><div class="gmail_default" style="font-family:monospace;font-size:large;color:#0b5394"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large;color:#0b5394">  I hope this help:<br><br></div><div class="gmail_default" style="font-family:monospace;font-size:large;color:#0b5394">```</div><div class="gmail_default" style="font-family:monospace;font-size:large;color:#0b5394"><div style="color:rgb(255,255,255);background-color:rgb(25,53,73);font-family:"Droid Sans Mono","monospace",monospace;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(0,136,255);font-style:italic">#Change sdp port of m line to 12345</span></div><div>    <span style="color:rgb(255,157,0)">if</span> (has_body(<span style="color:rgb(165,255,144)">"application/sdp"</span>)) {</div><div>        subst_body(<span style="color:rgb(165,255,144)">"/^m=audio [0-9]+ RTP</span><span style="color:rgb(255,98,140)">\/</span><span style="color:rgb(165,255,144)">AVP/m=audio 12345 RTP</span><span style="color:rgb(255,98,140)">\/</span><span style="color:rgb(165,255,144)">AVP/"</span>)<span style="color:rgb(225,239,255)">;</span></div><div>    }</div></div></div><div class="gmail_default" style="font-family:monospace;font-size:large;color:#0b5394">```</div><div class="gmail_default" style="font-family:monospace;font-size:large;color:#0b5394"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large;color:#0b5394">Best,</div><div class="gmail_default" style="font-family:monospace;font-size:large;color:#0b5394">Mohamed</div><div class="gmail_default" style="font-family:monospace;font-size:large;color:#0b5394"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large;color:#0b5394"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 16, 2024 at 9:24 PM Rodrigo Pimenta Carvalho <<a href="mailto:pimenta@inatel.br">pimenta@inatel.br</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg960940891990784722">




<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I'm using OpenSIPs 2.3</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
How can I change a port value in SDP text (in INVITE or SIP OK) ?  I was reading about Script Transformations  and module textops, but I can't figure out how to do that.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Any hint will be very helpful!</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I mean the port in the line like this:  m=audio<b> 50270 </b>RTP/AVP 106 9 0 8 3 111 102 110 112 98 101 100 99</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I just want to test and see what will happen (with RTP packages)  if I change such port with the source port.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Best regards.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="m_960940891990784722Signature">
<table style="text-align:left;background-color:rgb(255,255,255);width:489.05pt;color:rgb(36,36,36);box-sizing:border-box;border-collapse:collapse;border-spacing:0px">
<tbody>
<tr>
<td style="text-align:left;border-right:1pt solid;padding:0cm 5.4pt;width:109.8pt;height:60.7pt">
<p style="text-align:left;margin:0cm 0cm 0.0001pt;font-family:Aptos,sans-serif;font-size:11pt">
<span style="font-family:"Times New Roman",serif;font-size:12pt;color:white"><img alt="cid:a604bf77-b5d0-4cba-b35b-b5456300e731" id="m_960940891990784722x_x_x_x_x_x_x_imageSelected0" width="93" height="35" style="width: 0.975in; height: 0.3666in; min-width: auto; min-height: auto; margin: 0px; vertical-align: top;" src="cid:ii_1915cf0d93d71c914991"></span></p>
</td>
<td style="text-align:left;padding:0cm 5.4pt;vertical-align:top;width:379.25pt;height:60.7pt">
<p style="text-align:left;margin:0cm 0cm 0.0001pt;font-family:Aptos,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;font-size:12pt;color:rgb(47,84,150)"><b>Rodrigo Pimenta Carvalho</b></span></p>
<p style="text-align:left;margin:0cm 0cm 0.0001pt"><span style="font-family:Arial,sans-serif;font-size:16px;color:rgb(31,73,125);background-color:rgb(255,255,255)">Inatel Competence Center - PDI</span></p>
<p style="text-align:left;margin:0cm 0cm 0.0001pt;font-family:Aptos,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;font-size:12pt;color:white"> </span></p>
<p style="text-align:left;margin:0cm 0cm 0.0001pt;font-family:Aptos,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;font-size:12pt;color:rgb(5,99,193)"><u><a href="http://www.inatel.br/" id="m_960940891990784722LPlnk102989" rel="noopener noreferrer" style="color:rgb(5,99,193);margin:0px" target="_blank">www.inatel.br</a></u></span></p>
<p style="text-align:left;margin:0px"><span style="font-family:Arial,sans-serif;font-size:12pt;color:white"> </span></p>
<div style="margin:16px 0px;max-width:800px;min-width:424px"></div>
<table style="text-align:left;width:170.75pt;box-sizing:border-box;border-collapse:collapse;border-spacing:0px">
<tbody>
<tr>
<td style="text-align:left;padding:0cm;width:1pt;height:24.75pt"></td>
<td style="text-align:left;padding:0cm;width:169.75pt;height:24.75pt">
<table style="text-align:left;box-sizing:border-box;border-collapse:collapse;border-spacing:0px">
<tbody>
<tr>
<td style="text-align:left;border-right:2.25pt solid white;background-color:rgb(234,234,234);padding:0cm;width:27.35pt;height:23.05pt">
<p style="text-align:left;line-height:12.6pt;margin:0cm 0cm 0.0001pt"><span style="font-family:"Times New Roman",serif;font-size:12pt;color:white"><a href="https://www.facebook.com/inatel/" title="https://www.facebook.com/inatel/" style="text-decoration:none;margin-top:0px;margin-bottom:0px" target="_blank"><img id="m_960940891990784722image_0" style="max-width: 783px; margin-top: 0px; margin-bottom: 0px;" src="cid:ii_1915cf0d93d8031a5d32"></a></span></p>
</td>
<td style="text-align:left;border-right:2.25pt solid white;background-color:rgb(234,234,234);padding:0cm;width:27.35pt;height:23.05pt">
<p style="text-align:left;line-height:12.6pt;margin:0cm 0cm 0.0001pt"><span style="font-family:"Times New Roman",serif;font-size:12pt;color:white"><a href="https://www.linkedin.com/school/inatel/mycompany/verification/" title="https://www.linkedin.com/school/inatel/mycompany/verification/" style="text-decoration:none;margin-top:0px;margin-bottom:0px" target="_blank"><img id="m_960940891990784722image_1" style="max-width: 783px; margin-top: 0px; margin-bottom: 0px;" src="cid:ii_1915cf0d93de732b5d53"></a></span></p>
</td>
<td style="text-align:left;border-right:2.25pt solid white;background-color:rgb(234,234,234);padding:0cm;width:24.75pt;height:23.05pt">
<p align="center" style="line-height:12.6pt;margin:0cm 0cm 0.0001pt;font-family:Aptos,sans-serif;font-size:11pt">
<span style="font-family:"Times New Roman",serif;font-size:12pt;color:white"><a href="https://www.instagram.com/inatel.tecnologias/?hl=pt" title="https://www.instagram.com/inatel.tecnologias/?hl=pt" style="text-decoration:none;margin-top:0px;margin-bottom:0px" target="_blank"><img alt="cid:9e1aa20a-9909-4469-b056-bf2a099cc8cb" id="m_960940891990784722x_x_x_x_x_x_x_imageSelected1" width="26" height="26" style="width: 0.275in; height: 0.275in; min-width: auto; min-height: auto; margin: 0px; vertical-align: top;" src="cid:ii_1915cf0d93e2ea7c1694"></a></span></p>
</td>
<td style="text-align:left;border-right:2.25pt solid white;background-color:rgb(234,234,234);padding:0cm;width:27.35pt;height:23.05pt">
<p style="text-align:left;line-height:12.6pt;margin:0cm 0cm 0.0001pt"><span style="font-family:"Times New Roman",serif;font-size:12pt;color:white"><a href="https://www.youtube.com/c/InatelTecnologias" title="https://www.youtube.com/c/InatelTecnologias" style="text-decoration:none;margin-top:0px;margin-bottom:0px" target="_blank"><img id="m_960940891990784722image_2" style="max-width: 783px; margin-top: 0px; margin-bottom: 0px;" src="cid:ii_1915cf0d93e63cc7845"></a></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0cm 0cm 0.0001pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:"Times New Roman",serif;color:white"> </span></p>
<p style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0cm 0cm 0.0001pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:"Times New Roman",serif;color:white"> </span></p>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
</div>
</div>

_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="color:rgb(136,136,136)">==============================</span></div><div>Mohamed OUALLA</div><div><b><font color="#0b5394">VoIP Technical Solutions and Software Engineer</font></b></div></div><div dir="ltr">Mail: <a href="mailto:oualla.simohamed@gmail.com" target="_blank">oualla.simohamed@gmail.com</a></div><div dir="ltr"><a href="mailto:oualla.simohamed@gmail.com" target="_blank"><span style="color:rgb(32,33,36)">N.Phone: +212 6 29 19 3116</span><br></a><span style="color:rgb(136,136,136)"><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4w8wo1XjkD9o9pEbHwWo6FMT1wF_bInLSJDV6d97ZxVT7gcrrywnIHV6FirIbCxhmM3g0UskTWbriW8"></span><span style="text-align:center;background-color:rgb(255,255,255)"><b><font size="4" face="monospace" color="#134f5c">SSC Certified Professional</font></b></span></div><div dir="ltr"><span style="color:rgb(136,136,136)">==============================</span></div></div></div></div></div></div>