Lo there, i have an app that needs to initiate a phone call on a zap channel. i have been able to test it out ok with the method of dropping a call file into the /var/spool/asterisk/outgoing and specifing the phone number in the call file. what i need to do, however, is initiate a phone call from a python script. i need to pass asterisk the phone number and then a couple of files to play. if anyone can tell me how to pull this off, or could post a link to some good doc or how-to, i would greatly appreciate it. thanks - shawn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060802/31c9646c/attachment.htm
Check out http://starpy.sourceforge.net/ if you have any questions let me know. --- Shidan On 8/2/06, shawn bright <nephish@gmail.com> wrote:> Lo there, > > i have an app that needs to initiate a phone call on a zap channel. > i have been able to test it out ok with the method of dropping a call file > into the /var/spool/asterisk/outgoing and specifing the phone number in the > call file. > > what i need to do, however, is initiate a phone call from a python > script. > i need to pass asterisk the phone number and then a couple of files to play. > if anyone can tell me how to pull this off, or could post a link to some > good doc or how-to, > i would greatly appreciate it. > > thanks > > - shawn > > _______________________________________________ > --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 > > >
Thanks for the reply Shidan, i have looked at this package before, but was not exactly excited about having to learn twisted, get twisted up and running, etc... just to get this one thing done. I will if i have to though, if i cannot find an alternative solution. thanks, shawn On 8/2/06, Shidan <shidan@gmail.com> wrote:> > Check out http://starpy.sourceforge.net/ if you have any questions let me > know. > > --- > Shidan > > On 8/2/06, shawn bright <nephish@gmail.com> wrote: > > Lo there, > > > > i have an app that needs to initiate a phone call on a zap channel. > > i have been able to test it out ok with the method of dropping a call > file > > into the /var/spool/asterisk/outgoing and specifing the phone number in > the > > call file. > > > > what i need to do, however, is initiate a phone call from a python > > script. > > i need to pass asterisk the phone number and then a couple of files to > play. > > if anyone can tell me how to pull this off, or could post a link to some > > good doc or how-to, > > i would greatly appreciate it. > > > > thanks > > > > - shawn > > > > _______________________________________________ > > --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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060802/b6c7279e/attachment.htm
np, but in general its well worth the learn tho if you like python ;) On 8/3/06, shawn bright <nephish@gmail.com> wrote:> Thanks for the reply Shidan, > i have looked at this package before, but was not exactly excited about > having to learn twisted, get twisted up and running, etc... just to get this > one thing done. I will if i have to though, if i cannot find an alternative > solution. > > thanks, > > shawn > > > On 8/2/06, Shidan <shidan@gmail.com> wrote: > > Check out http://starpy.sourceforge.net/ if you have any questions let me > know. > > > > --- > > Shidan > > > > On 8/2/06, shawn bright <nephish@gmail.com > wrote: > > > Lo there, > > > > > > i have an app that needs to initiate a phone call on a zap channel. > > > i have been able to test it out ok with the method of dropping a call > file > > > into the /var/spool/asterisk/outgoing and specifing the phone number in > the > > > call file. > > > > > > what i need to do, however, is initiate a phone call from a python > > > script. > > > i need to pass asterisk the phone number and then a couple of files to > play. > > > if anyone can tell me how to pull this off, or could post a link to some > > > good doc or how-to, > > > i would greatly appreciate it. > > > > > > thanks > > > > > > - shawn > > > > > > _______________________________________________ > > > --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 > > > > > _______________________________________________ > --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 > > >
Hey there, since the original post here, i have found more about twisted and what its all about, and i dig it. There is even a book from amazon about python twisted. There is a whole lot of stuff it can do for all other kinds of network stuff that i will eventually have to pick up to finish this project. So i may, for consistency sake in my larger scale app, learn twisted anyway. thanks. shawn On 8/6/06, Shidan <shidan@gmail.com> wrote:> > np, but in general its well worth the learn tho if you like python ;) > > On 8/3/06, shawn bright <nephish@gmail.com> wrote: > > Thanks for the reply Shidan, > > i have looked at this package before, but was not exactly excited about > > having to learn twisted, get twisted up and running, etc... just to get > this > > one thing done. I will if i have to though, if i cannot find an > alternative > > solution. > > > > thanks, > > > > shawn > > > > > > On 8/2/06, Shidan <shidan@gmail.com> wrote: > > > Check out http://starpy.sourceforge.net/ if you have any questions let > me > > know. > > > > > > --- > > > Shidan > > > > > > On 8/2/06, shawn bright <nephish@gmail.com > wrote: > > > > Lo there, > > > > > > > > i have an app that needs to initiate a phone call on a zap > channel. > > > > i have been able to test it out ok with the method of dropping a > call > > file > > > > into the /var/spool/asterisk/outgoing and specifing the phone number > in > > the > > > > call file. > > > > > > > > what i need to do, however, is initiate a phone call from a > python > > > > script. > > > > i need to pass asterisk the phone number and then a couple of files > to > > play. > > > > if anyone can tell me how to pull this off, or could post a link to > some > > > > good doc or how-to, > > > > i would greatly appreciate it. > > > > > > > > thanks > > > > > > > > - shawn > > > > > > > > _______________________________________________ > > > > --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 > > > > > > > > > _______________________________________________ > > --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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060806/6dc9a8eb/attachment.htm
On Wed, Aug 02, 2006 at 05:00:29PM -0500, shawn bright wrote:> Lo there, > > i have an app that needs to initiate a phone call on a zap channel. > i have been able to test it out ok with the method of dropping a call file > into the /var/spool/asterisk/outgoing and specifing the phone number in the > call file. > > what i need to do, however, is initiate a phone call from a python > script. > i need to pass asterisk the phone number and then a couple of files to play. > if anyone can tell me how to pull this off, or could post a link to some > good doc or how-to, > i would greatly appreciate it.Simpler solution: use a call file. embed the file namesin either the extension number or any othr field. -- Tzafrir Cohen sip:tzafrir@local.xorcom.com icq#16849755 iax:tzafrir@local.xorcom.com +972-50-7952406 jabber:tzafrir@jabber.org tzafrir.cohen@xorcom.com http://www.xorcom.com
um, i dont understand, could you elaborate on that ? thanks On 8/8/06, Tzafrir Cohen <tzafrir.cohen@xorcom.com> wrote:> > On Wed, Aug 02, 2006 at 05:00:29PM -0500, shawn bright wrote: > > Lo there, > > > > i have an app that needs to initiate a phone call on a zap channel. > > i have been able to test it out ok with the method of dropping a call > file > > into the /var/spool/asterisk/outgoing and specifing the phone number in > the > > call file. > > > > what i need to do, however, is initiate a phone call from a python > > script. > > i need to pass asterisk the phone number and then a couple of files to > play. > > if anyone can tell me how to pull this off, or could post a link to some > > good doc or how-to, > > i would greatly appreciate it. > > Simpler solution: use a call file. embed the file namesin either the > extension number or any othr field. > > -- > Tzafrir Cohen sip:tzafrir@local.xorcom.com > icq#16849755 iax:tzafrir@local.xorcom.com > +972-50-7952406 jabber:tzafrir@jabber.org > tzafrir.cohen@xorcom.com http://www.xorcom.com > _______________________________________________ > --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/20060808/2027cdad/attachment.htm