I'm using a PHP library to update config files of asterisk.
I add a user like this:
$a->write('Action: updateconfig\r\nReload: yes\r\nSrcfilename: users.conf\r\nDstfilename: users.conf\r\nAction-000000: NewCat\r\nCat-000000:test\r\nAction-000001: append\r\nCat-000001: test\r\nVar-000001: mailbox\r\nValue-000001: test\r\n ...etc user fields');
But also I have a template templatename
so I want to add categories with template. I found this question, where is talled that you need simply change category name to test [(templatename)]
. But this simply doesn't create anything.
If you need I can post library but it's just custom library with sockets.