Just found this:<br><br><a href="http://snippets.dzone.com/posts/show/7256">http://snippets.dzone.com/posts/show/7256</a><br><br>Which has:<br><br>curl -s <a href="http://checkip.dyndns.org/">http://checkip.dyndns.org/</a> | grep -o &quot;[[:digit:].]\+&quot;<br>
<br>It works!<br><br>So I&#39;m thinking combining this with uname -a, you guys might have a better solution here.  Going to test now :)<br><br>Thanks!<br clear="all"><br>-dg<br>
<br><br><div class="gmail_quote">On Thu, Sep 30, 2010 at 1:43 PM, Daniel Goepp <span dir="ltr">&lt;<a href="mailto:dan@goepp.net">dan@goepp.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I&#39;m definitely familiar with back tick and how this command works, I was just mentioning that the information I need to provide, the system doesn&#39;t know.  I could however merge some of these comments, and just have a file on each server that is it&#39;s public ip, and execute `cat my_public_ip.txt`  However, after more investigation, some of our boxes do have other differences, for example I just noticed that our 64bit vs 32bit systems have different mpaths.  I&#39;m sure we could get more fancy with executing these commands, check the OS, and set accordingly.  This is very useful information, but for simplicity for now, I think we&#39;ll just stick with the original m4 suggestion.<br clear="all">

<br>Thanks all.<br><font color="#888888"><br>-dg</font><div><div></div><div class="h5"><br>
<br><br><div class="gmail_quote">On Thu, Sep 30, 2010 at 1:23 PM, Brett Nemeroff <span dir="ltr">&lt;<a href="mailto:brett@nemeroff.com" target="_blank">brett@nemeroff.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

The point is, inside the ticks `` you place a shell command that returns whatever you want there.. :)<div>-Brett</div><div><div></div><div><div><br><br><div class="gmail_quote">On Thu, Sep 30, 2010 at 3:07 PM, Daniel Goepp <span dir="ltr">&lt;<a href="mailto:dan@goepp.net" target="_blank">dan@goepp.net</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Unfortunately the hostname is not what we are using, but rather a public IP address which is on the other side of NAT, so the proxies are not aware of what it is.  I believe the m4 solution posted earlier will meet our need though for now, but thanks for the feedback, this is a creative solution ;)<br clear="all">



<font color="#888888">
<br>-dg</font><div><div></div><div><br>
<br><br><div class="gmail_quote">On Thu, Sep 30, 2010 at 1:00 PM, Pauba, Kevin L <span dir="ltr">&lt;<a href="mailto:KLPauba@west.com" target="_blank">KLPauba@west.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">













<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">define(`_OPENSER_HOST&#39;,`regexp(esyscmd(`hostname
-f&#39;),`\&lt;.+\&gt;&#39;,\&amp;)&#39;)dnl</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">…</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">alias=&quot;_OPENSER_HOST&quot;</span></p>

<div style="border-width: medium medium 1pt; border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; padding: 0in 0in 1pt;">

<p class="MsoNormal" style="border: medium none; padding: 0in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

</div>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Take special note of the backquote (`).</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">

<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a> [mailto:<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>] <b>On
Behalf Of </b>Brett Nemeroff<br>
<b>Sent:</b> Thursday, September 30, 2010 12:22 PM<br>
<b>To:</b> OpenSIPS users mailling list<br>
<b>Subject:</b> Re: [OpenSIPS-Users] Config include file</span></p>

</div>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Check out m4:</p>

<div>

<p class="MsoNormal"><a href="http://www.opensips.org/Resources/DocsTools" target="_blank">http://www.opensips.org/Resources/DocsTools</a></p>

</div>

<div>

<p class="MsoNormal" style="margin-bottom: 12pt;"> </p>

<div>

<p class="MsoNormal">On Thu, Sep 30, 2010 at 12:19 PM, Daniel Goepp &lt;<a href="mailto:dan@goepp.net" target="_blank">dan@goepp.net</a>&gt; wrote:</p>

<p class="MsoNormal" style="margin-bottom: 12pt;">We have many proxies that have
an identical configuration other than their public IP address.  We set
this IP address only for a few things:<br>
<br>
In the global parameters:<br>
advertised_address<br>
<br>
Then in our routes for:<br>
record_route_preset<br clear="all">
rtpproxy_offer<br>
rtpproxy_answer<br>
<br>
What I would like to do is create a file on each of these servers (or a DB)
that contains that servers public IP, and then put something like an include
into the script.  This would make managing our config a lot easier. 
So each system would have an identical config and could be updated very
easily.  Does this make sense?  Any comments on how this might be
done?<br>
<br>
Thanks<br>
<span style="color: rgb(136, 136, 136);"><br>
-dg<br>
</span><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></p>

</div>

<p class="MsoNormal"> </p>

</div>

</div>

</div>


<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>
<br></blockquote></div><br>
</div></div><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>
<br></blockquote></div><br></div>
</div></div><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>
<br></blockquote></div><br>
</div></div></blockquote></div><br>