ok. <br><br>Thanks<br><br><div class="gmail_quote">On Sat, Sep 3, 2011 at 5:38 PM, virendra bhati <span dir="ltr"><<a href="mailto:virbhati@gmail.com">virbhati@gmail.com</a>></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 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<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">
On Sat, Sep 3, 2011 at 5:18 PM, Daniel Tryba <span dir="ltr"><<a href="mailto:daniel@tryba.nl" target="_blank">daniel@tryba.nl</a>></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>On Fri, Sep 02, 2011 at 04:58:52PM +0530, virendra bhati wrote:<br>
> Please guide me how to configure all these files from from AMI connection. I<br>
> am able to login into AMI from Login action but I want to do more task in to<br>
> it.<br>
</div>[lots of fputs]<br>
<div>> 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><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></div></div>-- <br><div class="im"><div dir="ltr"><br><br><br>-----<br>Thanks and regards<br><br> Virendra Bhati<br><a href="tel:%2B91-9172341457" value="+919172341457" target="_blank">+91-9172341457</a><br>
Software Engineer<br></div><br>
</div></div>
<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></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Regards,<br>
Zohair Raza<div><br></div><div><a href="http://www.zuhair.info" target="_blank">www.zuhair.info</a><br><div><p><span><b><span style="font-size: 10pt; font-family: Verdana; color: blue;"><a href="http://pk.linkedin.com/in/zuhairraza" target="_blank">http://pk.linkedin.com/in/zuhairraza</a></span></b></span><span><b><span style="font-size: 10pt; font-family: Verdana; color: rgb(136, 136, 136);"> </span></b></span><b><span style="font-size: 10pt; font-family: Verdana;" lang="DE"></span></b></p>
<br></div></div></div><br>