to communicate with asterisk. Thats kinda why i have been eying ruby.
However, i did get some stuff to work from some examples on the net, if you like i can send them to you.
-shawn
On 8/14/06, Douglas Garstang <[EMAIL PROTECTED]> wrote:
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 resthis yields:[14:[EMAIL PROTECTED]:~]# ./test1.py
Followseventhough 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- [EMAIL PROTECTED] Ring Dial(SIP/2944017|24|tr) .Agent/80014
109 [EMAIL PROTECTED]:1 Up Bridged Call(IAX2/xxx.yyy.142..SIP/80014109-c8c7 [EMAIL PROTECTED]:1 Up (None)
.IAX2/xxx.yyy.142.203 [EMAIL PROTECTED] 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- [EMAIL PROTECTED]:5 Up Dial(IAX2/dundi1:Z
jDoTdgNGD6Po.7 active channels.3 active calls.--END COMMAND--....
##exit
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
