<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>i.n.s.i.g.h.t.s &#187; Asterisk</title>
	<atom:link href="http://intuitinnovations.com/blog/archives/category/asterisk-malaysia-intuit/feed" rel="self" type="application/rss+xml" />
	<link>http://intuitinnovations.com/blog</link>
	<description>intuit teamlog, pictures, videos</description>
	<lastBuildDate>Fri, 02 Jul 2010 07:05:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Need a softphone? How about 39 free ones to choose from.</title>
		<link>http://intuitinnovations.com/blog/archives/122</link>
		<comments>http://intuitinnovations.com/blog/archives/122#comments</comments>
		<pubDate>Fri, 11 Sep 2009 10:42:59 +0000</pubDate>
		<dc:creator>wpadmin</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[softphones]]></category>

		<guid isPermaLink="false">http://intuitinnovations.com/blog/?p=122</guid>
		<description><![CDATA[If you think there&#8217;s not enough softphones out there that can work with Asterisk? Think again, here&#8217;s 39 for you to choose from:
Source article: http://www.venturevoip.com/news.php?rssid=2188

DIAX
E-Phone
Ekiga
Empathy
Firefly
FlaPhone
IAX Telefon
Jabbin
JackenIAX
JIAX
KCall
KIAX
KPhone
LinPhone
MiniPax
MiniSIP
MizuPhone
MozillaVoIP
Mumble
NimBuzz
OfficeSIP
PhonerLite
QuteCom
SFLPhone
SightSpeed AKA Logitech Vid
SJphone
SIP Communicator
Team Speak
Telephone
TPad
Twinkle
VBuzzer
Ventrilo
Voix Phone
WXCommunicator
X-Lite
YakaPhone
ZFone
Zoiper

]]></description>
			<content:encoded><![CDATA[<p>If you think there&#8217;s not enough softphones out there that can work with Asterisk? Think again, here&#8217;s 39 for you to choose from:</p>
<p>Source article: <a href="http://www.venturevoip.com/news.php?rssid=2188">http://www.venturevoip.com/news.php?rssid=2188</a></p>
<ol>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.laser.com/dante/diax/diax.html">DIAX</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.xtremenetworks.biz/e-phone.htm">E-Phone</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://ekiga.org/">Ekiga</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://live.gnome.org/Empathy">Empathy</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.freshtel.net/download/internetphone/">Firefly</a></li>
<li><a href="http://www.flaphone.com/"><span style="text-decoration: none;">FlaPhone</span></a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.geocities.com/babarnazmi/">IAX Telefon</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://sourceforge.net/projects/jabbin/">Jabbin</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.jackenhack.com/jackeniax/">JackenIAX</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://callino.cc/jiaxcapplet/">JIAX</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.basyskom.de/index.pl/kcall">KCall</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://sourceforge.net/projects/kiax/">KIAX</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://sourceforge.net/projects/kphone/">KPhone</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.linphone.org/index.php/eng">LinPhone</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.vidosystem.com/sip_softphone.htm">MiniPax</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.minisip.org/">MiniSIP</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.mizu-softphone.com/">MizuPhone</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.mozillavoip.com/">MozillaVoIP</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://mumble.sourceforge.net/">Mumble</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.nimbuzz.com/en/pc/">NimBuzz</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.officesip.com/">OfficeSIP</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.phonerlite.de/index_en.htm">PhonerLite</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.qutecom.org/">QuteCom</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://sflphone.org/index.php">SFLPhone</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.logitech.com/index.cfm/349/5788&amp;cl=nz,en&amp;pcid=5787">SightSpeed AKA Logitech Vid</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.sjlabs.com/sjp.html">SJphone</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.sip-communicator.org/index.php">SIP Communicator</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.teamspeak.com/?page=downloads">Team Speak</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://code.google.com/p/telephone/">Telephone</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.tpad.com/sip-guide-make-calls/">TPad</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.twinklephone.com/">Twinkle</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.vbuzzer.com/download.php">VBuzzer</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.ventrilo.com/download.php">Ventrilo</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.voixphone.com/">Voix Phone</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://sourceforge.net/projects/wxcommunicator/">WXCommunicator</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.counterpath.com/x-lite.html&amp;active=4">X-Lite</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.yakasoftware.com/index.php?option=com_content&amp;task=view&amp;id=12&amp;Itemid=26">YakaPhone</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://zfoneproject.com/prod_zfone.html">ZFone</a></li>
<li><a style="text-decoration: none; color: #0000ff;" rel="nofollow" href="http://www.zoiper.com/">Zoiper</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://intuitinnovations.com/blog/archives/122/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2N Bluetwoer Redfone FoneBridge and Asterisk</title>
		<link>http://intuitinnovations.com/blog/archives/57</link>
		<comments>http://intuitinnovations.com/blog/archives/57#comments</comments>
		<pubDate>Wed, 19 Aug 2009 01:01:35 +0000</pubDate>
		<dc:creator>Daniel Ali Aman</dc:creator>
				<category><![CDATA[Asterisk]]></category>

		<guid isPermaLink="false">http://intuitinnovations.com/blog/?p=57</guid>
		<description><![CDATA[Good Morning
We tested / deployed a 2N Bluetower GSM Gateway (8 channels up to 32 SIM) with a Redfone
FoneBridge and Asterisk for one of our clients here in Malaysia. Works like a charm and saves money&#8230;  


Cheers
Daniel
]]></description>
			<content:encoded><![CDATA[<p>Good Morning</p>
<p>We tested / deployed a <a href="http://www.2n.cz/products/gsm_gateways/isdn_pri_gsm_gateways/bluetower_gsm_gateway.html">2N Bluetower GSM Gateway</a> (8 channels up to 32 SIM) with a <a href="http://www.red-fone.com">Redfone<br />
FoneBridge</a> and Asterisk for one of our clients here in Malaysia. Works like a charm and saves money&#8230; <img src='http://intuitinnovations.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><img src="http://www.danielaliaman.com/blog/files/2n1.jpg" alt="" /></p>
<p><img src="http://www.danielaliaman.com/blog/files/2n2.jpg" alt="" /></p>
<p>Cheers<br />
Daniel</p>
]]></content:encoded>
			<wfw:commentRss>http://intuitinnovations.com/blog/archives/57/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free G7.29 codec for &#8220;educational&#8221; purposes?</title>
		<link>http://intuitinnovations.com/blog/archives/52</link>
		<comments>http://intuitinnovations.com/blog/archives/52#comments</comments>
		<pubDate>Sun, 16 Aug 2009 07:01:41 +0000</pubDate>
		<dc:creator>Sanjay Willie</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[freeg 7.29]]></category>
		<category><![CDATA[g.729 code]]></category>

		<guid isPermaLink="false">http://intuitinnovations.com/blog/archives/52</guid>
		<description><![CDATA[These guys at www.asterikast.com posted a link there claiming they have a g7.29 codec for “educational” purposes. This is something we need to go checkout and tryout on Asterisk. It would be a good “trial” for our customers if they wish to have it installed to improve overall network utilization. We have lots of successful [...]]]></description>
			<content:encoded><![CDATA[<p>These guys at <a href="http://www.asterikast.com">www.asterikast.com</a> posted a link there claiming they have a g7.29 codec for “educational” purposes. This is something we need to go checkout and tryout on Asterisk. It would be a good “trial” for our customers if they wish to have it installed to improve overall network utilization. We have lots of successful stories with those using this codec and using it over unreliable networks such as the internet, VPN etc..</p>
<p>Anyway, we will try to test it on our test images/systems and let you guys know what’s the deal with this freebie <img src='http://intuitinnovations.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Download <a href="http://www.asterikast.com/downloadclicks.php?url=http://www.asterikast.com/_downloads/pentiumg729.zip&amp;name=G.729%20Codec%20(unlimited%20use)&amp;ver=1.0">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://intuitinnovations.com/blog/archives/52/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vTiger 5.1.0 Asterisk.1.4 integration update</title>
		<link>http://intuitinnovations.com/blog/archives/39</link>
		<comments>http://intuitinnovations.com/blog/archives/39#comments</comments>
		<pubDate>Fri, 14 Aug 2009 01:17:15 +0000</pubDate>
		<dc:creator>Daniel Ali Aman</dc:creator>
				<category><![CDATA[Asterisk]]></category>

		<guid isPermaLink="false">http://intuitinnovations.com/blog/?p=39</guid>
		<description><![CDATA[Here the AsteriskClient.php script (/var/www/vtigercrm/cron/modules/PBXManager/) that works with Asterisk 1.4 and vTiger 5.1.0.
This scripts fixe the problem of a phone logged-in into a queue -&#62; vTiger could
not pop-up the caller information.
This will fix it.
Cheers
Daniel
#!/usr/bin/php
/*+**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* (&#8220;License&#8221;); You may not use this [...]]]></description>
			<content:encoded><![CDATA[<p>Here the AsteriskClient.php script (/var/www/vtigercrm/cron/modules/PBXManager/) that works with Asterisk 1.4 and vTiger 5.1.0.<br />
This scripts fixe the problem of a phone logged-in into a queue -&gt; vTiger could<br />
not pop-up the caller information.</p>
<p>This will fix it.</p>
<p>Cheers<br />
Daniel</p>
<p><em>#!/usr/bin/php<br />
/*+**********************************************************************************<br />
* The contents of this file are subject to the vtiger CRM Public License Version 1.0<br />
* (&#8220;License&#8221;); You may not use this file except in compliance with the License<br />
* The Original Code is:  vtiger CRM Open Source<br />
* The Initial Developer of the Original Code is vtiger.<br />
* Portions created by vtiger are Copyright (C) vtiger.<br />
* All Rights Reserved.<br />
************************************************************************************/</em></p>
<p><em>/**<br />
* this file will be run as a shell script (in linux) or a batch file (under windows).<br />
* the purpose of the file is to create a master socket which will be connecting to the asterisk server<br />
* and to keep it (the socket) alive all the time.<br />
*/</em></p>
<p><em>ini_set(&#8220;include_path&#8221;, &#8220;../../../&#8221;);<br />
require_once(&#8216;modules/PBXManager/utils/AsteriskClass.php&#8217;);<br />
require_once(&#8216;config.php&#8217;);<br />
require_once(&#8216;include/utils/utils.php&#8217;);<br />
require_once(&#8216;include/language/en_us.lang.php&#8217;);<br />
require_once(&#8216;modules/PBXManager/AsteriskUtils.php&#8217;);</em></p>
<p><em>$calls = array();<br />
asteriskClient();</em></p>
<p><em>/**<br />
* this function defines the asterisk client<br />
*/<br />
function asteriskClient(){<br />
global $app_strings, $current_user;<br />
global $adb, $log;</em></p>
<p><em>$data = getAsteriskInfo($adb);<br />
$server = $data['server'];<br />
$port = $data['port'];<br />
$username = $data['username'];<br />
$password = $data['password'];<br />
$version = $data['version'];</em></p>
<p><em>$errno = $errstr = NULL;<br />
$sock = @fsockopen($server, $port, $errno, $errstr, 3);<br />
if( $sock === false ) {<br />
$errno = $errstr = NULL;<br />
$sock = @fsockopen($server, $port, $errno, $errstr, 1);<br />
}<br />
stream_set_blocking($sock, false);<br />
if( $sock === false ) {<br />
echo &#8220;Socket cannot be created due to error: $errno:  $errstr\n&#8221;;<br />
$log-&gt;debug(&#8220;Socket cannot be created due to error:   $errno:  $errstr\n&#8221;);<br />
exit(0);<br />
}else{<br />
echo &#8220;Date: &#8220;.date(&#8220;d-m-Y&#8221;).&#8221;\n&#8221;;<br />
echo &#8220;Connecting to asterisk server&#8230;..\n&#8221;;<br />
$log-&gt;debug(&#8220;Connecting to asterisk server&#8230;..\n&#8221;);<br />
}<br />
echo &#8220;Connected successfully\n\n\n&#8221;;<br />
$asterisk = new Asterisk($sock, $server, $port);</em></p>
<p><em>authorizeUser($username, $password, $asterisk);</em></p>
<p><em>//keep looping continuosly to check if there are any calls<br />
while (true) {<br />
//check for incoming calls and insert in the database<br />
//      sleep(1);<br />
$incoming = handleIncomingCalls($asterisk, $adb);<br />
}<br />
fclose($sock);<br />
unset($sock);<br />
}</em></p>
<p><em>/**<br />
* this function checks if there are any incoming calls for the current user<br />
* if any call is found, it just inserts the values into the vtiger_asteriskincomingcalls table<br />
*<br />
* @param $asterisk &#8211; the asterisk object<br />
* @param $adb &#8211; the peardatabase type object<br />
* @return   incoming call information if successful<br />
*          false if unsuccessful<br />
*/<br />
function handleIncomingCalls($asterisk, $adb){<br />
global $calls;<br />
$response = $asterisk-&gt;getAsteriskResponse(false);<br />
if(empty($response)) {<br />
return false;<br />
}<br />
$tmp = array();<br />
$tmp = explode(&#8220;.&#8221;, $response['Uniqueid']);<br />
$unique_id = $tmp[0];<br />
if(($response['Event'] == &#8216;Newstate&#8217;) &amp;&amp; ($response['State'] == &#8216;Ring&#8217;)) {<br />
if(!array_key_exists($unique_id, $calls)) {<br />
$calls = array($unique_id =&gt; array(&#8216;CallerID&#8217; =&gt; $response['CallerID'],<br />
&#8216;CallerIDName&#8217; =&gt; $response['CallerIDName'],<br />
&#8216;UniqueTime&#8217; =&gt; time()));<br />
echo date(&#8220;H:i:s&#8221;) . &#8216; &#8211; UniqueId:   &#8216; . $unique_id . &#8216; ==&gt; New Call&#8217; . &#8220;\n\r&#8221;;<br />
echo &#8216;        &#8216; . &#8216; &#8211; CallerId:   &#8216; . $calls[$unique_id]['CallerID'] . &#8220;\n\r&#8221;;<br />
echo &#8216;        &#8216; . &#8216; &#8211; CallerName: &#8216; . $calls[$unique_id]['CallerIDName'] . &#8220;\n\r&#8221;;<br />
}<br />
return true;<br />
}<br />
if($response['Event'] == &#8216;Newcallerid&#8217;) {<br />
if(array_key_exists($unique_id, $calls)) {<br />
$calls[$unique_id]['CallerID']     = $response['CallerID'];<br />
$calls[$unique_id]['CallerIDName'] = $response['CallerIDName'];<br />
echo date(&#8220;H:i:s&#8221;) . &#8216; &#8211; UniqueId:   &#8216; . $unique_id . &#8216; ==&gt; CallerId Change&#8217; . &#8220;\n\r&#8221;;<br />
echo &#8216;        &#8216; . &#8216; &#8211; CallerId:   &#8216; . $calls[$unique_id]['CallerID'] . &#8220;\n\r&#8221;;<br />
echo &#8216;        &#8216; . &#8216; &#8211; CallerName: &#8216; . $calls[$unique_id]['CallerIDName'] . &#8220;\n\r&#8221;;<br />
}<br />
return true;<br />
}<br />
if(($response['Event'] == &#8216;Newexten&#8217;) &amp;&amp; (strstr($response['AppData'],&#8221;EXTTOCALL&#8221;))){<br />
if(array_key_exists($unique_id, $calls)) {<br />
$temp = array();<br />
$temp = explode(&#8220;/&#8221;,$response['Channel']);<br />
$calls[$unique_id]['CallerType'] = $temp[0];<br />
$temp = explode(&#8220;=&#8221;,$response['AppData']);<br />
$calls[$unique_id]['Extension'] = $temp[1];<br />
if(checkExtension($calls[$unique_id]['Extension'], $adb)){<br />
$sql = &#8220;insert into vtiger_asteriskincomingcalls values (?,?,?,?,?,?)&#8221;;<br />
$flag= 0;<br />
$timer = time();<br />
$params = array($calls[$unique_id]['CallerID'],<br />
$calls[$unique_id]['CallerIDName'],<br />
$calls[$unique_id]['Extension'],<br />
$calls[$unique_id]['CallerType'],<br />
$flag, $timer);<br />
$adb-&gt;pquery($sql, $params);<br />
addToCallHistory($calls[$unique_id]['Extension'],<br />
$calls[$unique_id]['CallerType'] . &#8220;:&#8221; . $calls[$unique_id]['CallerID'],<br />
$calls[$unique_id]['Extension'],<br />
&#8220;incoming&#8221;, $adb);<br />
echo date(&#8220;H:i:s&#8221;) . &#8216; &#8211; UniqueId:   &#8216; . $unique_id . &#8216; ==&gt; Internal Call vTiger DB&#8217; . &#8220;\n\r&#8221;;<br />
echo &#8216;        &#8216; . &#8216; &#8211; CallerId:   &#8216; . $calls[$unique_id]['CallerID'] . &#8220;\n\r&#8221;;<br />
echo &#8216;        &#8216; . &#8216; &#8211; CallerName: &#8216; . $calls[$unique_id]['CallerIDName'] . &#8220;\n\r&#8221;;<br />
echo &#8216;        &#8216; . &#8216; &#8211; Extension:  &#8216; . $calls[$unique_id]['Extension'] . &#8220;\n\r&#8221;;<br />
}<br />
}<br />
return true;<br />
}<br />
if($response['Event'] == &#8216;Hangup&#8217;){<br />
if(array_key_exists($unique_id, $calls)) {<br />
unset($calls[$unique_id]);<br />
echo date(&#8220;H:i:s&#8221;) . &#8216; &#8211; HangUpId:   &#8216; . $unique_id . &#8216; ==&gt; Call End&#8217; . &#8220;\n\r&#8221;;<br />
}<br />
return true;<br />
}<br />
if(($response['Event'] == &#8216;Newchannel&#8217;) &amp;&amp; ($response['State'] == &#8216;Ring&#8217;)){<br />
if(array_key_exists($unique_id, $calls)) {<br />
$temp = array();<br />
$temp = explode(&#8220;/&#8221;, $response['Channel']);<br />
$temp1 = array();<br />
$temp1 = explode(&#8220;@&#8221;, $temp[1]);<br />
$calls[$unique_id]['CallerType'] = &#8216;SIP&#8217;;<br />
$calls[$unique_id]['Extension'] = $temp1[0];<br />
echo date(&#8220;H:i:s&#8221;) . &#8216; &#8211; UniqueId:   &#8216; . $unique_id . &#8216; ==&gt; New Channel: &#8216; . $calls[$unique_id]['Extension'] . &#8220;\n\r&#8221;;<br />
if(checkExtension($calls[$unique_id]['Extension'], $adb)){<br />
$sql = &#8220;insert into vtiger_asteriskincomingcalls values (?,?,?,?,?,?)&#8221;;<br />
$flag= 0;<br />
$timer = time();<br />
$params = array($calls[$unique_id]['CallerID'],<br />
$calls[$unique_id]['CallerIDName'],<br />
$calls[$unique_id]['Extension'],<br />
$calls[$unique_id]['CallerType'],<br />
$flag, $timer);<br />
$adb-&gt;pquery($sql, $params);<br />
addToCallHistory($calls[$unique_id]['Extension'],<br />
$calls[$unique_id]['CallerType'] . &#8220;:&#8221; . $calls[$unique_id]['CallerID'],<br />
$calls[$unique_id]['Extension'],<br />
&#8220;incoming&#8221;, $adb);<br />
echo date(&#8220;H:i:s&#8221;) . &#8216; &#8211; UniqueId:   &#8216; . $unique_id . &#8216; ==&gt; External Call vTiger DB&#8217; . &#8220;\n\r&#8221;;<br />
echo &#8216;        &#8216; . &#8216; &#8211; CallerId:   &#8216; . $calls[$unique_id]['CallerID'] . &#8220;\n\r&#8221;;<br />
echo &#8216;        &#8216; . &#8216; &#8211; CallerName: &#8216; . $calls[$unique_id]['CallerIDName'] . &#8220;\n\r&#8221;;<br />
echo &#8216;        &#8216; . &#8216; &#8211; Extension:  &#8216; . $calls[$unique_id]['Extension'] . &#8220;\n\r&#8221;;<br />
}<br />
}<br />
return true;<br />
}<br />
return true;<br />
}</em></p>
<p><em>/**<br />
* this function takes a XML response and converts it to an array format<br />
* @param string $response &#8211; the xml response<br />
* @return the xml formatted into an array<br />
*/<br />
function getArray($xml){<br />
$lines = explode(&#8220;\r\n&#8221;, $xml);</em></p>
<p><em>$response = array();<br />
foreach($lines as $line){<br />
list($key, $value) = explode(&#8220;:&#8221;, $line);<br />
$response[$key] = $value;<br />
}<br />
return $response;<br />
}</em></p>
<p><em>/**<br />
* this function checks if the given extension is a valid vtiger extension or not<br />
* if yes it returns true<br />
* if not it returns false<br />
*<br />
* @param string $ext &#8211; the extension to be checked<br />
* @param object $adb &#8211; the peardatabase object<br />
*/<br />
function checkExtension($ext, $adb){<br />
$sql = &#8220;select * from vtiger_asteriskextensions where asterisk_extension=&#8217;$ext&#8217;&#8221;;<br />
$result = $adb-&gt;pquery($sql, array());</em></p>
<p><em>if($adb-&gt;num_rows($result)&gt;0){<br />
return true;<br />
}else{<br />
return false;<br />
}<br />
}<br />
?&gt; </em></p>
]]></content:encoded>
			<wfw:commentRss>http://intuitinnovations.com/blog/archives/39/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
