<div dir="ltr"><div><div>Hi João,<br><br></div><div>Refer to kamailio cookbooks: <a href="https://www.kamailio.org/wiki/cookbooks/4.3.x/pseudovariables">https://www.kamailio.org/wiki/cookbooks/4.3.x/pseudovariables</a><br><br></div><div>You can get source IP: $si<br><br></div><div>Try test/log most of the pseudo variables in the docs to develop better understanding.<br></div><div><br><br></div>Regards,<br></div>Salman<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 15, 2016 at 4:52 PM, João Vitor Torres <span dir="ltr"><<a href="mailto:torres.jv@gmail.com" target="_blank">torres.jv@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">

<p class="MsoNormal"><span lang="EN-US">Hello all,</span></p><p class="MsoNormal"><span lang="EN-US"><br></span></p>

<p class="MsoNormal"><span lang="EN-US">I am looking
for a solution to forward emergency calls inside an enterprise network.</span></p>

<p class="MsoNormal"><span lang="EN-US">Is there
any way to forward calls based on the IP address of caller device? <span> </span></span></p>

<p class="MsoNormal"><span lang="EN-US">The
requirement is that calls to a unique emergency number must be forwarded to
specific local numbers in each building, and the IP address of the caller is the criteria
for choosing the destination. A table maps IP nets to specific local numbers.</span></p>

<p class="MsoNormal"><span lang="EN-US">The SIP
contact header has the caller IP address, but I am new to Kamailio and I am not
sure where to start. Any suggestions?<br></span></p><p class="MsoNormal"><span lang="EN-US"><br></span></p>

<p class="MsoNormal"><span lang="EN-US">Thanks in
advance.</span></p><span class="HOEnZb"><font color="#888888">

<p class="MsoNormal"><span lang="EN-US">João Vitor.
</span></p>

</font></span></div>
<br>______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font face="'times new roman', serif">Regards</font><div><font face="'times new roman', serif"><br></font><div><pre cols="72"><font face="'times new roman', serif">M. Salman<br>VoIP Professional<br></font><br></pre></div></div></div></div></div></div>
</div>