<div dir="ltr"><div>check this resource<br><br><a href="http://www.opensips.org/Documentation/Script-CoreFunctions#toc43">http://www.opensips.org/Documentation/Script-CoreFunctions#toc43</a><br><br></div><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/10/14 Brett Nemeroff <span dir="ltr">&lt;<a href="mailto:brett@nemeroff.com" target="_blank">brett@nemeroff.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">I believe the suggestion is to:</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
1. Allow all calls from OpenSIPs to hit your dial plan (insecure=invite)</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">2. In the dial plan, check for the existence of a custom header, this customer header should be inserted by opensips to indicate the original IP (append_hf(&quot;X-Original-IP: $si&quot;);)</div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">3. &quot;do something&quot; based on the original IP received. </div><span class="HOEnZb"><font color="#888888"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">-Brett</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div> <div><span style="font-family:helvetica,arial;font-size:13px"></span>-- <br>Brett Nemeroff<br>
<span>Sent with <a href="http://airmailapp.info/tracking" target="_blank">Airmail</a></span></div></font></span><div><div class="h5"> <br><p style="color:#a0a0a8">On October 14, 2013 at 1:02:09 PM, bluerain (<a href="mailto://frank21118@yahoo.com" target="_blank">frank21118@yahoo.com</a>) wrote:</p>
 <blockquote type="cite" style="border-left:1px #004080 solid!important;margin-left:0px;padding-left:5px"><span><div><div>thx for the suggestion, I don&#39;t think asterisk reads the IP from any of the
<br>header or in any part of SIP message.  I think asterisk read the IP from the
<br>IP at the network layer.  anyhow, if you like you can read my reply to Mike.
<br>
<br>Thx again.  Have you ever encounter the usr_loc module that stop updating
<br>the DB location table after few hours from initial boot?
<br>
<br>
<br>
<br>--
<br>View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/Opensip-as-transaprent-inbound-proxy-for-asterisk-tp7588047p7588083.html" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/Opensip-as-transaprent-inbound-proxy-for-asterisk-tp7588047p7588083.html</a>
<br>Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
<br>
<br>_______________________________________________
<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" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br></div></div></span></blockquote></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>