From azinman at media.mit.edu Fri Jun 2 01:37:40 2006 From: azinman at media.mit.edu (Aaron Zinman) Date: Thu, 1 Jun 2006 19:37:40 -0400 Subject: [Shtoom] build folder Message-ID: <9DD0C76C-1618-4F54-8A38-C7EB669EDF05@media.mit.edu> sorry I accidently attached my build folder in that tar... just delete it and compile yourself. aaron From azinman at media.mit.edu Sat Jun 3 22:34:22 2006 From: azinman at media.mit.edu (Aaron Zinman) Date: Sat, 3 Jun 2006 16:34:22 -0400 Subject: [Shtoom] bug fix for non-20ms codecs Message-ID: <8AA85227-FB9F-4D0C-9C41-BABEB95E15F0@media.mit.edu> diff for shtoom/doug/leg.py 60,61c60 < if sample: < self._voiceapp.va_outgoingRTP(sample, self._cookie) --- > self._voiceapp.va_outgoingRTP(sample, self._cookie) This probably should be there regardless, but in supporting 30ms based iLBC I found this necessary to avoid chopping associated with shtoom's 20ms timer. aaron From azinman at media.mit.edu Sun Jun 4 23:35:34 2006 From: azinman at media.mit.edu (Aaron Zinman) Date: Sun, 4 Jun 2006 17:35:34 -0400 Subject: [Shtoom] hangup patch Message-ID: I don't know the experience of others, but I have found with 2 different sip providers putting the local tag on the from field in a BYE sent from Shtoom produces an unknown dialog error. I have a hacky patch which gets rid of it there for file shtoom/sip.py: 739c739,741 < bye.addHeader('from', str(self.dialog.getLocalTag())) --- > # get rid of ;tag=xxxx bit to satisfy sipphone (and others?) > localTag = str(self.dialog.getLocalTag()) > bye.addHeader('from', localTag[:localTag.find(';')]) This seems to make the other side happy (sipphone/asterisk & another provider w/a proprietary stack). --Aaron From mflacy1 at comcast.net Tue Jun 6 04:06:46 2006 From: mflacy1 at comcast.net (Mark Flacy) Date: Mon, 05 Jun 2006 21:06:46 -0500 Subject: [Shtoom] Subversion problems Message-ID: <1149559606l.3191l.0l@flacy> Greetings. Any idea what causes this error? flacy at flacy:/source/shtoom$ svn checkout svn://divmod.org/svn/Shtoom/trunk/shtoom svn: Berkeley DB error for filesystem /svn/Shtoom/db while opening environment: DB_VERSION_MISMATCH: Database environment version mismatch svn: bdb: Program version 4.3 doesn't match environment version It's sent to me by the server. From jamesj at bebr.ufl.edu Wed Jun 7 18:11:33 2006 From: jamesj at bebr.ufl.edu (James 'J.C.' Jones) Date: Wed, 07 Jun 2006 12:11:33 -0400 Subject: [Shtoom] Subversion problems Message-ID: <4486FAB5.20701@bebr.ufl.edu> This Subversion problem is inconvenient for me, too, since it appears that Shtoom is precisely the program I want to play with as a soft-phone. Are there any relatively-recent development snapshots available until Subversion comes back to life? -- James 'J.C.' Jones Bureau of Economic and Business Research From mflacy1 at comcast.net Fri Jun 9 18:04:19 2006 From: mflacy1 at comcast.net (Mark Flacy) Date: Fri, 09 Jun 2006 11:04:19 -0500 Subject: [Shtoom] Subversion access fixed Message-ID: <1149869059l.3445l.3l@flacy> I just tried it. Thank you, oh nameless benefactor! From jamesj at bebr.ufl.edu Wed Jun 14 18:34:20 2006 From: jamesj at bebr.ufl.edu (James 'J.C.' Jones) Date: Wed, 14 Jun 2006 12:34:20 -0400 Subject: [Shtoom] Finishing the WxWidgets GUI Message-ID: <44903A8C.6080505@bebr.ufl.edu> I'm quite happy with Shtoom and the Gnome UI in particular, but for my application I need to use the WxWidgets UI, including the DTMF dialpad. The dialpad was never enabled in the WxWidgets UI, so, like any dutiful coder I added the code for it. Unfortunately I've found a bit of a snag: I can't get the current call's cookie. The SVN version of the Wx UI never sets self.cookie from the app.placeCall() call. The normal means for starting a call with Shtoom appears to be something like this: ===---===---===---===---===---===---===---===---===---===---===---=== def doCall(...): ... deferred = self.app.placeCall(uri) deferred.addCallbacks(self.callConnected, self.callFailed ).addErrback(log.err) ===---===---===---===---===---===---===---===---===---===---===---=== (paraphrased from the gnomeui/main.py) So, in wxui/main.py I changed PlaceCall() to the following: ===---===---===---===---===---===---===---===---===---===---===---=== def PlaceCall(self, event): sipURL = self.getCurrentAddress() sipURL = self.addrlookup.lookup(sipURL) if not sipURL.startswith('sip'): dlg = wxMessageDialog(self, '%s %s'%(sipURL, _('is a invalid address. The address must begin with "sip".')), _("Address error"), wxOK) dlg.ShowModal() return # have hang up and call buttons toggle self.updateCallButton(do_call=False) # Make request for the call print "**** Calling app.placeCall on ", sipURL deferred = self.app.placeCall(sipURL) print "**** RESULT: Deferred is ", deferred if deferred is not None: deferred.addCallbacks(self.callStarted, self.callFailed).addErrback(log.err) else: self.callFailed(False, "Twisted did not place the call") ===---===---===---===---===---===---===---===---===---===---===---=== I also added a few debug print statements to sip.py and phone.py in their placeCall() functions. Now, sip.placeCall *does* return a deferred object which is intended for asynchronous processing, but I'm pretty sure that phone.placeCall itself is not asynchronous. So imagine my frustration to see logfiles like this: ===---===---===---===---===---===---===---===---===---===---===---=== 2006-06-14T12:04:02.236290 [-] **** Calling app.placeCall on sip:4321 at pbx 2006-06-14T12:04:02.236735 [-] **** RESULT: Deferred is None 2006-06-14T12:04:02.241966 [-] *** PHONE.PY PLACECALL: Starting for sip:4321 at pbx 2006-06-14T12:04:02.243743 [-] ** SIP.PY PLACECALL: No Failures, returning 2006-06-14T12:04:02.244046 [-] *** PHONE.PY PLACECALL: Returning ===---===---===---===---===---===---===---===---===---===---===---=== So the line deferred = self.app.placeCall(sipURL) immediately sets deferred to None and continues processing to call self.callFailed(). Sometime after that, phone.placeCall() is executed which calls sip.placeCall() which returns a Deferred. Things are happening out of order and I don't know why. Please help me fix this so that I can continue polishing the wxWidgets UI. :) Attached is the full log of one run of shtoomphone.py. System setup is: WxWidgets 2.6.3 Python 2.4.2 Twisted 2.0.1 Shtoom SVN HEAD Gentoo Linux Cheers, -- James 'J.C.' Jones Bureau of Economic and Business Research -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: shtoom-wxui-error-log.txt URL: