<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--a:link
        {mso-style-priority:99;}
span.MSOHYPERLINK
        {mso-style-priority:99;}
a:visited
        {mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
        {mso-style-priority:99;}

 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Calibri;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Calibri;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Calibri;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=5 color=navy face=Arial><span style='font-size:
16.0pt;font-family:Arial;color:navy'>Has anyone figured out the Asterisk-GUI 2.0
can&#8217;t connect issue?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-gui-bounces@lists.digium.com
[mailto:asterisk-gui-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Ryan Brindley<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, February 24, 2009
7:00 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Asterisk GUI project
discussion<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [asterisk-gui] rawman</span></font><font
size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>Tom,<br>
This could depend on if you are using 1.4 or 1.6.X, but in 1.4 there are 6
commands: newcat, renamecat, delcat, update, delete, and append. In 1.4, the
update command doesn't append if the var doesn't exist. It actually just does
nothing. So what you are looking for is to do newcat, and then append for any
var/value you want. And then only update if you know the var already exists.<br>
<br>
Since you are using the astman API, i'm assuming you are relatively familiar
with coding. I'd like to point you to the asterisk code that handles updates.
Its a function in main/manager.c called 'handle_updates' starting around line
1154 (i'm not sure if i'm in the latest rev of 1.4). You can follow the
if/elseif statements to view all the conditions each command expects.<br>
<br>
If you are trying to use the GUI as a guide, I'd also suggest using Firefox and
downloading Firebug (a FF addon). Firebug will track all your HTTP requests,
which include all the updateconfig requests and provide you with any request
that the GUI makes. :-)<br>
<br>
Hope this helps.<br>
<br>
--
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
Ryan Brindley
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
Digium, Inc. | Software Developer
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
445 Jan Davis Drive NW - <st1:City w:st="on">Huntsville</st1:City>, <st1:State
w:st="on">AL</st1:State> <st1:PostalCode w:st="on">35806</st1:PostalCode> - <st1:country-region
w:st="on"><st1:place w:st="on">USA</st1:place></st1:country-region>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
main: +1 256-428-6000 &nbsp; fax: +1 256-864-0464
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
Check us out at: http://digium.com &amp; http://asterisk.org<br>
<br>
----- Original Message -----<br>
From: &quot;Tom Garratt&quot; &lt;tom.garratt@mpclondon.co.uk&gt;<br>
To: asterisk-gui@lists.digium.com<br>
Sent: Tuesday, February 24, 2009 8:40:17 AM GMT -06:00 US/Canada Central<br>
Subject: [asterisk-gui] rawman<br>
<br>
<br>
<o:p></o:p></span></font></p>

<!--[if gte mso 9]><xml>
 <u1:shapedefaults u2:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <u3:shapelayout u4:ext="edit">
  <u3:idmap u4:ext="edit" data="1"/>
 </u3:shapelayout>
</xml><![endif]-->

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>Hi,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>Sorry if this is the wrong mailing
list....Always a good way to start a question ;-)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>I&#8217;m trying use rawman to create a user and
set the details. Below I create the user 222, which works. I then try to set
the fullname to tom, which does not work:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>http://192.168.1.88:8088/rawman?action=updateconfig&amp;reload=yes&amp;srcfilename=users.conf&amp;dstfilename=users.conf&amp;Action-000000=newcat&amp;Cat-000000=222&amp;Action-000001=update&amp;Cat-000001=222&amp;Var-000001=fullname&amp;Value-000001=tom&amp;_=<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>If I create the user first with:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>http://192.168.1.88:8088/rawman?action=updateconfig&amp;reload=yes&amp;srcfilename=users.conf&amp;dstfilename=users.conf&amp;Action-000000=newcat&amp;Cat-000000=222&amp;Var-000000=&amp;Value-000000<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>&nbsp;and then try to amend it. It still
does not work:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>http://192.168.1.88:8088/rawman?action=updateconfig&amp;reload=yes&amp;srcfilename=users.conf&amp;dstfilename=users.conf&amp;Action-000000=update&amp;Cat-000000=222&amp;Var-000000=fullname&amp;Value-000000=tom&amp;_=<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>If I create the user using the above
create user code and then edit the user using asterisk gui and then amend the
user via the amend code this works.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>In all cases I get a success message.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>Anyone have any ideas?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><i><font size=1 color=black face=Arial><span
style='font-size:9.0pt;font-family:Arial;color:black;font-style:italic'>Best
Regards</span></font></i><font color=black><span style='color:black'><o:p></o:p></span></font></p>

<p class=MsoNormal><b><i><font size=1 color=black face=Arial><span
style='font-size:9.0pt;font-family:Arial;color:black;font-weight:bold;
font-style:italic'>&nbsp;</span></font></i></b><font color=black><span
style='color:black'><o:p></o:p></span></font></p>

<p class=MsoNormal><b><i><font size=1 color=black face=Arial><span
style='font-size:9.0pt;font-family:Arial;color:black;font-weight:bold;
font-style:italic'>Tom Garratt </span></font></i></b><b><font size=1
color=black face=Arial><span style='font-size:9.0pt;font-family:Arial;
color:black;font-weight:bold'>&nbsp;</span></font></b><font size=1 color=black
face=Arial><span style='font-size:9.0pt;font-family:Arial;color:black'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt;color:black'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'><br>
_______________________________________________ --Bandwidth and Colocation
Provided by http://www.api-digital.com-- asterisk-gui mailing list To
UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-gui<o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>