From lilmikey at MIT.EDU Fri Jul 1 19:55:06 2005 From: lilmikey at MIT.EDU (Michael A D'ambrosio) Date: Fri, 1 Jul 2005 13:55:06 -0400 Subject: [Shtoom] Shtoom Preferences Message-ID: <1120240506.42c5837a9fca5@webmail.mit.edu> Hello. I have, hopefully, a simple problem for those out there. I am trying to place a call with Shtoom via a python program (much like testcall.py). The problem is that I keep getting authentication failures because my settings aren't read from the .shtoomrc file. I attempted to manually set this preferences via defining a dictionary and calling self.__dict__.update(prefs) from whthin my little hack and that failed to work. If anyone can help me out, I would be highly appreciated. Thanks. Mike From fs at beebits.com Tue Jul 5 09:01:00 2005 From: fs at beebits.com (Frank Scholz) Date: Tue, 05 Jul 2005 09:01:00 +0200 Subject: [Shtoom] shtoom issues with asterisk Message-ID: <42CA302C.6040906@beebits.com> Hi, I have currently a few ideas spinning around my head involving Python/Twisted and VoIP and thought I give shtoom a try to get some things clearer. I made a pretty standard netinstall of Debian sarge and apt-ed asterisk-1.0.7. Got that up and running with dialin and out plus three X-Lite phones working. Now I wanted to connect shtoom to this and checked out the current trunk - shtoominfo below. 1) when calling an extension unavailable I'm getting the voicemail hello audio completly disturbed. Like a cat /dev/urandom > /dev/audio ;-) 2005-07-03T14:58:49.583568 [shtoom.rtp.protocol.RTPProtocol (UDP)] ALSA overrun you get a lot of these if you listen longer --> 1.log 2) when calling an available extension it is ringing there, but we have some authorization problem and an exception. --> 2.log The reason for the authorization I don't understand. Why is there a Reinvitation? 3) when getting called there is an exception: exceptions.AssertionError: close device ALSAAudioDevice open before calling selectDefaultFormat() --> 3.log 4) putting nat=none and stun_policy=never in the [network] context isn't honored. I had to change this in the source. Perhaps I'm missing something, and the audio problems are the result of some other (configuration) errors. (With madplay/mpg321/xmms/mplayer audio is working fine.) Any advice is greatly appreciated. Btw. I checked it with python2.4 too, with only minor differences in the results. And, any hint on how to get an rtp audio stream into shtoom as audio in (or directly into *) and audio out via TCP too would be great! ;-) What's the intention behind tcpaudio.py? beeHIM:~# shtoominfo.py Shtoom, version 0.3alpha0 Using python version 2.3.5 Using twisted version 2.0.1 Running on Linux i686 2.6.8-2-386 Available audio interfaces: alsaaudio, ossaudio, fileaudio Available user interfaces: text, tk Available codecs: gsm, mulaw Local IP address: 192.168.213.107 No UPnP-capable device discovered STUN says NAT type: PortRestricted And the mapper we'd use is: clearing all NAT caches beeHIM:~# more .shtoomrc [shtoom] shtoomdir=/usr audio=alsa ui=text [credentials] asterisk=MjAwNAB0ZXN0 [network] localip=192.168.213.107 listenport=0 [identity] username=2004 email_address=fs at home [register] register_uri=sip:192.168.213.107:5060 register_authuser=2004 register_user=2004 register_authpasswd=test here the corresponding entry in sip.conf [2004] type=user regexten=2004 username=2004 secret=test auth=md5 callerid=shtoom <2004> host=dynamic canreinvite=no disallow=all allow=gsm allow=ulaw [logs gzipped due to 40k list restriction] TIA, Frank -------------- next part -------------- A non-text attachment was scrubbed... Name: 1.log.gz Type: application/x-gzip Size: 2491 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 2.log.gz Type: application/x-gzip Size: 3199 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3.log.gz Type: application/x-gzip Size: 2655 bytes Desc: not available URL: From amos at latteier.com Sat Jul 30 21:25:26 2005 From: amos at latteier.com (Amos Latteier) Date: Sat, 30 Jul 2005 12:25:26 -0700 Subject: [Shtoom] Doug play and record at the same time Message-ID: <42EBD426.7070206@latteier.com> Hi, I downloaded Shtoom today. It looks pretty cool! I'm looking for an alternative to writing IVR in asterisk, preferably one that allows me to use Python. Doug looks pretty interesting. So far I've read a bunch of the source and have gotten some of the example scripts working. For my application I want to be able to simultaneously play and record audio on a leg (like karaoke). The mediaPlay(), mediaRecord() and mediaStop() methods on shtoom.doug.leg.Leg seem to designed so that you can't play and record at the same time. So my question is: what's the best way to accomplish this? One solution might be to conference two legs, one that's recording and one that's playing. Otherwise if there is no deep problem with it I'd be happy to try to produce patches to doug to allow simultaneous recording and playing. Thanks for any advice or pointers! -Amos From amos at latteier.com Sun Jul 31 23:27:53 2005 From: amos at latteier.com (Amos Latteier) Date: Sun, 31 Jul 2005 14:27:53 -0700 Subject: [Shtoom] Doug play and record at the same time In-Reply-To: <42EBD426.7070206@latteier.com> References: <42EBD426.7070206@latteier.com> Message-ID: <42ED4259.2080403@latteier.com> Hi, I don't know if anyone is interested or not, but here are some patches that fix doug to allow legs to record and play independently. -Amos P.S. If anyone is working on doug, get it touch with me. I have lots of ideas. For example, yesterday I hacked together an app that allows you to define a voice menu system with an ini file. I'd love to share. -------------- next part -------------- A non-text attachment was scrubbed... Name: leg.patch Type: text/x-patch Size: 2297 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: voiceapp.patch Type: text/x-patch Size: 515 bytes Desc: not available URL: