Hi, I am trying to automate the process of adding users(extensions/sip) using script which will call the link & do a get or post data may be using wget.
Eg:
wget --user-agent=“Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)”
–http-user=user1 --http-password=pass1
"http://server/voip/admin/config.php?type=setup&display=extensions&extdisplay=276&skip=0"
The problem is when using the above wget I get HTTP request sent, awaiting response… 401 Unauthorized
Authorization failed. error
But if I try to reload a config using the below wget it works fine as it can authenticate & reloads the asterisk config file.
wget --user-agent=“Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)”
–http-user=user1 --http-password=pass1
http://yabuli/voip/admin/config.php?type=setup&display=extensions&extdisplay=239&clk_reload=true
Is there any way to automate the process rather than going to the freepbx user front-end.
Any help is appreciated.