Hi, I want to modify  the following sip packet, I want to change the SDP IP address by $di, which rule could filter this packet? Something like: [ if method(&quot;OK&quot;) and $di is RFC1918 ] ??? And with which function could I change the Ip address in the SDP content? In this case I would like to change <span class="Apple-style-span" style="color: rgb(144, 144, 144); font-size: x-small; ">172.16.99.2 by </span><span class="Apple-style-span" style="font-size: x-small; ">190.244.125.41.</span><div>
Thanks in advance,</div><div><br></div><div>Lucas</div><div><br></div><div><font class="Apple-style-span" size="1">T <a href="http://172.16.99.2:5060">172.16.99.2:5060</a> -&gt; <a href="http://190.244.125.41:9055">190.244.125.41:9055</a> [AP]</font></div>
<div><font color="#909090"><font class="Apple-style-span" size="3"> </font><font class="Apple-style-span" size="1">SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP 172.16.99.2;branch=z9hG4bK7c5.bfc43456.0;i=1;received=172.16.99.2;rport=5060.<br>
Via: SIP/2.0/TCP 192.168.15.231:1952;received=190.244.125.41;branch=z9hG4bK-d8754z-be53247ec649be5b-1---d8754z-;rport=9055.<br>Record-Route: &lt;sip:172.16.99.2;r2=on;lr=on;ftag=b11c6a4e&gt;.<br>Record-Route: &lt;sip:172.16.99.2;transport=tcp;r2=on;lr=on;ftag=b11c6a4e&gt;.<br>
From: &quot;Lucas&quot;&lt;<a href="mailto:sip%3A1104@67.152.18.231">sip:1104@67.152.18.231</a>&gt;;tag=b11c6a4e.<br>To: &lt;<a href="mailto:sip%3A1101@67.152.18.231">sip:1101@67.152.18.231</a>&gt;;tag=as5356a251.<br>Call-ID: NzcwZWIxNGE1MDg5ZjVhZWRhYWNlM2RiNmMwM2M4MWM..<br>
CSeq: 2 INVITE.<br>Server: Asterisk PBX 1.8.4.1.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH.<br>Supported: replaces, timer.<br>Contact: &lt;<a href="http://sip:1101@172.16.99.2:5080">sip:1101@172.16.99.2:5080</a>&gt;.<br>
Remote-Party-ID: &quot;Gus Office One&quot; &lt;<a href="mailto:sip%3A1101@67.152.18.231">sip:1101@67.152.18.231</a>&gt;;party=called;privacy=off;screen=no.<br>Content-Type: application/sdp.<br>Content-Length: 305.<br>.<br>
v=0.<br>o=root 1124623741 1124623741 IN IP4 172.16.99.2.<br>s=Asterisk PBX 1.8.4.1.<br>c=IN IP4 172.16.99.2.<br>t=0 0.<br>m=audio 13640 RTP/AVP 0 8 18 101.<br>a=rtpmap:0 PCMU/8000.<br>a=rtpmap:8 PCMA/8000.<br>a=rtpmap:18 G729/8000.<br>
a=fmtp:18 annexb=no.<br>a=rtpmap:101 telephone-event/8000.<br>a=fmtp:101 0-16.<br>a=ptime:20.<br>a=sendrecv.</font><br></font></div>