<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Welcome to IP Country: A New Layer of Asterisk Security	</title>
	<atom:link href="https://nerdvittles.com/welcome-to-ip-country-a-new-layer-of-asterisk-security/feed/" rel="self" type="application/rss+xml" />
	<link>https://nerdvittles.com/welcome-to-ip-country-a-new-layer-of-asterisk-security/</link>
	<description>Ward Mundy&#039;s Technobabblelog</description>
	<lastBuildDate>Wed, 09 Dec 2015 12:36:20 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Skavoovie		</title>
		<link>https://nerdvittles.com/welcome-to-ip-country-a-new-layer-of-asterisk-security/comment-page-1/#comment-9987</link>

		<dc:creator><![CDATA[Skavoovie]]></dc:creator>
		<pubDate>Tue, 08 Sep 2009 16:40:33 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=639#comment-9987</guid>

					<description><![CDATA[@ Tony -- Cool. Many readers of this site are new to Linux, so I was trying to think of the most &quot;point, click, copy, paste&quot; solution possible. Full-path fix made by Ward makes it a non-issue now of course! :)]]></description>
			<content:encoded><![CDATA[<p>@ Tony &#8212; Cool. Many readers of this site are new to Linux, so I was trying to think of the most "point, click, copy, paste" solution possible. Full-path fix made by Ward makes it a non-issue now of course! 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tony Mace		</title>
		<link>https://nerdvittles.com/welcome-to-ip-country-a-new-layer-of-asterisk-security/comment-page-1/#comment-9902</link>

		<dc:creator><![CDATA[Tony Mace]]></dc:creator>
		<pubDate>Sat, 29 Aug 2009 00:53:50 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=639#comment-9902</guid>

					<description><![CDATA[ya I knew I could update the path var, but it was easier to just add the direct path for asterisk in the scrip file.

&lt;i&gt;[WM: It&#039;s fixed now. :-) ]&lt;/i&gt;]]></description>
			<content:encoded><![CDATA[<p>ya I knew I could update the path var, but it was easier to just add the direct path for asterisk in the scrip file.</p>
<p><i>[WM: It&#8217;s fixed now. 🙂 ]</i></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ward		</title>
		<link>https://nerdvittles.com/welcome-to-ip-country-a-new-layer-of-asterisk-security/comment-page-1/#comment-9900</link>

		<dc:creator><![CDATA[ward]]></dc:creator>
		<pubDate>Fri, 28 Aug 2009 15:12:04 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=639#comment-9900</guid>

					<description><![CDATA[Some minor tweaks added to [app-blacklist-check] diaplan. Some service providers apparently send FQDN instead of numeric IP address. Now you can add them to your dialplan painlessly. See the sipgate.com example and copy your own providers beside it if necessary.]]></description>
			<content:encoded><![CDATA[<p>Some minor tweaks added to [app-blacklist-check] diaplan. Some service providers apparently send FQDN instead of numeric IP address. Now you can add them to your dialplan painlessly. See the sipgate.com example and copy your own providers beside it if necessary.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Skavoovie		</title>
		<link>https://nerdvittles.com/welcome-to-ip-country-a-new-layer-of-asterisk-security/comment-page-1/#comment-9897</link>

		<dc:creator><![CDATA[Skavoovie]]></dc:creator>
		<pubDate>Thu, 27 Aug 2009 22:22:21 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=639#comment-9897</guid>

					<description><![CDATA[@T Mace --

The comment engine destroyed the most important part of my previous post.

That line should read:

PATH=$PATH:(paste here the contents of the clipboard -- the output of the previously run command, no spaces).]]></description>
			<content:encoded><![CDATA[<p>@T Mace &#8212;</p>
<p>The comment engine destroyed the most important part of my previous post.</p>
<p>That line should read:</p>
<p>PATH=$PATH:(paste here the contents of the clipboard &#8212; the output of the previously run command, no spaces).</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Skavoovie		</title>
		<link>https://nerdvittles.com/welcome-to-ip-country-a-new-layer-of-asterisk-security/comment-page-1/#comment-9896</link>

		<dc:creator><![CDATA[Skavoovie]]></dc:creator>
		<pubDate>Thu, 27 Aug 2009 22:19:24 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=639#comment-9896</guid>

					<description><![CDATA[@T Mace

If a program runs fine via the CLI, but not via cron, this is almost certainly a path issue. When cron runs a script, it does NOT have the same environment variables as the root user.

The easiest way to fix this would be to:

1) as root, from the CLI execute the following (not the hash sign of course, which is the root prompt):

# echo $PATH

Copy the output results of that command into the clipboard. Take the output of that command and edit /root/ipcountry/ip-checker.sh.

Just below the shebang (#!/bin/bash or whatever shell is being used) -- the first line of the shell script, insert the following line:

PATH=$PATH:

Save your changes, and the script will now work properly via cron.

&lt;i&gt;[WM: We all learn something new everyday. Thanks for the tip!]&lt;/i&gt;]]></description>
			<content:encoded><![CDATA[<p>@T Mace</p>
<p>If a program runs fine via the CLI, but not via cron, this is almost certainly a path issue. When cron runs a script, it does NOT have the same environment variables as the root user.</p>
<p>The easiest way to fix this would be to:</p>
<p>1) as root, from the CLI execute the following (not the hash sign of course, which is the root prompt):</p>
<p># echo $PATH</p>
<p>Copy the output results of that command into the clipboard. Take the output of that command and edit /root/ipcountry/ip-checker.sh.</p>
<p>Just below the shebang (#!/bin/bash or whatever shell is being used) &#8212; the first line of the shell script, insert the following line:</p>
<p>PATH=$PATH:</p>
<p>Save your changes, and the script will now work properly via cron.</p>
<p><i>[WM: We all learn something new everyday. Thanks for the tip!]</i></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Skavoovie		</title>
		<link>https://nerdvittles.com/welcome-to-ip-country-a-new-layer-of-asterisk-security/comment-page-1/#comment-9895</link>

		<dc:creator><![CDATA[Skavoovie]]></dc:creator>
		<pubDate>Thu, 27 Aug 2009 22:15:34 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=639#comment-9895</guid>

					<description><![CDATA[The correct cron entry for running every minute of any given time period (every hour, day, month, day of week) is &#039;*&#039;, not &#039;*/1&#039;. 

Although &#039;*/1&#039; *may* work on most newer releases of Red Hat (CentOS), it&#039;s not correct/proper and is bound to leave any seasoned Linux or UNIX user who sees it scratching his head, and is not guaranteed to migrate cleanly to other distributions or versions.

&lt;i&gt;[WM: We were attempting to demonstrate the correct syntax so that the recurring minute delay could be adjusted. It will work as shown... head-scratching or not.]&lt;/i&gt;]]></description>
			<content:encoded><![CDATA[<p>The correct cron entry for running every minute of any given time period (every hour, day, month, day of week) is &#8216;*&#8217;, not &#8216;*/1&#8217;. </p>
<p>Although &#8216;*/1&#8217; *may* work on most newer releases of Red Hat (CentOS), it&#8217;s not correct/proper and is bound to leave any seasoned Linux or UNIX user who sees it scratching his head, and is not guaranteed to migrate cleanly to other distributions or versions.</p>
<p><i>[WM: We were attempting to demonstrate the correct syntax so that the recurring minute delay could be adjusted. It will work as shown&#8230; head-scratching or not.]</i></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: T Mace		</title>
		<link>https://nerdvittles.com/welcome-to-ip-country-a-new-layer-of-asterisk-security/comment-page-1/#comment-9891</link>

		<dc:creator><![CDATA[T Mace]]></dc:creator>
		<pubDate>Thu, 27 Aug 2009 09:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=639#comment-9891</guid>

					<description><![CDATA[added /usr/sbin in front of the asterisk call - should be ok now, have to wait 5 min to find out :)

&lt;i&gt;[WM: Fixed in latest release as well. Thanks.]&lt;/i&gt;]]></description>
			<content:encoded><![CDATA[<p>added /usr/sbin in front of the asterisk call &#8211; should be ok now, have to wait 5 min to find out 🙂</p>
<p><i>[WM: Fixed in latest release as well. Thanks.]</i></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: T Mace		</title>
		<link>https://nerdvittles.com/welcome-to-ip-country-a-new-layer-of-asterisk-security/comment-page-1/#comment-9890</link>

		<dc:creator><![CDATA[T Mace]]></dc:creator>
		<pubDate>Thu, 27 Aug 2009 09:38:39 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=639#comment-9890</guid>

					<description><![CDATA[getting:
/root/ipcountry/ip-checker.sh: line 2: asterisk: command not found
/root/ipcountry/ip-checker.sh: line 3: asterisk: command not found

when running from cronjob, works just fine at the CLI]]></description>
			<content:encoded><![CDATA[<p>getting:<br />
/root/ipcountry/ip-checker.sh: line 2: asterisk: command not found<br />
/root/ipcountry/ip-checker.sh: line 3: asterisk: command not found</p>
<p>when running from cronjob, works just fine at the CLI</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jim Douglas		</title>
		<link>https://nerdvittles.com/welcome-to-ip-country-a-new-layer-of-asterisk-security/comment-page-1/#comment-9885</link>

		<dc:creator><![CDATA[Jim Douglas]]></dc:creator>
		<pubDate>Wed, 26 Aug 2009 17:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=639#comment-9885</guid>

					<description><![CDATA[This looks like it will be a fun project for this weekend.  Once again, thanks for all your time and resource to make this available to the community.]]></description>
			<content:encoded><![CDATA[<p>This looks like it will be a fun project for this weekend.  Once again, thanks for all your time and resource to make this available to the community.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ward		</title>
		<link>https://nerdvittles.com/welcome-to-ip-country-a-new-layer-of-asterisk-security/comment-page-1/#comment-9884</link>

		<dc:creator><![CDATA[ward]]></dc:creator>
		<pubDate>Wed, 26 Aug 2009 17:14:09 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=639#comment-9884</guid>

					<description><![CDATA[If you downloaded the application prior to 1:10 pm EDT today, see &lt;a href=&quot;http://pbxinaflash.com/forum/showpost.php?p=32641&amp;postcount=11&quot; rel=&quot;nofollow&quot;&gt;this post&lt;/a&gt; for a bug fix. Sorry.]]></description>
			<content:encoded><![CDATA[<p>If you downloaded the application prior to 1:10 pm EDT today, see <a href="http://pbxinaflash.com/forum/showpost.php?p=32641&#038;postcount=11" rel="nofollow">this post</a> for a bug fix. Sorry.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
