<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi Alex,<br>
<br>
No, there is no dedicated var. But "looking" into SDP is the
correct approach. And you will see there ONLY what the device sent
you (it may be a private IP, if the device is natted). But the
real src ip where the RTP is coming from may be "visible" only to
a rtp relay, not to OpenSIPS (it is not reflected in the SIP/SDP
part).<br>
<br>
Regards,<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 23rd May - 3rd June 2022
<a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2022/">https://opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
<div class="moz-cite-prefix">On 4/23/22 8:41 PM, Alexander Perkins
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALLkTp0N-f0cYNKxq_d+W3wz-r59BejTDZfZ1dRotyK08SLV7g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi All. I have an interesting question - how can I
get the <span class="gmail-il">media</span> IP of the caller?
Not the signaling IP, but the <span class="gmail-il">media</span> IP.
Is there a variable for that? <br>
<div><br>
</div>
<div>I've tried this: $var(aline) = $(rb{sdp.line,c,1}), but it
seems to be bringing on the caller's private IP address.</div>
<div><br>
</div>
<div> Any help is appreciated. <br>
</div>
<div><br>
</div>
<div>Thank you,</div>
<div>Alex</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-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>