<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY
style="WORD-WRAP: break-word; khtml-nbsp-mode: space; khtml-line-break: after-white-space">
<DIV><SPAN class=270435020-14082006><FONT face=Arial size=2>Anyone using pyAst?
There's absolutely no docs.</FONT></SPAN></DIV>
<DIV><SPAN class=270435020-14082006><FONT face=Arial size=2>It doesn't seem to
work anyway...</FONT></SPAN></DIV>
<DIV><SPAN class=270435020-14082006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=270435020-14082006><FONT face=Arial size=2>foo =
asterisk.manager.Manager()<BR>foo.connect("pbx1.xxx.com",5038)<BR>foo.login("callout","password")<BR>res
= foo.command("Show Channels")<BR>print res</FONT></SPAN></DIV>
<DIV><SPAN class=270435020-14082006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=270435020-14082006><FONT face=Arial size=2>this
yields:</FONT></SPAN></DIV>
<DIV><SPAN class=270435020-14082006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=270435020-14082006><FONT face=Arial
size=2>[14:51][root@iptmon:~]# ./test1.py <BR>Follows</FONT></SPAN></DIV>
<DIV><SPAN class=270435020-14082006></SPAN><SPAN class=270435020-14082006><FONT
face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=270435020-14082006><FONT face=Arial size=2>eventhough an ngrep
trace shows me the manager interface returned all the data.</FONT></SPAN></DIV>
<DIV><SPAN class=270435020-14082006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=270435020-14082006><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"><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"><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"><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"><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"><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></BODY></HTML>