<?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>All About Telephony &#187; latest version 1.4</title>
	<atom:link href="http://www.syednetworks.com/tag/latest-version-14/feed" rel="self" type="application/rss+xml" />
	<link>http://www.syednetworks.com</link>
	<description>VoIP and Telephony</description>
	<lastBuildDate>Wed, 08 Feb 2012 21:55:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Asterisk manager.conf configuration</title>
		<link>http://www.syednetworks.com/asterisk-managerconf-configuration</link>
		<comments>http://www.syednetworks.com/asterisk-managerconf-configuration#comments</comments>
		<pubDate>Fri, 01 Dec 2006 19:10:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Asterisk PBX]]></category>
		<category><![CDATA[Action]]></category>
		<category><![CDATA[Asterisk latest version]]></category>
		<category><![CDATA[Asterisk Manager API]]></category>
		<category><![CDATA[GUI manager interface]]></category>
		<category><![CDATA[latest version 1.4]]></category>
		<category><![CDATA[Manager API]]></category>
		<category><![CDATA[manager.conf]]></category>
		<category><![CDATA[Reload the Asterisk configuration]]></category>
		<category><![CDATA[TCP socket to the Asterisk]]></category>

		<guid isPermaLink="false">http://www.syednetworks.com/?p=77</guid>
		<description><![CDATA[The Manager interface is used to remotely view/change console (and other) actions. Through the use of the manager interface, you are able to send actions and receive responses very similar to the CLI interface.Â However Asterisk latest version 1.4 beta has GUI manager interface which...]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-5441476791057559";
/* 336x280, created 5/27/08 */
google_ad_slot = "2308058417";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><font face="Helvetica, sans-serif">The Manager interface is used to remotely view/change console (and other) actions.  Through the use of the manager interface, you are able to send actions and receive responses very similar to the CLI interface.Â  </font><span id="intelliTXT">However Asterisk latest version 1.4 beta has GUI manager interface which is very user friendly. Asterisk comes with Asterisk Manager API, which allows third-party software to provide external management services. And through the freely available Asterisk-Sounds add-on package, Asterisk provides a full range of canned voice messages to use with menus and IVR.</span></p>
<p>Use this procedure to connect to the Asterisk Manager:<span id="more-77"></span></p>
<ol>
<li>Edit the /etc/asterisk/manager.conf:<br />
Set the enabled option to â€śyesâ€ť.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8211;<br />
enabled = yes<br />
&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Adding a user:<br />
user_name > The user name used to authenticate the connection<br />
user_password > The password used to authenticate the connection<br />
connecting_from_ip > The IP address from which you are connecting</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
[user_name]<br />
secret = user_password<br />
deny=0.0.0.0/0.0.0.0<br />
permit = connecting_from_ip/255.255.255.0<br />
read = system,call,log,verbose,command,agent,user<br />
write = system,call,log,verbose,command,agent,user<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</li>
<li>Reload the Asterisk configuration.</li>
<li>Open a TCP socket to the Asterisk IP.</li>
<li>Login by sending the following string:<br />
â€śAction: Login\r\n\<br />
Username: user_name\r\n\<br />
Secret: user_password\r\n\<br />
ActionID: 1\r\n\r\nâ€ť</li>
<li>Send a command using the following format:<br />
â€śAction: command\r\ncommand: command_string\r\n\r\nâ€ť</li>
</ol>
<p>**********<br />
* Sample *<br />
**********<br />
# Connect from Client (IP:192.168.0.90)<br />
# to Asterisk (IP:192.168.0.100)<br />
# Send command reload</p>
<p>Manager.conf<br />
&#8212;&#8212;&#8212;&#8212;<br />
[general]<br />
enabled = yes<br />
port = 5038<br />
bindaddr = 192.168.0.100</p>
<p>[admin]<br />
secret = password<br />
deny = 0.0.0.0/0.0.0.0<br />
permit = 192.168.0.90/255.255.255.0<br />
read = system,call,log,verbose,command,agent,user<br />
write = system,call,log,verbose,command,agent,user</p>
<table>
<tr>
<td>Perl Script:<br />
&#8212;&#8212;&#8212;&#8212;-<br />
#!/usr/bin/perl -w<br />
use IO::Socket::INET;<br />
use strict;</p>
<p>#Connect to manager interface &#8230;<br />
my $manager_sock = new IO::Socket::INET</td>
<td valign="bottom">(PeerPort=>5038,</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>Proto=>&#8217;tcp&#8217;,</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>PeerAddr=>&#8217;192.168.0.100&#8242;);</td>
</tr>
</table>
<table>
<tr>
<td># Login&#8230;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>if($manager_sock->send(</td>
<td>Action: Login\r\nť.</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>Username: admin\r\nť.</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>Secret: password\r\nť.</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>ActionID: 1\r\n\r\nâ€ť) == 0)</td>
</tr>
</table>
<p>{<br />
print Failed to send login information\nť;<br />
exit(1);<br />
}</p>
<p>#Command (reload asterisk configuration)<br />
$manager_sock->send(Action: command\r\ncommand: reload\r\n\r\nâ€ť);<br />
$manager_sock->close();</p>

	Tags: <a href="http://www.syednetworks.com/tag/action" title="Action" rel="tag">Action</a>, <a href="http://www.syednetworks.com/tag/asterisk-latest-version" title="Asterisk latest version" rel="tag">Asterisk latest version</a>, <a href="http://www.syednetworks.com/tag/asterisk-manager-api" title="Asterisk Manager API" rel="tag">Asterisk Manager API</a>, <a href="http://www.syednetworks.com/tag/gui-manager-interface" title="GUI manager interface" rel="tag">GUI manager interface</a>, <a href="http://www.syednetworks.com/tag/latest-version-14" title="latest version 1.4" rel="tag">latest version 1.4</a>, <a href="http://www.syednetworks.com/tag/manager-api" title="Manager API" rel="tag">Manager API</a>, <a href="http://www.syednetworks.com/tag/managerconf" title="manager.conf" rel="tag">manager.conf</a>, <a href="http://www.syednetworks.com/tag/reload-the-asterisk-configuration" title="Reload the Asterisk configuration" rel="tag">Reload the Asterisk configuration</a>, <a href="http://www.syednetworks.com/tag/tcp-socket-to-the-asterisk" title="TCP socket to the Asterisk" rel="tag">TCP socket to the Asterisk</a><br />

	<h4>Related posts</h3>
	<ul class="st-related-posts">
	<li><a href="http://www.syednetworks.com/asterisk-queues-conf" title="Asterisk queues.conf (August 21, 2008)">Asterisk queues.conf</a> (2)</li>
	<li><a href="http://www.syednetworks.com/asterisk-features" title="Asterisk Features (December 13, 2006)">Asterisk Features</a> (1)</li>
	<li><a href="http://www.syednetworks.com/asterisk-gateway-interface" title="Asterisk AGI (May 23, 2008)">Asterisk AGI</a> (16)</li>
	<li><a href="http://www.syednetworks.com/asterisk-1-8-features" title="Asterisk 1.8 Features (September 7, 2010)">Asterisk 1.8 Features</a> (3)</li>
	<li><a href="http://www.syednetworks.com/asterisk-1-6-features" title="Asterisk 1.6 (October 18, 2008)">Asterisk 1.6</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.syednetworks.com/asterisk-managerconf-configuration/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

