<div dir="ltr">Hi Raza,<br><br>Thanks , but there is no ned of Sip.conf and extensions.conf files. <br>As Daniel refered the web page which is enough for all the tasks<br><br><br><div class="gmail_quote">On Sat, Sep 3, 2011 at 5:18 PM, Daniel Tryba <span dir="ltr">&lt;<a href="mailto:daniel@tryba.nl">daniel@tryba.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Fri, Sep 02, 2011 at 04:58:52PM +0530, virendra bhati wrote:<br>
&gt; Please guide me how to configure all these files from from AMI connection. I<br>
&gt; am able to login into AMI from Login action but I want to do more task in to<br>
&gt; it.<br>
</div>[lots of fputs]<br>
<div class="im">&gt; After doing all no success :((<br>
<br>
</div>Have you actually tried reading from the socket to see what the results<br>
are for your commands (hint: turn off events)?<br>
<br>
This is what I get:<br>
Response: Success<br>
ActionID: 9873497149817<br>
<br>
Looking at<br>
<a href="http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+UpdateConfig" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+UpdateConfig</a><br>
it is clear that adding values to a category works different than you<br>
expected.<br>
<br>
First you need to create the new category (your scripts does that<br>
already), then you need to append lines to is in the form of appends to<br>
the category like in the example on <a href="http://voip-info.org" target="_blank">voip-info.org</a>:<br>
<br>
action:updateconfig<br>
reload:yes<br>
srcfilename:manager.conf<br>
dstfilename:manager.conf<br>
Action-000000:append<br>
Cat-000000:newuser<br>
Var-000000:secret<br>
Value-000000:nottelling<br>
<br>
--<br>
<font color="#888888"><br>
   Daniel Tryba<br>
</font><div><div></div><div class="h5"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><br><br><br>-----<br>Thanks and regards<br><br> Virendra Bhati<br>+91-9172341457<br>Software Engineer<br></div><br>
</div>