You can subscribe to this list here.
2007 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
(1) |
Oct
(5) |
Nov
(9) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
(1) |
Jul
(3) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(6) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Mike C. F. <mcf...@vr...> - 2011-06-29 03:03:42
|
On 11-06-28 10:26 AM, Russell Bryant wrote: > Github allows hosting a project web site, but it's not commonly used for > whatever reason. It also allows tarball hosting, too. It's a fairly > complete replacement for sourceforge. I'll come back with a link once > we can get a project web site up to show (with the same content from the > current one). > My concern wasn't for the technical resources, but rather the tendency of projects on Github to fragment their source trees into multiple, mutually non-interoperable code bases as developers scratch their own itches without bothering to re-integrate into the trunk. Users wind up seeing 10 active branches, none of which seems to be "official", each of which has some enhancements added or missing. As I said, a project-management, rather than a technical issue. It just seems to be something I see more on Github projects than on Launchpad or SourceForge, where a driver/trunk is nominated. I'd expect that making the asterisk-org branch a de facto official release branch (since AFAIK the Digium guys are the most active developers at the moment) would be the most appropriate strategy to avoid fragmentation. Just my $0.02, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: Russell B. <ru...@di...> - 2011-06-28 14:26:32
|
Github allows hosting a project web site, but it's not commonly used for whatever reason. It also allows tarball hosting, too. It's a fairly complete replacement for sourceforge. I'll come back with a link once we can get a project web site up to show (with the same content from the current one). -- Russell Bryant On 6/28/11 7:26 AM, Mike C. Fletcher wrote: > I don't mind use of github as core repo, I haven't been all that impressed with cohesiveness of projects hosted on it, but I think that's just project management issues, not problems with the resource itself. > > Godson Gera<god...@gm...> wrote: > >> I am OK with that. Lets see what Mike says. Also, please make sure >> that these new changes are not going smoke up the sourceforge pages, where >> it all started. Providing a link to sf pages in docs and other txt files >> would be nice. >> >> >> On Tue, Jun 28, 2011 at 3:27 AM, Paul Belanger<pab...@di...>wrote: >> >>> On 11-06-27 04:42 PM, Russell Bryant wrote: >>>> Greetings, >>>> >>>> I would like to propose some changes to StarPy hosting. >>>> >>>> We have started making our changes on github. We could merge these >>>> changes back into the version on sourceforge, but to be honest, I'd >>>> rather just keep it on github. Of course, I would be happy to set up >>>> full commit access for those that had it on sourceforge to the repo on >>>> github. >>>> >>>> https://github.com/asterisk-org/starpy >>>> >>>> We can also start hosting project tarballs on downloads.asterisk.org. >>>> >>>> This all seems to make sense since it seems like we (Digium) are the >>>> only ones actively working on it. What do you think? >>>> >>>> Thanks, >>>> >>> +1 >>> >>> As a follow up, I have both Debian / Ubuntu packaging ready to roll for >>> the new tarball. So once we decided how to move forward, I'll be >>> pushing them upstream. :) >>> >>> -- >>> Paul Belanger >>> Digium, Inc. | Software Developer >>> twitter: pabelanger | IRC: pabelanger (Freenode) >>> Check us out at: http://digium.com& http://asterisk.org >>> >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> Starpy-users mailing list >>> Sta...@li... >>> https://lists.sourceforge.net/lists/listinfo/starpy-users >>> >> >> >> >> -- >> Thanks& Regards, >> Godson Gera >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Starpy-users mailing list >> Sta...@li... >> https://lists.sourceforge.net/lists/listinfo/starpy-users > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Starpy-users mailing list > Sta...@li... > https://lists.sourceforge.net/lists/listinfo/starpy-users -- Russell Bryant Digium, Inc. | Engineering Manager, Asterisk 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA www.digium.com -=- www.asterisk.org |
From: Mike C. F. <mcf...@vr...> - 2011-06-28 13:26:51
|
I don't mind use of github as core repo, I haven't been all that impressed with cohesiveness of projects hosted on it, but I think that's just project management issues, not problems with the resource itself. Godson Gera <god...@gm...> wrote: >I am OK with that. Lets see what Mike says. Also, please make sure >that these new changes are not going smoke up the sourceforge pages, where >it all started. Providing a link to sf pages in docs and other txt files >would be nice. > > >On Tue, Jun 28, 2011 at 3:27 AM, Paul Belanger <pab...@di...>wrote: > >> On 11-06-27 04:42 PM, Russell Bryant wrote: >> > Greetings, >> > >> > I would like to propose some changes to StarPy hosting. >> > >> > We have started making our changes on github. We could merge these >> > changes back into the version on sourceforge, but to be honest, I'd >> > rather just keep it on github. Of course, I would be happy to set up >> > full commit access for those that had it on sourceforge to the repo on >> > github. >> > >> > https://github.com/asterisk-org/starpy >> > >> > We can also start hosting project tarballs on downloads.asterisk.org. >> > >> > This all seems to make sense since it seems like we (Digium) are the >> > only ones actively working on it. What do you think? >> > >> > Thanks, >> > >> +1 >> >> As a follow up, I have both Debian / Ubuntu packaging ready to roll for >> the new tarball. So once we decided how to move forward, I'll be >> pushing them upstream. :) >> >> -- >> Paul Belanger >> Digium, Inc. | Software Developer >> twitter: pabelanger | IRC: pabelanger (Freenode) >> Check us out at: http://digium.com & http://asterisk.org >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Starpy-users mailing list >> Sta...@li... >> https://lists.sourceforge.net/lists/listinfo/starpy-users >> > > > >-- >Thanks & Regards, >Godson Gera > >------------------------------------------------------------------------------ >All of the data generated in your IT infrastructure is seriously valuable. >Why? It contains a definitive record of application performance, security >threats, fraudulent activity, and more. Splunk takes this data and makes >sense of it. IT sense. And common sense. >http://p.sf.net/sfu/splunk-d2d-c2 >_______________________________________________ >Starpy-users mailing list >Sta...@li... >https://lists.sourceforge.net/lists/listinfo/starpy-users |
From: Godson G. <god...@gm...> - 2011-06-28 06:59:15
|
I am OK with that. Lets see what Mike says. Also, please make sure that these new changes are not going smoke up the sourceforge pages, where it all started. Providing a link to sf pages in docs and other txt files would be nice. On Tue, Jun 28, 2011 at 3:27 AM, Paul Belanger <pab...@di...>wrote: > On 11-06-27 04:42 PM, Russell Bryant wrote: > > Greetings, > > > > I would like to propose some changes to StarPy hosting. > > > > We have started making our changes on github. We could merge these > > changes back into the version on sourceforge, but to be honest, I'd > > rather just keep it on github. Of course, I would be happy to set up > > full commit access for those that had it on sourceforge to the repo on > > github. > > > > https://github.com/asterisk-org/starpy > > > > We can also start hosting project tarballs on downloads.asterisk.org. > > > > This all seems to make sense since it seems like we (Digium) are the > > only ones actively working on it. What do you think? > > > > Thanks, > > > +1 > > As a follow up, I have both Debian / Ubuntu packaging ready to roll for > the new tarball. So once we decided how to move forward, I'll be > pushing them upstream. :) > > -- > Paul Belanger > Digium, Inc. | Software Developer > twitter: pabelanger | IRC: pabelanger (Freenode) > Check us out at: http://digium.com & http://asterisk.org > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Starpy-users mailing list > Sta...@li... > https://lists.sourceforge.net/lists/listinfo/starpy-users > -- Thanks & Regards, Godson Gera |
From: Paul B. <pab...@di...> - 2011-06-27 21:57:47
|
On 11-06-27 04:42 PM, Russell Bryant wrote: > Greetings, > > I would like to propose some changes to StarPy hosting. > > We have started making our changes on github. We could merge these > changes back into the version on sourceforge, but to be honest, I'd > rather just keep it on github. Of course, I would be happy to set up > full commit access for those that had it on sourceforge to the repo on > github. > > https://github.com/asterisk-org/starpy > > We can also start hosting project tarballs on downloads.asterisk.org. > > This all seems to make sense since it seems like we (Digium) are the > only ones actively working on it. What do you think? > > Thanks, > +1 As a follow up, I have both Debian / Ubuntu packaging ready to roll for the new tarball. So once we decided how to move forward, I'll be pushing them upstream. :) -- Paul Belanger Digium, Inc. | Software Developer twitter: pabelanger | IRC: pabelanger (Freenode) Check us out at: http://digium.com & http://asterisk.org |
From: Russell B. <ru...@di...> - 2011-06-27 21:19:41
|
Greetings, I would like to propose some changes to StarPy hosting. We have started making our changes on github. We could merge these changes back into the version on sourceforge, but to be honest, I'd rather just keep it on github. Of course, I would be happy to set up full commit access for those that had it on sourceforge to the repo on github. https://github.com/asterisk-org/starpy We can also start hosting project tarballs on downloads.asterisk.org. This all seems to make sense since it seems like we (Digium) are the only ones actively working on it. What do you think? Thanks, -- Russell Bryant Digium, Inc. | Engineering Manager, Asterisk 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA www.digium.com -=- www.asterisk.org |
From: Mike C. F. <mcf...@vr...> - 2010-08-03 15:21:27
|
On 10-07-27 07:37 AM, Russell Bryant wrote: ... >> Greetings, >> >> There have been a few bug fixes put in since the last release was >> made. Can we push out an updated package? I don't mind doing it if >> you'd like me to (and I have the appropriate permissions in >> sourceforge). >> >> Thanks, >> >> Both you (Russel) and Godson should have "release tech" permissions now (Godson has had them for a while), feel free to release when you are in agreement that you should release. Take care, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: Russell B. <ru...@di...> - 2010-07-27 11:37:50
|
There's just a few bug fixes in there for now. You're right that there are probably a number of manager commands not yet supported, but I'm not sure I have time to add them (until I need them). :-) -- Russell Bryant ----- Original Message ----- > Hi Russell, > > Is that purely a bugfix release? Any thoughts on adding new manager > commands to manager.py and then releasing it. I am sure many of them > are missing right now. > > > On Mon, Jul 26, 2010 at 9:48 PM, Russell Bryant < ru...@di... > > wrote: > > > Greetings, > > There have been a few bug fixes put in since the last release was > made. Can we push out an updated package? I don't mind doing it if > you'd like me to (and I have the appropriate permissions in > sourceforge). > > Thanks, > > -- > Russell Bryant > Digium, Inc. | Engineering Manager, Open Source Software > 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA > jabber: rb...@di... -=- skype: russell-bryant > www.digium.com -=- www.asterisk.org -=- blogs.asterisk.org > > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://ad.doubleclick.net/clk;226879339;13503038;l ? > http://clk.atdmt.com/CRS/go/247765532/direct/01/ > _______________________________________________ > Starpy-users mailing list > Sta...@li... > https://lists.sourceforge.net/lists/listinfo/starpy-users > > > > -- > Thanks & Regards, > Godson Gera > http://blog.godson.in |
From: Godson G. <god...@gm...> - 2010-07-27 04:18:06
|
Hi Russell, Is that purely a bugfix release? Any thoughts on adding new manager commands to manager.py and then releasing it. I am sure many of them are missing right now. On Mon, Jul 26, 2010 at 9:48 PM, Russell Bryant <ru...@di...> wrote: > Greetings, > > There have been a few bug fixes put in since the last release was made. > Can we push out an updated package? I don't mind doing it if you'd like me > to (and I have the appropriate permissions in sourceforge). > > Thanks, > > -- > Russell Bryant > Digium, Inc. | Engineering Manager, Open Source Software > 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA > jabber: rb...@di... -=- skype: russell-bryant > www.digium.com -=- www.asterisk.org -=- blogs.asterisk.org > > > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://ad.doubleclick.net/clk;226879339;13503038;l? > http://clk.atdmt.com/CRS/go/247765532/direct/01/ > _______________________________________________ > Starpy-users mailing list > Sta...@li... > https://lists.sourceforge.net/lists/listinfo/starpy-users > -- Thanks & Regards, Godson Gera http://blog.godson.in |
From: Russell B. <ru...@di...> - 2010-07-26 16:47:17
|
Greetings, There have been a few bug fixes put in since the last release was made. Can we push out an updated package? I don't mind doing it if you'd like me to (and I have the appropriate permissions in sourceforge). Thanks, -- Russell Bryant Digium, Inc. | Engineering Manager, Open Source Software 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA jabber: rb...@di... -=- skype: russell-bryant www.digium.com -=- www.asterisk.org -=- blogs.asterisk.org |
From: mahdieh s. <mah...@gm...> - 2010-06-30 08:44:30
|
Hi every body, I want to use fastAGI for our application.I created IVR for fetching list of information from DB and some play sound. I can fetch result when menu finished correct or has failure but my problem is how can I run some code before complete this menu .for example when user press key 1 play sound for enter code that smaller than 20(or run query that exist this result inside menu and continue this menu ) .so I found "runnerClass" that I think used for this purpose .but I can not used it and there is no documentation for using this feature. Please help me, Regards, |
From: Godson G. <god...@gm...> - 2010-04-03 06:59:28
|
Hi Russell, Good to know the news. Welcome to StarPy. On Thu, Apr 1, 2010 at 10:58 PM, Russell Bryant <ru...@di...> wrote: > Greetings, > > Mike Fletcher just added me as a project member on sourceforge, but I > wanted to introduce myself before I start making any changes to the code. > > I have been involved with core Asterisk development since 2004. When > Asterisk 1.0 was released in the Fall of 2004, I became the first > release maintainer for Asterisk. I have continued to be involved in > Asterisk from project management to core architectural design and > development since then. I'm currently the engineering manager for the > team at Digium that works full time on Asterisk. > > My interest in starpy is that I have recently started using it in some > tools doing automated testing of Asterisk functionality. I'd like to > contribute any fixes or improvements that I (or my team) make back > upstream. > > Thanks, > > -- > Russell Bryant > Digium, Inc. | Engineering Manager, Open Source Software > 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA > jabber: rb...@di... -=- skype: russell-bryant > www.digium.com -=- www.asterisk.org -=- blogs.asterisk.org > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Starpy-users mailing list > Sta...@li... > https://lists.sourceforge.net/lists/listinfo/starpy-users > -- Thanks & Regards, Godson Gera |
From: Russell B. <ru...@di...> - 2010-04-01 17:28:08
|
Greetings, Mike Fletcher just added me as a project member on sourceforge, but I wanted to introduce myself before I start making any changes to the code. I have been involved with core Asterisk development since 2004. When Asterisk 1.0 was released in the Fall of 2004, I became the first release maintainer for Asterisk. I have continued to be involved in Asterisk from project management to core architectural design and development since then. I'm currently the engineering manager for the team at Digium that works full time on Asterisk. My interest in starpy is that I have recently started using it in some tools doing automated testing of Asterisk functionality. I'd like to contribute any fixes or improvements that I (or my team) make back upstream. Thanks, -- Russell Bryant Digium, Inc. | Engineering Manager, Open Source Software 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA jabber: rb...@di... -=- skype: russell-bryant www.digium.com -=- www.asterisk.org -=- blogs.asterisk.org |
From: Godson G. <god...@gm...> - 2008-10-16 10:44:24
|
Hi All, I am happy to announce new release of starpy (Asterisk protocols for Twisted http://starpy.sf.net ) on behalf of starpy team. starpy-1.0.0a13 can be downloaded from here https://sourceforge.net/project/showfiles.php?group_id=164040 This release contains addition of many manager commands to manager API. Following is a list of newly added commands. 1. agentLogoff 2. dbGet 3. dbPut 4. extensionState 5. getConfig 6. meetmeMute 7. meetmeUnmute 8. park 9. pauseMonitor 10. playDTMF 11. queuePause 12. sipShowPeers 13. unpauseMonitor 14. updateConfig (read AMI documentation before using this ) 15. userEvent 16. waitEvent 17. zapDNDoff 18. zapDNDon 19. zapDialOffhook 20. zapHangup 21. zapRestart 22. zapShowChannels 23. zapTransfer - Those are all the new manager Actions that were added. Queues action is there but it won't work cause AMI returns improperly formatted lines, same case with IAXPeers action, as AgentCallbackLogin is deprecated and is not functioning properly it was not included. - Bug fix in queueStatus manager API, in collectDeferred argument 'QueueStatusEnd' is changed to 'QueueStatusComplete'. Now the deferred fires properly. - Bug fix in fastagi playback (not a standard AGI command, was created by Mike as a workaround for buggy streamFile command back in Asterisk 1.2 days. Now streamFile is working properly so you might not be using this playback ). Those are all the changes that are involved in this release if you find any bugs or hope for any new features let me know. Have fun with starpy, Godson Gera |
From: Mike C. F. <mcf...@vr...> - 2008-06-11 02:32:48
|
Hi all, I had a little contract to do some StarPy work last week so I'm thinking I can afford to spend some time on the project this week for my Open Source day. I'm thinking of doing a small demonstration application, a "Celestial Jukebox" of sorts, basically an application that lets you dial in, select a piece of media (songs, audio-books, Festival-read texts, whatever) and have the content play over your handset, with bookmarks, skipping and the like so that you can listen to a few dozen (or hundreds) of things, picking up each one where you left off, dog-earing "pages" when something interesting happens, that kind of thing. The use-case being as a library interface for the CNIB or the like so that people could use regular phones to gain access to a reasonably usable media library. I've also got a request in the queue to update the AMI to support new features in Asterisk 1.4. Somewhere in there I should release PyOpenGL's next beta too :) ... Which was all a preamble to ask if there are other things users of StarPy feel would be useful, given that I have about 5 hours to dedicate to the project on Friday. Have fun, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: Andrea S. <a.s...@ca...> - 2008-02-21 12:47:19
|
Hello everybody, I'm trying to write a simple FastAGI that takes three variables from the dialplan, executes a DB query and then sets N variables in the dialplan, according to the results of the query. It was quite trivial to write a normal AGI that does this, without using FastAGI, but being not a Twisted programmer I don't know how to do this using StarPy. I understand that getVariable and setVariable return deferreds, and that I should add callbacks to the deferreds. But.. It simply doesn't work for me. Can anyone post a small example that will enlighten me? :) Thanks in advance, -- [ Andrea Spadaccini - aka lupino3 - GLUGCT - Catania - IM: lu...@ja... ] [ GPG ID: 5D41ABF0 - key on keyservers - Debian GNU / Linux - Kernel 2.6.18.4 ] [ Linux Registered User 313388 - a(dot)spadaccini(at)catania(dot)linux(dot)it ] [ The more space you have, the more junk you'll have. ] |
From: Mike C. F. <mcf...@vr...> - 2007-11-27 18:07:36
|
Josef Novak wrote: > In response to my own thread, I've put together a new script which > does almost everything I need, except for properly handling multiple > calls. I am almost certainly missing the boat with twisted/starpy > here, because I cannot seem for the life of me to write a non-trivial > location which will allow my box to process more than one incoming > call at a time. As soon as I stick a time.sleep( 15 ) command in the > script, the next call cant get through until the sleep finishes which > is highly undesirable. > > Any suggestions for turning the attached example into something which > will properly process multiple simultaneous calls without removing the > sleep command would be deeply appreciated. > Joe, you *cannot* *ever* use sleep in a Twisted mainloop. Twisted is an asynchronous networking library. If you sleep the entire process will stop. Use the reactor.callLater( duration, func, *args, **named ) function to schedule something to run at a later time. In generally you cannot "block" in the mainloop at all, if you do everything goes to heck. If you *really* need something blocking to occur you need to use the Twisted threading API. You can schedule post-call events to occur just by doing a callLater operation as well, btw. Sorry, haven't time to rebuild my asterisk server and test the code, but if that's the approach you're taking I can tell you it just won't work and you need to use "the Twisted way" for it. Good luck, Mike > 2007/11/25, Josef Novak <jos...@gm...>: > >> Hi, >> This is in response to a rather older thread, regarding handling >> multiple calls. The script listed by the original poster works fine >> for me, I am able to handle multiple calls with the same fastagi >> instance. However, in the response to the poster's question: >> >>> 1. Is this the StarPythonic way to do this? Should I instead be >>> >> subclassing FastAgiFactory? >> >> Mike Fletcher wrote: >> >>> The normal pattern in StarPy would be to create a core handler that >>> >> dispatches per-connection objects to handle a given call. See the >> examples/calldurationcallback.py module for an example... >> >> However, I was unable to get the calldurationcallback.py example to >> handle multiple calls. If I try to call in again while an earlier >> call is still going on, the second call is forced to wait on the line >> until the second one ends. This is obviously not very useful >> behavior, so I wonder what it is that I am doing wrong. Is there a >> particular way I should be starting up calldurationcallback.py, with >> twistd and a specific set of arguments for example? Thus far the only >> script I've been able to achieve this essential functionality with is >> the below original posting for this thread, any specific advice in the >> right direction regarding how to do this the starpy way, or even just >> how to get the calldurationcallback.py to a point where it can field >> multiple calls would be a great help. >> >> -joe >> >> >>> I am just getting going with StarPy and AGI (aka newbie) but I am dCap >>> certified so I have a good understanding of asterisk in general. In my first >>> attempt to understand StarPy I ran into an issue with handling more than one >>> call into the same fastagi instance. It turns out this was pretty >>> >> easy to figure >> >>> out, but I thought it would be good to share. I started with the following >>> fastagi script: ... >>> >> # START CODE >> #!/usr/bin/env python >> >> from twisted.internet import reactor, defer >> from starpy import fastagi, error >> >> import logging >> log = logging.getLogger( 'testagi' ) >> log.setLevel( logging.DEBUG ) >> >> class TestAgi( object ): >> >> def __call__( self , agi ): >> >> self.agi = agi >> >> log.debug("self.agi is now <%s>" % self.agi.variables['agi_uniqueid']) >> >> return self.agi.wait( 15 ).addCallback( self.waited1 ) >> >> def waited1( self, results ): >> >> log.debug("self.agi in waited1 now <%s>" % \ >> self.agi.variables['agi_uniqueid']) >> >> return self.agi.hangup( ) >> >> if __name__ == "__main__": >> logging.basicConfig() >> fastagi.log.setLevel( logging.DEBUG ) >> f = fastagi.FastAGIFactory(TestAgi( )) >> reactor.listenTCP(4573, f, 50, '127.0.0.1') >> reactor.run() >> >> # END CODE >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Starpy-users mailing list >> Sta...@li... >> https://lists.sourceforge.net/lists/listinfo/starpy-users -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: Josef N. <jos...@gm...> - 2007-11-27 16:07:09
|
In response to my own thread, I've put together a new script which does almost everything I need, except for properly handling multiple calls. I am almost certainly missing the boat with twisted/starpy here, because I cannot seem for the life of me to write a non-trivial location which will allow my box to process more than one incoming call at a time. As soon as I stick a time.sleep( 15 ) command in the script, the next call cant get through until the sleep finishes which is highly undesirable. Any suggestions for turning the attached example into something which will properly process multiple simultaneous calls without removing the sleep command would be deeply appreciated. -joe 2007/11/25, Josef Novak <jos...@gm...>: > Hi, > This is in response to a rather older thread, regarding handling > multiple calls. The script listed by the original poster works fine > for me, I am able to handle multiple calls with the same fastagi > instance. However, in the response to the poster's question: > >1. Is this the StarPythonic way to do this? Should I instead be > subclassing FastAgiFactory? > > Mike Fletcher wrote: > >The normal pattern in StarPy would be to create a core handler that > dispatches per-connection objects to handle a given call. See the > examples/calldurationcallback.py module for an example... > > However, I was unable to get the calldurationcallback.py example to > handle multiple calls. If I try to call in again while an earlier > call is still going on, the second call is forced to wait on the line > until the second one ends. This is obviously not very useful > behavior, so I wonder what it is that I am doing wrong. Is there a > particular way I should be starting up calldurationcallback.py, with > twistd and a specific set of arguments for example? Thus far the only > script I've been able to achieve this essential functionality with is > the below original posting for this thread, any specific advice in the > right direction regarding how to do this the starpy way, or even just > how to get the calldurationcallback.py to a point where it can field > multiple calls would be a great help. > > -joe > > >I am just getting going with StarPy and AGI (aka newbie) but I am dCap > >certified so I have a good understanding of asterisk in general. In my first > >attempt to understand StarPy I ran into an issue with handling more than one > >call into the same fastagi instance. It turns out this was pretty > easy to figure > >out, but I thought it would be good to share. I started with the following > >fastagi script: ... > > # START CODE > #!/usr/bin/env python > > from twisted.internet import reactor, defer > from starpy import fastagi, error > > import logging > log = logging.getLogger( 'testagi' ) > log.setLevel( logging.DEBUG ) > > class TestAgi( object ): > > def __call__( self , agi ): > > self.agi = agi > > log.debug("self.agi is now <%s>" % self.agi.variables['agi_uniqueid']) > > return self.agi.wait( 15 ).addCallback( self.waited1 ) > > def waited1( self, results ): > > log.debug("self.agi in waited1 now <%s>" % \ > self.agi.variables['agi_uniqueid']) > > return self.agi.hangup( ) > > if __name__ == "__main__": > logging.basicConfig() > fastagi.log.setLevel( logging.DEBUG ) > f = fastagi.FastAGIFactory(TestAgi( )) > reactor.listenTCP(4573, f, 50, '127.0.0.1') > reactor.run() > > # END CODE > |
From: Andrea S. <a.s...@me...> - 2007-11-26 11:52:48
|
Hello everybody, I know this is slightly OT, but I suppose that it's an interesting matter: 1) Do you use a MAPI Proxy? 2) If so, which proxy do you use? I'm currently using astmanproxy, but sometimes it behaves strangely. Would it be a bad idea to write a MAPI proxy in Python using Twisted and some of the code of Starpy (if needed)? Thanks in advance for you answers, -- Dr. Andrea Spadaccini Multimedia Technologies Institute - MTI S.r.l. Web: www.x-voice.it - Tel: +39 (0) 95 7224945 |
From: Josef N. <jos...@gm...> - 2007-11-25 14:43:14
|
Hi, This is in response to a rather older thread, regarding handling multiple calls. The script listed by the original poster works fine for me, I am able to handle multiple calls with the same fastagi instance. However, in the response to the poster's question: >1. Is this the StarPythonic way to do this? Should I instead be subclassing FastAgiFactory? Mike Fletcher wrote: >The normal pattern in StarPy would be to create a core handler that dispatches per-connection objects to handle a given call. See the examples/calldurationcallback.py module for an example... However, I was unable to get the calldurationcallback.py example to handle multiple calls. If I try to call in again while an earlier call is still going on, the second call is forced to wait on the line until the second one ends. This is obviously not very useful behavior, so I wonder what it is that I am doing wrong. Is there a particular way I should be starting up calldurationcallback.py, with twistd and a specific set of arguments for example? Thus far the only script I've been able to achieve this essential functionality with is the below original posting for this thread, any specific advice in the right direction regarding how to do this the starpy way, or even just how to get the calldurationcallback.py to a point where it can field multiple calls would be a great help. -joe >I am just getting going with StarPy and AGI (aka newbie) but I am dCap >certified so I have a good understanding of asterisk in general. In my first >attempt to understand StarPy I ran into an issue with handling more than one >call into the same fastagi instance. It turns out this was pretty easy to figure >out, but I thought it would be good to share. I started with the following >fastagi script: ... # START CODE #!/usr/bin/env python from twisted.internet import reactor, defer from starpy import fastagi, error import logging log = logging.getLogger( 'testagi' ) log.setLevel( logging.DEBUG ) class TestAgi( object ): def __call__( self , agi ): self.agi = agi log.debug("self.agi is now <%s>" % self.agi.variables['agi_uniqueid']) return self.agi.wait( 15 ).addCallback( self.waited1 ) def waited1( self, results ): log.debug("self.agi in waited1 now <%s>" % \ self.agi.variables['agi_uniqueid']) return self.agi.hangup( ) if __name__ == "__main__": logging.basicConfig() fastagi.log.setLevel( logging.DEBUG ) f = fastagi.FastAGIFactory(TestAgi( )) reactor.listenTCP(4573, f, 50, '127.0.0.1') reactor.run() # END CODE |
From: Andrea S. <a.s...@me...> - 2007-11-16 15:26:21
|
Ciao Bram, > Andrea, > > I just noticed that you the suggestion I offered may be of no use. You may in > fact already be authenticating as per this line in your message: > > DEBUG:AMI:Incoming Message: {'message': 'Authentication > accepted','response':'Success'} > > I also noticed that you seem to be using an AMI proxy ('Asterisk Call Manager > Proxy/1.21') which could be the issue as well. On this I am not sure since I > do not use a manger proxy that way. If I need secure access to the manager, I > use ssh tunnels to open manager connections to the asterisk server. This > could also be a permissions issue, so double check > your /etc/asterisk/manager.conf (maybe your proxy configuration as well) for > the correct permission settings. Thanks for your answer. I've always been using a proxy for manager connections, because I often do lots of queries/sec and a proxy seems to improve performances. With some debugging I found that the onConnect method is never executed, but this information is of no value for me, as I'm not familiar with the Twisted approach. I always use the proxy exactly in the same way of the traditional MAPI Interface, I don't think that it should be configured in other ways, as my other applications work correctly. The manager user that I specified in starpy.conf, as in your former suggestion, has all the needed privileges. Please help me, as I'd really like to use starpy instead of traditional sockets ;) Thanks in advance, -- Dr. Andrea Spadaccini Multimedia Technologies Institute - MTI S.r.l. Web: www.x-voice.it - Tel: +39 (0) 95 7224945 |
From: Bram S. <br...@co...> - 2007-11-16 15:14:05
|
----- "Bram Swenson" <br...@co...> wrote: > ----- "Andrea Spadaccini" <a.s...@me...> wrote: > > Hello everybody, > > I've just found the starpy package, and I find it very interesting > > but.. I > > can't get the amicommand.py example to work. > > > > I like the Python language, though I've never developed large apps > > with it, and > > I never used twisted, but I've read the first pages of the manual > > before > > attempting to work with starpy. > > > > Now, before the line > > > > amiDF = APPLICATION.amiSpecifier.login().addCallback(onConnect) > > > > I added the following lines: > > > > APPLICATION.amiSpecifier.username = 'myuser' > > APPLICATION.amiSpecifier.password = 'mypass' > > APPLICATION.amiSpecifier.secret = 'mypass' > > APPLICATION.amiSpecifier.server = 'myip' > > APPLICATION.amiSpecifier.port = myport > > > > And this is the output of amicommand.py: > > > > andrea@myhostname:~/Desktop/starpy-1.0.0a11/doc/pydoc$ > > python ../../examples/amicommand.py > > > > INFO:AMI:Connection Made > > DEBUG:AMI:MSG OUT: {'action': 'login', 'username': 'myuser', > > 'secret': > > 'mypass', 'actionid': 'myhostname-137734668-1'} > > DEBUG:AMI:Line In: 'Asterisk Call Manager Proxy/1.21' > DEBUG:AMI:Line > > In: > > 'Response: Success' DEBUG:AMI:Line In: 'Message: Authentication > > accepted' > > DEBUG:AMI:Line In: '' > > DEBUG:AMI:Dispatch Incoming > > DEBUG:AMI:Incoming Message: {'message': 'Authentication accepted', > > 'response': > > 'Success'} > > > > And then the execution stops, with the program still executing but > > doing > > nothing. > > > > The example I'm running can be found at the following URL: > > > https://svn.nexlab.it/medianix/packages/main/starpy/trunk/examples/amicommand.py > > > > Can anybody please help me? I didn't find much docs around.. > > Thanks in advance, > > > > -- > > Dr. Andrea Spadaccini > > Multimedia Technologies Institute - MTI S.r.l. > > Web: www.x-voice.it - Tel: +39 (0) 95 7224945 > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a > > browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Starpy-users mailing list > > Sta...@li... > > https://lists.sourceforge.net/lists/listinfo/starpy-users > > Andrea, > > Try moving your AMI configuration info to ~/.starpy.conf with contents > like so as described in the documentation ( > http://starpy.sourceforge.net/ ): > > [AMI] > username=AMIUSERNAME > secret=AMIPASSWORD > server=127.0.0.1 > port=5038 > > After creating that file in the home directory for the user you are > running amicommand.py script as try to run it again. > > The last few lines of the output should be something like this: > > DEBUG:AMI:MSG OUT: {'action': 'logoff', 'actionid': > 'localhost-47177394199440-3'} > DEBUG:AMI:Line In: 'Response: Goodbye' > DEBUG:AMI:Line In: 'ActionID: localhost-47177394199440-3' > DEBUG:AMI:Line In: 'Message: Thanks for all the fish.' > DEBUG:AMI:Line In: '' > DEBUG:AMI:Dispatch Incoming > DEBUG:AMI:Incoming Message: {'message': 'Thanks for all the fish.', > 'response': 'Goodbye', 'actionid': 'localhost-47177394199440-3'} > > Let us know how it goes. > Hope this helps, > Bram. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Starpy-users mailing list > Sta...@li... > https://lists.sourceforge.net/lists/listinfo/starpy-users Andrea, I just noticed that you the suggestion I offered may be of no use. You may in fact already be authenticating as per this line in your message: DEBUG:AMI:Incoming Message: {'message': 'Authentication accepted','response':'Success'} I also noticed that you seem to be using an AMI proxy ('Asterisk Call Manager Proxy/1.21') which could be the issue as well. On this I am not sure since I do not use a manger proxy that way. If I need secure access to the manager, I use ssh tunnels to open manager connections to the asterisk server. This could also be a permissions issue, so double check your /etc/asterisk/manager.conf (maybe your proxy configuration as well) for the correct permission settings. Again I hope this helps, Bram. |
From: Bram S. <br...@co...> - 2007-11-16 14:50:35
|
----- "Andrea Spadaccini" <a.s...@me...> wrote: > Hello everybody, > I've just found the starpy package, and I find it very interesting > but.. I > can't get the amicommand.py example to work. > > I like the Python language, though I've never developed large apps > with it, and > I never used twisted, but I've read the first pages of the manual > before > attempting to work with starpy. > > Now, before the line > > amiDF = APPLICATION.amiSpecifier.login().addCallback(onConnect) > > I added the following lines: > > APPLICATION.amiSpecifier.username = 'myuser' > APPLICATION.amiSpecifier.password = 'mypass' > APPLICATION.amiSpecifier.secret = 'mypass' > APPLICATION.amiSpecifier.server = 'myip' > APPLICATION.amiSpecifier.port = myport > > And this is the output of amicommand.py: > > andrea@myhostname:~/Desktop/starpy-1.0.0a11/doc/pydoc$ > python ../../examples/amicommand.py > > INFO:AMI:Connection Made > DEBUG:AMI:MSG OUT: {'action': 'login', 'username': 'myuser', > 'secret': > 'mypass', 'actionid': 'myhostname-137734668-1'} > DEBUG:AMI:Line In: 'Asterisk Call Manager Proxy/1.21' DEBUG:AMI:Line > In: > 'Response: Success' DEBUG:AMI:Line In: 'Message: Authentication > accepted' > DEBUG:AMI:Line In: '' > DEBUG:AMI:Dispatch Incoming > DEBUG:AMI:Incoming Message: {'message': 'Authentication accepted', > 'response': > 'Success'} > > And then the execution stops, with the program still executing but > doing > nothing. > > The example I'm running can be found at the following URL: > https://svn.nexlab.it/medianix/packages/main/starpy/trunk/examples/amicommand.py > > Can anybody please help me? I didn't find much docs around.. > Thanks in advance, > > -- > Dr. Andrea Spadaccini > Multimedia Technologies Institute - MTI S.r.l. > Web: www.x-voice.it - Tel: +39 (0) 95 7224945 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Starpy-users mailing list > Sta...@li... > https://lists.sourceforge.net/lists/listinfo/starpy-users Andrea, Try moving your AMI configuration info to ~/.starpy.conf with contents like so as described in the documentation ( http://starpy.sourceforge.net/ ): [AMI] username=AMIUSERNAME secret=AMIPASSWORD server=127.0.0.1 port=5038 After creating that file in the home directory for the user you are running amicommand.py script as try to run it again. The last few lines of the output should be something like this: DEBUG:AMI:MSG OUT: {'action': 'logoff', 'actionid': 'localhost-47177394199440-3'} DEBUG:AMI:Line In: 'Response: Goodbye' DEBUG:AMI:Line In: 'ActionID: localhost-47177394199440-3' DEBUG:AMI:Line In: 'Message: Thanks for all the fish.' DEBUG:AMI:Line In: '' DEBUG:AMI:Dispatch Incoming DEBUG:AMI:Incoming Message: {'message': 'Thanks for all the fish.', 'response': 'Goodbye', 'actionid': 'localhost-47177394199440-3'} Let us know how it goes. Hope this helps, Bram. |
From: Andrea S. <a.s...@me...> - 2007-11-15 14:33:43
|
Hello everybody, I've just found the starpy package, and I find it very interesting but.. I can't get the amicommand.py example to work. I like the Python language, though I've never developed large apps with it, and I never used twisted, but I've read the first pages of the manual before attempting to work with starpy. Now, before the line amiDF = APPLICATION.amiSpecifier.login().addCallback(onConnect) I added the following lines: APPLICATION.amiSpecifier.username = 'myuser' APPLICATION.amiSpecifier.password = 'mypass' APPLICATION.amiSpecifier.secret = 'mypass' APPLICATION.amiSpecifier.server = 'myip' APPLICATION.amiSpecifier.port = myport And this is the output of amicommand.py: andrea@myhostname:~/Desktop/starpy-1.0.0a11/doc/pydoc$ python ../../examples/amicommand.py INFO:AMI:Connection Made DEBUG:AMI:MSG OUT: {'action': 'login', 'username': 'myuser', 'secret': 'mypass', 'actionid': 'myhostname-137734668-1'} DEBUG:AMI:Line In: 'Asterisk Call Manager Proxy/1.21' DEBUG:AMI:Line In: 'Response: Success' DEBUG:AMI:Line In: 'Message: Authentication accepted' DEBUG:AMI:Line In: '' DEBUG:AMI:Dispatch Incoming DEBUG:AMI:Incoming Message: {'message': 'Authentication accepted', 'response': 'Success'} And then the execution stops, with the program still executing but doing nothing. The example I'm running can be found at the following URL: https://svn.nexlab.it/medianix/packages/main/starpy/trunk/examples/amicommand.py Can anybody please help me? I didn't find much docs around.. Thanks in advance, -- Dr. Andrea Spadaccini Multimedia Technologies Institute - MTI S.r.l. Web: www.x-voice.it - Tel: +39 (0) 95 7224945 |
From: Bram S. <br...@co...> - 2007-11-08 07:49:44
|
Hello all, The way that I start my starpy projects is via twistd which is part of twisted. It requires using a config file (aka tap file) and a very simple init script. Here are some docs on twistd http://twistedmatrix.com/projects/core/documentation/howto/basics.html My app is QcardAgiFactory in this example which is also attached, but I am not sure about how SF is on attachments. Also I run debian so there is also an example init script: # projectname.tap file (which is a python file) from starpy import fastagi from twisted.internet import reactor from twisted.application import internet, service from turboqcard.agi import QcardAgiFactory port = 4573 factory = fastagi.FastAGIFactory( QcardAgiFactory() ) application = service.Application('QcardAgi') qcardAgiService = internet.TCPServer(port, factory) qcardAgiService.setServiceParent(application) # projectname init script #! /bin/sh ### BEGIN INIT INFO # Provides: skeleton # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Example initscript # Description: This file should be used to construct scripts to be # placed in /etc/init.d. ### END INIT INFO # Author: Foo Bar <fo...@ba...> # # Please remove the "Author" lines above and replace them # with your own name if you copy and modify this script. # Do NOT "set -e" # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Qcard AGI Service" NAME=twistd DAEMON=/usr/bin/twistd PIDFILE=/var/run/$NAME.pid DAEMON_ARGS="--log /var/log/turboqcard.log --pidfile $PIDFILE -d /opt/TurboQcard/ --prefix turboqcard -y /opt/TurboQcard/twistd.tap" SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions # # Function that starts the daemon/service # do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ $DAEMON_ARGS \ || return 2 # Add code here, if necessary, that waits for the process to be ready # to handle requests from services started subsequently which depend # on this one. As a last resort, sleep for some time. } # # Function that stops the daemon/service # do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks # and if the daemon is only ever run from this initscript. # If the above conditions are not satisfied then add some other code # that waits for the process to drop all resources that could be # needed by services started subsequently. A last resort is to # sleep for some time. start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON [ "$?" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. #rm -f $PIDFILE return "$RETVAL" } # # Function that sends a SIGHUP to the daemon/service # do_reload() { # # If the daemon can reload its configuration without # restarting (for example, when it is sent a SIGHUP), # then implement that here. # start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME return 0 } case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; #reload|force-reload) # # If do_reload() is not implemented then leave this commented out # and leave 'force-reload' as an alias for 'restart'. # #log_daemon_msg "Reloading $DESC" "$NAME" #do_reload #log_end_msg $? #;; restart|force-reload) # # If the "reload" option is implemented then remove the # 'force-reload' alias # log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 exit 3 ;; esac : Thanks, Bram. |