<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for AsterBlog - VoIP, Asterisk and Networking Discussion</title>
	<atom:link href="http://asterblog.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://asterblog.wordpress.com</link>
	<description>A Blog about Asterisk,VoIP and Telephony</description>
	<lastBuildDate>Fri, 26 Sep 2008 21:26:03 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Basic func_odbc starting point by epower</title>
		<link>http://asterblog.wordpress.com/2007/05/30/basic-func_odbc-starting-point/#comment-17</link>
		<dc:creator>epower</dc:creator>
		<pubDate>Fri, 26 Sep 2008 21:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://asterblog.wordpress.com/2007/05/30/basic-func_odbc-starting-point/#comment-17</guid>
		<description>@Even: If a func_odbc read command doesn&#039;t work, it&#039;ll set the returned value to NULL. Use the ISNULL function to check if nothing was returned. For example, if a MySQL error was produced, there should be a log message and a NULL return value.</description>
		<content:encoded><![CDATA[<p>@Even: If a func_odbc read command doesn&#8217;t work, it&#8217;ll set the returned value to NULL. Use the ISNULL function to check if nothing was returned. For example, if a MySQL error was produced, there should be a log message and a NULL return value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Basic func_odbc starting point by Even</title>
		<link>http://asterblog.wordpress.com/2007/05/30/basic-func_odbc-starting-point/#comment-16</link>
		<dc:creator>Even</dc:creator>
		<pubDate>Fri, 26 Sep 2008 08:19:13 +0000</pubDate>
		<guid isPermaLink="false">http://asterblog.wordpress.com/2007/05/30/basic-func_odbc-starting-point/#comment-16</guid>
		<description>Is  there ANY variable or ANYTHING else one can check to find the STATUS of the func_odbc command.i.e. if it FAILS or a mySQL ERRO was produced HOW can you tell ?</description>
		<content:encoded><![CDATA[<p>Is  there ANY variable or ANYTHING else one can check to find the STATUS of the func_odbc command.i.e. if it FAILS or a mySQL ERRO was produced HOW can you tell ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cheating around &#8216;include&#8217; in Asterisk realtime by Ish</title>
		<link>http://asterblog.wordpress.com/2007/07/17/cheating-around-include-in-asterisk-realtime/#comment-15</link>
		<dc:creator>Ish</dc:creator>
		<pubDate>Mon, 22 Sep 2008 10:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://asterblog.wordpress.com/2007/07/17/cheating-around-include-in-asterisk-realtime/#comment-15</guid>
		<description>Hi

You can include contexts to others in RealTime although you will need to learn some shell scripting

There is a file that is run every minute on the root crontab, on  my setup it is

/usr/local/bin/db-ext.sh

this basically rewrites the extensions.conf and reloads the dial plan

It is in this file that you can add your own macros and get contexts to include other contexts</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>You can include contexts to others in RealTime although you will need to learn some shell scripting</p>
<p>There is a file that is run every minute on the root crontab, on  my setup it is</p>
<p>/usr/local/bin/db-ext.sh</p>
<p>this basically rewrites the extensions.conf and reloads the dial plan</p>
<p>It is in this file that you can add your own macros and get contexts to include other contexts</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using multiple servers and one database with regserver by Singleton</title>
		<link>http://asterblog.wordpress.com/2007/07/24/using-multiple-servers-and-one-database-with-regserver/#comment-13</link>
		<dc:creator>Singleton</dc:creator>
		<pubDate>Thu, 19 Jun 2008 12:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://asterblog.wordpress.com/2007/07/24/using-multiple-servers-and-one-database-with-regserver/#comment-13</guid>
		<description>Somehow i missed the point. Probably lost in translation :) Anyway ... nice blog to visit.

cheers, Singleton!!</description>
		<content:encoded><![CDATA[<p>Somehow i missed the point. Probably lost in translation <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Anyway &#8230; nice blog to visit.</p>
<p>cheers, Singleton!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cheating around &#8216;include&#8217; in Asterisk realtime by Héctor</title>
		<link>http://asterblog.wordpress.com/2007/07/17/cheating-around-include-in-asterisk-realtime/#comment-12</link>
		<dc:creator>Héctor</dc:creator>
		<pubDate>Tue, 18 Mar 2008 01:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://asterblog.wordpress.com/2007/07/17/cheating-around-include-in-asterisk-realtime/#comment-12</guid>
		<description>Hi, 

Is there any new way to include context in realtime ?

I don&#039;t find any other usefull info about this topic</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Is there any new way to include context in realtime ?</p>
<p>I don&#8217;t find any other usefull info about this topic</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Basic func_odbc starting point by bbarrett</title>
		<link>http://asterblog.wordpress.com/2007/05/30/basic-func_odbc-starting-point/#comment-11</link>
		<dc:creator>bbarrett</dc:creator>
		<pubDate>Sat, 05 Jan 2008 14:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://asterblog.wordpress.com/2007/05/30/basic-func_odbc-starting-point/#comment-11</guid>
		<description>@Gaba: you&#039;ll probably want an entry in res_obdc.conf like

[dinfw]
enabled =&gt; yes
dsn =&gt; ...
username =&gt; ...
password =&gt; ...
pre-connect =&gt; yes</description>
		<content:encoded><![CDATA[<p>@Gaba: you&#8217;ll probably want an entry in res_obdc.conf like</p>
<p>[dinfw]<br />
enabled =&gt; yes<br />
dsn =&gt; &#8230;<br />
username =&gt; &#8230;<br />
password =&gt; &#8230;<br />
pre-connect =&gt; yes</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using multiple servers and one database with regserver by bbarrett</title>
		<link>http://asterblog.wordpress.com/2007/07/24/using-multiple-servers-and-one-database-with-regserver/#comment-10</link>
		<dc:creator>bbarrett</dc:creator>
		<pubDate>Sat, 05 Jan 2008 14:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://asterblog.wordpress.com/2007/07/24/using-multiple-servers-and-one-database-with-regserver/#comment-10</guid>
		<description>I would like to, but I&#039;m no longer working in the TSSG so I no longer have access to the files. In any case they were rather cluttered with internal stuff. I haven&#039;t worked with Asterisk for almost 6 months so bear with me, but ill try to recall.

IIRC, first of all you would have to configure func_odbc. Then add a func_odbc entry like so:
&lt;code&gt;
[GET_REGISTER_SERVER]
dsn=sipaccounts
read=select regserver from sipaccounts where name = &#039;${SQL_ESC(${ARG1})}&#039;
&lt;/code&gt;

Then something like the following in extensions.conf
&lt;code&gt;
exten =&gt;_XXX,1,Answer()
; somehow extract the name from the caller.. there was a function
; to do this... something like &lt;a href=&quot;http://www.voip-info.org/wiki/index.php?page=Asterisk+func+sipchaninfo&quot; rel=&quot;nofollow&quot;&gt;SIP_CHANINFO&lt;/a&gt;
exten =&gt; _XXXX,n,Set(regserver=&quot;${GET_REGISTER_SERVER(${name})})
exten =&gt; _XXXX,n,GotoIf($[ &quot;${regserver}&quot; != &quot;&quot; ]?${regserver},${EXTEN})
exten =&gt; _XXXX,n,Hangup()
&lt;/code&gt;

Then you can add different contexts with the names of your various sip servers, as defined in asterisk.conf. Or, you could do a direct dial if the server names map to sip servers in a one-to-one fashion like so:
&lt;code&gt;
exten =&gt;_XXX,1,Answer()
; somehow extract the name from the caller.. there was a function
; to do this... something like &lt;a href=&quot;http://www.voip-info.org/wiki/index.php?page=Asterisk+func+sipchaninfo&quot; rel=&quot;nofollow&quot;&gt;SIP_CHANINFO&lt;/a&gt;
; we store it in a channel variable called &quot;name&quot;
exten =&gt; _XXXX,n,Set(regserver=&quot;${ODBC_GET_REGISTER_SERVER(${name})})
exten =&gt; _XXXX,n,Dial(${regserver}/${EXTEN})
exten =&gt; _XXXX,n,Hangup()
&lt;/code&gt;

It all depends on what kind of access control you need (we wanted some) and how your servers are set up. I recommend using a few virtual machines to setup a test bed before trying to do this on a real server.</description>
		<content:encoded><![CDATA[<p>I would like to, but I&#8217;m no longer working in the TSSG so I no longer have access to the files. In any case they were rather cluttered with internal stuff. I haven&#8217;t worked with Asterisk for almost 6 months so bear with me, but ill try to recall.</p>
<p>IIRC, first of all you would have to configure func_odbc. Then add a func_odbc entry like so:<br />
<code><br />
[GET_REGISTER_SERVER]<br />
dsn=sipaccounts<br />
read=select regserver from sipaccounts where name = '${SQL_ESC(${ARG1})}'<br />
</code></p>
<p>Then something like the following in extensions.conf<br />
<code><br />
exten =&gt;_XXX,1,Answer()<br />
; somehow extract the name from the caller.. there was a function<br />
; to do this... something like <a href="http://www.voip-info.org/wiki/index.php?page=Asterisk+func+sipchaninfo" rel="nofollow">SIP_CHANINFO</a><br />
exten =&gt; _XXXX,n,Set(regserver="${GET_REGISTER_SERVER(${name})})<br />
exten =&gt; _XXXX,n,GotoIf($[ "${regserver}" != "" ]?${regserver},${EXTEN})<br />
exten =&gt; _XXXX,n,Hangup()<br />
</code></p>
<p>Then you can add different contexts with the names of your various sip servers, as defined in asterisk.conf. Or, you could do a direct dial if the server names map to sip servers in a one-to-one fashion like so:<br />
<code><br />
exten =&gt;_XXX,1,Answer()<br />
; somehow extract the name from the caller.. there was a function<br />
; to do this... something like <a href="http://www.voip-info.org/wiki/index.php?page=Asterisk+func+sipchaninfo" rel="nofollow">SIP_CHANINFO</a><br />
; we store it in a channel variable called "name"<br />
exten =&gt; _XXXX,n,Set(regserver="${ODBC_GET_REGISTER_SERVER(${name})})<br />
exten =&gt; _XXXX,n,Dial(${regserver}/${EXTEN})<br />
exten =&gt; _XXXX,n,Hangup()<br />
</code></p>
<p>It all depends on what kind of access control you need (we wanted some) and how your servers are set up. I recommend using a few virtual machines to setup a test bed before trying to do this on a real server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using multiple servers and one database with regserver by Vic</title>
		<link>http://asterblog.wordpress.com/2007/07/24/using-multiple-servers-and-one-database-with-regserver/#comment-9</link>
		<dc:creator>Vic</dc:creator>
		<pubDate>Sat, 05 Jan 2008 04:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://asterblog.wordpress.com/2007/07/24/using-multiple-servers-and-one-database-with-regserver/#comment-9</guid>
		<description>Can you post the dial plan logic here? I would like to try it. Thanks</description>
		<content:encoded><![CDATA[<p>Can you post the dial plan logic here? I would like to try it. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Basic func_odbc starting point by gaba</title>
		<link>http://asterblog.wordpress.com/2007/05/30/basic-func_odbc-starting-point/#comment-8</link>
		<dc:creator>gaba</dc:creator>
		<pubDate>Fri, 28 Dec 2007 22:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://asterblog.wordpress.com/2007/05/30/basic-func_odbc-starting-point/#comment-8</guid>
		<description>great! i receive an error:

Dec 28 22:33:06 ERROR[2429]: func_odbc.c:267 acf_odbc_read: No such DSN registered: dinfw (check res_odbc.conf)

so I&#039;m still trying to understand res_odbc.conf</description>
		<content:encoded><![CDATA[<p>great! i receive an error:</p>
<p>Dec 28 22:33:06 ERROR[2429]: func_odbc.c:267 acf_odbc_read: No such DSN registered: dinfw (check res_odbc.conf)</p>
<p>so I&#8217;m still trying to understand res_odbc.conf</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cheating around &#8216;include&#8217; in Asterisk realtime by helderam</title>
		<link>http://asterblog.wordpress.com/2007/07/17/cheating-around-include-in-asterisk-realtime/#comment-7</link>
		<dc:creator>helderam</dc:creator>
		<pubDate>Sat, 10 Nov 2007 20:21:19 +0000</pubDate>
		<guid isPermaLink="false">http://asterblog.wordpress.com/2007/07/17/cheating-around-include-in-asterisk-realtime/#comment-7</guid>
		<description>Hello,

I have tha same problem. 

If know other way to solve the problem, let me know.

thanks,
Helder</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I have tha same problem. </p>
<p>If know other way to solve the problem, let me know.</p>
<p>thanks,<br />
Helder</p>
]]></content:encoded>
	</item>
</channel>
</rss>
