[asterisk-users] pyAst

Douglas Garstang dgarstang at oneeighty.com
Mon Aug 14 13:52:56 MST 2006


Anyone using pyAst? There's absolutely no docs.
It doesn't seem to work anyway...
 
foo = asterisk.manager.Manager()
foo.connect("pbx1.xxx.com",5038)
foo.login("callout","password")
res = foo.command("Show Channels")
print res
 
this yields:
 
[14:51][root at iptmon:~]# ./test1.py 
Follows
 
eventhough an ngrep trace shows me the manager interface returned all the data.
 
T xxx.yyy.142.203:5038 -> xxx.yyy.141.250:53195 [AP]
  Channel              Location             State   Application(Data)             .SIP/2944017-080c     (None)               Ring
  ing AppDial((Outgoing Line))      .SIP/xxx.yyy.142.186-  <mailto:2944017 at frompstn_sta> 2944017 at frompstn_sta Ring    Dial(SIP/2944017|24|tr)       .Agent/80014
  109        <mailto:s at one_callback:1> s at one_callback:1     Up      Bridged Call(IAX2/xxx.yyy.142..SIP/80014109-c8c7     <mailto:s at one_callback:1> s at one_callback:1     Up      (None) 
                         .IAX2/xxx.yyy.142.203  <mailto:oe_tech-open at one_que> oe_tech-open at one_que Up      Queue(oe_techsupp|rt|||45)    .IAX2/xxx.yyy.142.203 (
  None)               Up      Bridged Call(SIP/xxx.yyy.142.1.SIP/xxx.yyy.142.190-  <mailto:s at macro-DialApp:5> s at macro-DialApp:5    Up      Dial(IAX2/dundi1:Z
  jDoTdgNGD6Po.7 active channels.3 active calls.--END COMMAND--....                                                              
##exit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060814/2cd434a6/attachment.htm


More information about the asterisk-users mailing list