i couldn't find any docs on it either, found some scripts that just use python<br>to communicate with asterisk. Thats kinda why i have been eying ruby. <br>However, i did get some stuff to work from some examples on the net, if you like i can send them to you.
<br><br>-shawn<br><br><div><span class="gmail_quote">On 8/14/06, <b class="gmail_sendername">Douglas Garstang</b> <<a href="mailto:dgarstang@oneeighty.com">dgarstang@oneeighty.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div style="">
<div><span><font face="Arial" size="2">Anyone using pyAst?
There's absolutely no docs.</font></span></div>
<div><span><font face="Arial" size="2">It doesn't seem to
work anyway...</font></span></div>
<div><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">foo =
asterisk.manager.Manager()<br>foo.connect("<a href="http://pbx1.xxx.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pbx1.xxx.com</a>",5038)<br>foo.login("callout","password")
<br>res
= foo.command("Show Channels")<br>print res</font></span></div>
<div><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">this
yields:</font></span></div>
<div><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">[14:51][root@iptmon:~]# ./test1.py <br>Follows</font></span></div>
<div><span></span><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">eventhough an ngrep
trace shows me the manager interface returned all the data.</font></span></div>
<div><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">T
xxx.yyy.142.203:5038 -> xxx.yyy.141.250:53195 [AP]<br>
Channel
Location
State
Application(Data)
.SIP/2944017-080c
(None)
Ring<br> ing AppDial((Outgoing Line))
.SIP/xxx.yyy.142.186- <a href="mailto:2944017@frompstn_sta" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><font color="#000000">2944017@frompstn_sta</font></a> Ring
Dial(SIP/2944017|24|tr)
.Agent/80014<br> 109 <a href="mailto:s@one_callback:1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><font color="#000000">s@one_callback:1</font></a>
Up Bridged
Call(IAX2/xxx.yyy.142..SIP/80014109-c8c7 <a href="mailto:s@one_callback:1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><font color="#000000">s@one_callback:1</font></a>
Up (None)
<br>
.IAX2/xxx.yyy.142.203 <a href="mailto:oe_tech-open@one_que" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><font color="#000000">oe_tech-open@one_que</font></a> Up
Queue(oe_techsupp|rt|||45) .IAX2/xxx.yyy.142.203 (<br>
None)
Up Bridged
Call(SIP/xxx.yyy.142.1.SIP/xxx.yyy.142.190- <a href="mailto:s@macro-DialApp:5" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><font color="#000000">s@macro-DialApp:5</font></a>
Up Dial(IAX2/dundi1:Z<br> jDoTdgNGD6Po.7
active channels.3 active calls.--END
COMMAND--....
<br>##exit</font></span></div></div>
</div><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --
<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br><br></blockquote></div><br>