[asterisk-users] how to add-edit-delete entery into asterisk conf files

Zohair Raza engineerzuhairraza at gmail.com
Sat Sep 3 07:41:35 CDT 2011


ok.

Thanks

On Sat, Sep 3, 2011 at 5:38 PM, virendra bhati <virbhati at gmail.com> wrote:

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



-- 
Regards,
Zohair Raza

www.zuhair.info

*http://pk.linkedin.com/in/zuhairraza**  ***
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110903/4b57e14a/attachment.htm>


More information about the asterisk-users mailing list