[asterisk-users] pyAst

shawn bright nephish at gmail.com
Mon Aug 14 15:52:41 MST 2006


i couldn't find any docs on it either, found some scripts that just use
python
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 <dgarstang at oneeighty.com> 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 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-
> 2944017 at frompstn_sta Ring    Dial(SIP/2944017|24|tr)       .Agent/80014
>   109       s at one_callback:1     Up      Bridged
> Call(IAX2/xxx.yyy.142..SIP/80014109-c8c7    s at one_callback:1     Up
> (None)
>                          .IAX2/xxx.yyy.142.203 oe_tech-open at one_queUp      Queue(oe_techsupp|rt|||45)    .IAX2/xxx.yyy.142.203 (
>   None)               Up      Bridged
> Call(SIP/xxx.yyy.142.1.SIP/xxx.yyy.142.190- s at macro-DialApp: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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060814/91c9a943/attachment.htm


More information about the asterisk-users mailing list