<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>thanks for reply.<br><br>&gt; <br>&gt; &gt; how can i give the root permission to 
apache ?<br>&gt; <br>&gt; sudo.<br><br>i also tried sudo . <br>&gt; <br>&gt; However, without 
careful configuration you will probably be giving root <br>&gt; access 
to any process that runs as your apache user.<br>&gt; <br>&gt; I've 
never done it, but I'm guessing you could create a group, make your <br>&gt;
 asterisk user and your apache user members of that group and protect <br>&gt;
 resources appropriately.<br>&gt; <br>&gt; What are you trying to 
accomplish that you can't using AMI, querying a <br>&gt; database, 
creating a call file or parsing a log file?<br><br>&gt;Alternatively, as of 
1.6.1 (or is it 1.6.2) you have CLI permissions.<br>&gt;You can allow 
anybody to write to the socket, but only a limited set of<br>&gt;commands to
 the user 'apache' or whatever. See<br>&gt;/etc/asterisk/cli_permissions.conf
 .<br><br>i am using asterisk 1.6.2 but did't find /etc/asterisk/cli_permissions.conf.<br><br><br></td></tr></table><br>