<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="background-color: rgb(255, 255, 255); color: rgb(0, 0,
    0);" text="#000000" bgcolor="#FFFFFF">
All, <br>
<br>
I am facing problem with rewriting SDP part of the INVITE, in particular following is in my configuration:<br>
<br>
#!subst "/RTP_INT_ADDR/10.96.173.15/"<br>
#!subst "/RTP_EXT_ADDR/168.7.24.17/"<br>
#!subst "/BOT_RTP_ADDR/10.96.173.52/"<br>
<br>
subst_body('/RTP_INT_ADDR/RTP_EXT_ADDR/g');<br>
subst_body('/BOT_RTP_ADDR/RTP_EXT_ADDR/g');<br>
<br>
and this is what I ended up with:<br>
<br>
c=IN IP4 10.96.173.15168.7.24.17<br>
<br>
Apparently 2nd rule doesn't work rewrite, it's doing append instead. What I want to achieve is : if SDP part contains BOT_RTP_ADDR -> rewrite it. In case SDP part contains RTP_INT_ADDR-> rewrite it, so 2x if.
<br>
<br>
I have tried to use sdpops module, it's coring in my case and I have a reason to not upgrade, I just can't. Any other ideas how to handle my problem ?<br>
<br>
Thanks<br>
Dan<br>
<br>
<br>
Server:: kamailio (4.2.0-dev0 (x86_64/linux))<br>
Build:: mi_core.c compiled on 17:42:57 Dec 18 2013 with gcc 4.4.7<br>
Flags:: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES<br>
GIT:: unknown<br>
<br>
<br>
<div class="moz-signature">-- <br>
<b>Daniel Ciprus</b><br>
Integration engineer<br>
<a href="http://www.acision.com">http://www.acision.com</a><br>
<br>
9954 Mayland Dr<br>
Suite 3100<br>
Richmond, VA 23233<br>
USA<br>
T: +1 804 762 5601<br>
E: <a class="moz-txt-link-abbreviated" href="mailto:daniel.ciprus@acision.com">daniel.ciprus@acision.com</a><br>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed
 to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you for understanding.<br>
</font>
<br clear=all> 
</body>
</html>