From GNUtoo at no-log.org Sun May 6 22:04:33 2012 From: GNUtoo at no-log.org (Denis 'GNUtoo' Carikli) Date: Mon, 07 May 2012 00:04:33 +0200 Subject: Sagem OT-290 trace phone / GSMTAP integration In-Reply-To: <20120409131637.GE7895@prithivi.gnumonks.org> References: <20120409131637.GE7895@prithivi.gnumonks.org> Message-ID: <1810513.UXOrZHqVla@gnutoo-desktop> On Monday, April 09, 2012 03:16:37 PM Harald Welte wrote: > Hi all! Hi, > I would be willing to give away one of the two remaining OT-290 (for > free) to anyone who would in return commit to developing a GSMTAP > interface for it. Since no one responded to that message, I guess no one is interested. How important is that work? > The message format on the serial UART between phone and PC is documented > (PDF documentation by Sagem included with the phones). So based on this > documentation and an OT-290 phone, it should be possible to write a > small command-line program that receives the GSM/GPRS messages from the > OT-290 and sends them via GSMTAP into wireshark. > > The result would then be similar to what > http://cgit.osmocom.org/cgit/dct3-gsmtap/ is for DCT-3 phones. How hard is it and how much time is needed is to implement that? is it possible to have a look to the specifications before deciding? Denis. From laforge at gnumonks.org Mon May 7 07:26:13 2012 From: laforge at gnumonks.org (Harald Welte) Date: Mon, 7 May 2012 09:26:13 +0200 Subject: Sagem OT-290 trace phone / GSMTAP integration In-Reply-To: <1810513.UXOrZHqVla@gnutoo-desktop> References: <20120409131637.GE7895@prithivi.gnumonks.org> <1810513.UXOrZHqVla@gnutoo-desktop> Message-ID: <20120507072613.GD32115@prithivi.gnumonks.org> Hi Denis! On Mon, May 07, 2012 at 12:04:33AM +0200, Denis 'GNUtoo' Carikli wrote: > > I would be willing to give away one of the two remaining OT-290 (for > > free) to anyone who would in return commit to developing a GSMTAP > > interface for it. > > Since no one responded to that message, I guess no one is interested. Unfortunately we haven't seen any volunteers, yes. > How important is that work? I think it will be very useful once the work GPRS RLC/MAC/PCU for OpenBTS and/or osmo-bts is proceeding. > How hard is it and how much time is needed is to implement that? is it > possible to have a look to the specifications before deciding? I will contact you in private mail about it. Regards, Harald -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From tyson.key at gmail.com Mon May 7 12:20:31 2012 From: tyson.key at gmail.com (Tyson Key) Date: Mon, 7 May 2012 13:20:31 +0100 Subject: Sagem OT-290 trace phone / GSMTAP integration Message-ID: Hi list, It's my first time posting here, and I've just subscribed - so apologies for totally wrecking archive threading. I've just received a copy of the e-mail regarding the OT-290, thanks to Andrew Back; and I'm wondering it's possible to discuss the feasibility of implementing this functionality with Harald - since it doesn't seem to have generated much interest from others, and I'm "fortunate" enough to live in a small British town without EDGE coverage (which should make it easier to test GPRS-related tracing functionality). Although I'm unfamiliar with how things work in Osmocom, I've previously worked on Wireshark dissectors for USB-encapsulated AT commands, and various NFC/smartcard-related protocols (PN532, FeliCa and MiFare); and am also familiar with Nokia's proprietary ISI baseband protocol, and parts of ETSI's GSM/UMTS specifications - so this sort of stuff isn't totally alien to me. I'm also currently studying Computer Science as an undergraduate (at the University of Bradford) - but I should be able to make time to work on this. Thanks, Tyson. -- Fight Internet Censorship! http://www.eff.org http://vmlemon.wordpress.com | Twitter/FriendFeed/Skype: vmlemon | 00447934365844 -------------- next part -------------- An HTML attachment was scrubbed... URL: From laforge at gnumonks.org Mon May 7 17:55:59 2012 From: laforge at gnumonks.org (Harald Welte) Date: Mon, 7 May 2012 19:55:59 +0200 Subject: Sagem OT-290 trace phone / GSMTAP integration In-Reply-To: References: Message-ID: <20120507175559.GK31273@prithivi.gnumonks.org> Hi Tyson, thanks for your introduction and for your interest in this project. On Mon, May 07, 2012 at 01:20:31PM +0100, Tyson Key wrote: > I've just received a copy of the e-mail regarding the OT-290, thanks to > Andrew Back; and I'm wondering it's possible to discuss the feasibility of > implementing this functionality with Harald - since it doesn't seem to have > generated much interest from others, > and I'm "fortunate" enough to live in a small British town without > EDGE coverage (which should make it easier to test GPRS-related > tracing functionality). Even in areas with EDGE coverage, the network will always fall back to GPRS if you use a GPRS-only phone (like the OT-290). So the fact that your town only has GPRS doesn't make a difference here. > Although I'm unfamiliar with how things work in Osmocom, I've previously > worked on Wireshark dissectors for USB-encapsulated AT commands, and > various NFC/smartcard-related protocols (PN532, FeliCa and MiFare); and am > also familiar with Nokia's proprietary ISI baseband protocol, and parts of > ETSI's GSM/UMTS specifications - so this sort of stuff isn't totally alien > to me. Cool, this sounds like a good set of skills to address this problem. > I'm also currently studying Computer Science as an undergraduate (at the > University of Bradford) - but I should be able to make time to work on this. I guess time is the key aspect here. I would definitely want to make sure that whoever gets a OT-290 for implementing the GSMTAP interfacing code is likely to be able to complete the task before GPRS is phased out ;) So I guess I will leave it up to Denis and you to figure out who might have more of an interest and/or time in this. Regards, Harald -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From GNUtoo at no-log.org Tue May 8 16:27:02 2012 From: GNUtoo at no-log.org (Denis 'GNUtoo' Carikli) Date: Tue, 08 May 2012 18:27:02 +0200 Subject: Sagem OT-290 trace phone / GSMTAP integration In-Reply-To: References: Message-ID: <12264363.QrRvXQokBc@gnutoo-desktop> On Monday, May 07, 2012 01:20:31 PM Tyson Key wrote: > Hi list, Hi, and sorry for the delay of responding. > Although I'm unfamiliar with how things work in Osmocom, That doesn't seem a problem at all. The goal is only to interface the trace phone with wireshark trough gsmtap. > I've previously > worked on Wireshark dissectors for USB-encapsulated AT commands, and > various NFC/smartcard-related protocols (PN532, FeliCa and MiFare); I never worked on wireshark but that seem a usefull skill. > and am also familiar with Nokia's proprietary ISI baseband protocol, good, I know a bit ISI too but not too much in detail(I was involved in the port of SHR and freesmartphone to the nokia n900). That skill can help a lot too. > and parts of > ETSI's GSM/UMTS specifications - so this sort of stuff isn't totally alien > to me. good. I don't know which one of us has the higher chances to succeed, but since you are willing to do it, and that you seem to have the required skills, and that I can work on other things as well(for instance finish the port nuttx to the calypso phones), I would say that you can take the phone assuming you really work on it and I hope you'll succeed. I wish you good luck. Also Harald Welte said: >The majority of what those phones can do is now also possible with >OsmocomBB. And I've already two osmocomBB compatibles phone(the freerunner and the c155). Altough I did not yet analyze the GSM protocol yet apart looking briefly at my own gsm packets without understanding the details, I'm still learning how the GSM protocol(Um and Abis) work(I only know the big picture so far) with the online slides of Joachim G?ller. I'll also try to find out about all the other features of osmocombb, to look if they are really usefull for development in the GSM protocol,and how to use them legally in Europe. So far I was concentrated on nuttx and only tried some of the osmocombb features recently(like the gsmtap/wireshark integration on the master branch). Denis. From holger at freyther.de Sun May 6 15:47:06 2012 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Sun, 06 May 2012 17:47:06 +0200 Subject: Possible solution to ticket #55 In-Reply-To: References: Message-ID: <4FA69CFA.9020306@freyther.de> On 04/30/2012 05:37 PM, Frank Maas wrote: Dear Frans, thanks a lot for your work, I would like to encourage you to revise the patch in several ways. There are some soft factors like using tabs, following the kernel coding style (e.g. not if and msgb_free) on the same line but also some technical issues. From frank at vid.nl Sun May 6 16:05:56 2012 From: frank at vid.nl (VID - Frank Maas) Date: Sun, 6 May 2012 18:05:56 +0200 Subject: Possible solution to ticket #55 In-Reply-To: <4FA69CFA.9020306@freyther.de> References: <4FA69CFA.9020306@freyther.de> Message-ID: Hello Holgor, You are probably right, no, you are most certainly right. However I was facing a rather strict deadline and found that (a) people had reported this and (b) nobody had solved it. Using this patch at least people can go forward in using and trying. When creating this patch I saw that there is no proper line in when "ownership" moves, i.e. who gets responsiblity for free'ing objects. As said: my time was limited and I encountered this project only days before making this patch. So I had no real possibility to really change the core approach. As I am not sure if we are going to follow through with this path, my thoughts were to share this with you. One can make use of it (at least over days SGSN no longer crashed), or (better) straighten up the code and solve this. I hope it will help someone. Regards, Frank From peter at stuge.se Sun May 6 17:26:07 2012 From: peter at stuge.se (Peter Stuge) Date: Sun, 6 May 2012 19:26:07 +0200 Subject: Possible solution to ticket #55 In-Reply-To: References: <4FA69CFA.9020306@freyther.de> Message-ID: <20120506172607.4219.qmail@stuge.se> VID - Frank Maas wrote: > One can make use of it (at least over days SGSN no longer crashed), You still saw the issues with the nanoBTS, right? //Peter From frank at vid.nl Sun May 6 18:50:49 2012 From: frank at vid.nl (VID - Frank Maas) Date: Sun, 6 May 2012 20:50:49 +0200 Subject: Possible solution to ticket #55 In-Reply-To: <20120506172607.4219.qmail@stuge.se> References: <4FA69CFA.9020306@freyther.de> <20120506172607.4219.qmail@stuge.se> Message-ID: On Sun, May 6, 2012 at 7:26 PM, Peter Stuge wrote: > VID - Frank Maas wrote: >> One can make use of it (at least over days SGSN no longer crashed), > > You still saw the issues with the nanoBTS, right? You are right. The GPRS setup was far from excellent. Not only the nanoBTS had problems (restarting), but also the GPRS connection(s) itself were not stable. However, before patching the issue described in #55, sgsn would crash within 0 - 4 hours after being started. After the patch SGSN never crashed and in a setup with only two GPRS users we have had succes for over a 24 hour period. Which was remarkably good. When using for the real purpose we had more BTS's and more GPRS users and that still... erh... needs some work. Regards, Frank , From holger at freyther.de Sun May 6 22:26:07 2012 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Mon, 07 May 2012 00:26:07 +0200 Subject: Possible solution to ticket #55 In-Reply-To: References: <4FA69CFA.9020306@freyther.de> Message-ID: <4FA6FA7F.5080705@freyther.de> On 05/06/2012 06:05 PM, VID - Frank Maas wrote: > Hello Holgor, Hi Frank, first of all I am happy you patched the software and that you shared it with us. I don't think any of the current developers have the time to properly fix it (I did create the issue to not forget about it). So I wonder and try to encourage you to walk the extra mile(s) with us to fix that issue once and for all. > As I am not sure if we are going to follow through with this path, my > thoughts were to share this with you. One can make use of it (at least > over days SGSN no longer crashed), or (better) straighten up the code > and solve this. I hope it will help someone. Ideally we would like to help you to create a patch that fixes this issue once and for all. holger From frank at vid.nl Mon May 7 08:14:32 2012 From: frank at vid.nl (VID - Frank Maas) Date: Mon, 7 May 2012 10:14:32 +0200 Subject: Possible solution to ticket #55 In-Reply-To: <4FA6FA7F.5080705@freyther.de> References: <4FA69CFA.9020306@freyther.de> <4FA6FA7F.5080705@freyther.de> Message-ID: Hi Holger, I share your thoughts and I welcome the idea of making a proper patch. However, as said, I am not sure if we are going to follow through on this path. If we are (and we could because we bought 2 BTS's, where we hired the other 8), this means that I have more time than I had now. So it gives me the possibility to have a proper look at your code and as a consequence get a good understanding of it. Which helps in creating a proper patch... For the time I had for this project, this was the best I could do. I was 'bailing' the boat, not repairing it. Until we have decided how to go on, I'll be in listening mode to this mailinglist. Kind regards, Frank From laforge at gnumonks.org Wed May 2 10:06:04 2012 From: laforge at gnumonks.org (Harald Welte) Date: Wed, 2 May 2012 12:06:04 +0200 Subject: May 09, 7pm / Osmocom meeting in Berlin Message-ID: <20120502100604.GY32252@prithivi.gnumonks.org> Hi all! This is the announcement for the 3rd incarnation of our bi-weekly Osmocom Berlin meeting. May 09, 7pm @ CCC Berlin, Marienstr. 11, 10113 Berlin The schedule is as follows: 19:00 Introduction / Workshop on Osmocom SIMtrace (Kevin Redon) Kevin will introduce SIM/USIM/UICC cards, present what SIMtrace is and how it works, as well as how to use it to trace communication between SIM card and phone. 20:00 Informal discussions If you are interested to show up, feel free to do so. There is no registration required. If the initial part is not interesting to you, feel free to join us later at 20:00. The meeting is free as in "free beer", despite no actual free beer being around ;) Regards, Harald -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From olaf_schulz at gmx.de Fri May 4 12:25:28 2012 From: olaf_schulz at gmx.de (Olaf Schulz) Date: Fri, 04 May 2012 14:25:28 +0200 Subject: GPRS Problems with Nokia Handsets Message-ID: <20120504122528.11180@gmx.net> Hello, I use OpenBSC/GPRS (sw version only few weeks old) with nanoBTS and this works well mith many mobile devices. With Nokia devices, however, I do not get a PDP context. Here is an osmo-sgsn trace of Nokia E65: <0012> gprs_bssgp.c:347 BSSGP TLLI=0x795b37eb Rx UPLINK-UNITDATA <0013> gprs_llc.c:478 LLC SAPI=1 C FCS=0xc2ab0aCMD=UI DATA <0013> gprs_llc.c:742 LLC RX: unknown TLLI 0x795b37eb, creating LLME on the fly <0002> gprs_gmm.c:636 -> GMM ATTACH REQUEST MI(001011474110317) type="GPRS attach" <0002> gprs_gmm.c:351 <- GPRS ATTACH ACCEPT (new P-TMSI=0x78bb36bb) <0012> gprs_bssgp.c:523 BSSGP BVCI=2 Rx Flow Control MS <0012> gprs_bssgp.c:523 BSSGP BVCI=2 Rx Flow Control MS <0012> gprs_bssgp.c:347 BSSGP TLLI=0xf8bb36bb Rx UPLINK-UNITDATA <0013> gprs_llc.c:478 LLC SAPI=1 C FCS=0xc2ab0aCMD=UI DATA //remark: is a repetition of GMM ATTACH REQUEST <0013> gprs_llc.c:525 TLLI=f8bb36bb dropping UI, N(U=0) not in window V(URV(UR:1). <0012> gprs_bssgp.c:347 BSSGP TLLI=0xf8bb36bb Rx UPLINK-UNITDATA <0013> gprs_llc.c:478 LLC SAPI=1 C FCS=0x478a8dCMD=UI DATA <0002> gprs_gmm.c:1047 -> ATTACH COMPLETE <0012> gprs_bssgp.c:523 BSSGP BVCI=2 Rx Flow Control MS <0012> gprs_bssgp.c:523 BSSGP BVCI=2 Rx Flow Control MS <0012> gprs_bssgp.c:347 BSSGP TLLI=0xf8bb36bb Rx UPLINK-UNITDATA <0013> gprs_llc.c:478 LLC SAPI=1 C FCS=0x478a8dCMD=UI DATA //remark: is a repetition of ATTACH COMPLETE <0013> gprs_llc.c:525 TLLI=f8bb36bb dropping UI, N(U=1) not in window V(URV(UR:2). <0012> gprs_bssgp.c:347 BSSGP TLLI=0xf8bb36bb Rx UPLINK-UNITDATA <0013> gprs_llc.c:478 LLC SAPI=1 C FCS=0x29e399CMD=UI DATA <0002> gprs_gmm.c:782 -> GMM DETACH REQUEST TLLI=0xf8bb36bb type=GPRS detach <0002> gprs_gmm.c:425 <- GPRS DETACH ACCEPT <0012> gprs_bssgp.c:523 BSSGP BVCI=2 Rx Flow Control MS <0012> gprs_bssgp.c:523 BSSGP BVCI=2 Rx Flow Control MS <0012> gprs_bssgp.c:523 BSSGP BVCI=2 Rx Flow Control MS We see some dropped frames here which are in fact retransmissions sent by the Nokia device. After the successful GPRS Attach, the Nokia device refuses to send an ACTIVATE PDP Context REQ. Most Nokia devices get asked for IMSI and IMEI during the GPRS ATTACH, which her does not happen. However, these retransmissions are characteristical for all Nokia devices I've tested so far (6021, C5, C7, E65, 3109c). Is there a timing problem between osmo-sgsn and Nokia devices? Can I tune osmo-sgsn's parameters to make the connection work? Any help would be appreciated. cheers Olaf ---------------------------------------- -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de From laforge at gnumonks.org Fri May 4 17:39:32 2012 From: laforge at gnumonks.org (Harald Welte) Date: Fri, 4 May 2012 19:39:32 +0200 Subject: GPRS Problems with Nokia Handsets In-Reply-To: <20120504122528.11180@gmx.net> References: <20120504122528.11180@gmx.net> Message-ID: <20120504173932.GB29112@prithivi.gnumonks.org> hi Olaf, On Fri, May 04, 2012 at 02:25:28PM +0200, Olaf Schulz wrote: > I use OpenBSC/GPRS (sw version only few weeks old) with nanoBTS and > this works well mith many mobile devices. With Nokia devices, > however, I do not get a PDP context. Here is an osmo-sgsn trace of > Nokia E65: This is very likely a problem related to TLLI state tracking and LLC sequence numbers. We have seen this for probably something like one year in OsmoSGSN and sadly nobody has had enough of a problem with it to actually debug it completely, fix it and contribute back a fix :/ Our own development is very much oriented towards features and fixes that are required/requested by our own customers, and none of them is using OsmoSGSN outside of a lab context, i.e. where those bugs would cause a major inconvenience. I guess it would require something like one day of focussed work to get those TLLI and LLC sequence number issues sorted out. Regards, Harald -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From frank at vid.nl Sun May 6 10:18:47 2012 From: frank at vid.nl (VID - Frank Maas) Date: Sun, 6 May 2012 12:18:47 +0200 Subject: GPRS Problems with Nokia Handsets In-Reply-To: <20120504173932.GB29112@prithivi.gnumonks.org> References: <20120504122528.11180@gmx.net> <20120504173932.GB29112@prithivi.gnumonks.org> Message-ID: On Fri, May 4, 2012 at 7:39 PM, Harald Welte wrote: > hi Olaf, > > On Fri, May 04, 2012 at 02:25:28PM +0200, Olaf Schulz wrote: >> I use OpenBSC/GPRS (sw version only few weeks old) with nanoBTS and >> this works well mith many mobile devices. ?With Nokia devices, >> however, I do not get a PDP context. Here is an osmo-sgsn trace of >> Nokia E65: > > This is very likely a problem related to TLLI state tracking and LLC > sequence numbers. ?We have seen this for probably something like one > year in OsmoSGSN and sadly nobody has had enough of a problem with it to > actually debug it completely, fix it and contribute back a fix :/ > Please see my posts from a few days back in which a fix is suggested for the TLLI mismatch. I had similar problems and they were solved after applying that patch. The problem, as far as I found it, is that SGSN is translating the foreign TLLI to a local TLLI (which is fine), but later on rechecks the foreign TLLI for existence (which is not fine, because the local variant exists). In my patch I convert all TLLI to local before doing a check so previously created local TLLI's are matched to the correlated foreign TLLI. Regards, Frank From Duncan at xrtc.net Sun May 6 09:01:42 2012 From: Duncan at xrtc.net (Duncan Smith) Date: Sun, 6 May 2012 02:01:42 -0700 Subject: SIM Card Sources Message-ID: <20120506090141.GF9669@kyat.xrtc.net> Hello, Does anyone have recommendations for obtaining SIM cards? I'm trying to get at least 500, unprinted and unprogrammed. Ideally, I'd be able to buy 1,000 (or more) cards for around USD$1,000 total, but I'd be willing to go up to 5,000 cards if the price drops to something like USD$0.50 per card. Thanks! -- Duncan Smith http://xrtc.net/f/ From laforge at gnumonks.org Sun May 6 09:29:24 2012 From: laforge at gnumonks.org (Harald Welte) Date: Sun, 6 May 2012 11:29:24 +0200 Subject: SIM Card Sources In-Reply-To: <20120506090141.GF9669@kyat.xrtc.net> References: <20120506090141.GF9669@kyat.xrtc.net> Message-ID: <20120506092924.GF16038@prithivi.gnumonks.org> Hi Duncan, On Sun, May 06, 2012 at 02:01:42AM -0700, Duncan Smith wrote: > Does anyone have recommendations for obtaining SIM cards? I'm trying > to get at least 500, unprinted and unprogrammed. Ideally, I'd be able > to buy 1,000 (or more) cards for around USD$1,000 total, but I'd be > willing to go up to 5,000 cards if the price drops to something like > USD$0.50 per card. I'm of course a bit biased here, but my company sysmocom is able to sell SIM cards to you. We don't only have the printed cards in the webshop, but we can of course also supply white/unprinted cards. Please contact webshop at sysmocom.de for detailed information. Regards, Harald -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From ir at mytum.de Mon May 7 19:53:13 2012 From: ir at mytum.de (Robert Ingr) Date: Mon, 07 May 2012 19:53:13 -0000 Subject: Bugreport Openbsc Authentification Message-ID: <20120507195313.90697.22537@klio.ze.tum.de> Hi all, as we were running openbsc with a nanobts in a nitb configuration at our institute we observed two bugs in the authentification part of openbsc. First: In file openbsc/openbsc/src/libmsc/db.c on line 372 there is "ainfo->a3a8_ki_len = sizeof(ainfo->a3a8_ki_len);" which takes the sizeof of the length value. This always results in a wrong keylength and hence no authentification will ever be executed. This should rather be changed to: ainfo->a3a8_ki_len = sizeof(ainfo->a3a8_ki); Secondly: I haven't found the piece of code which is responsible for this bug particulary but: Whenever the key for the a3a8_comp128 is being read from the database a shift of one bit occurs. i.e. when you set the a3a8_key in the hlr.sqlite3 to 01010101010101010101010101010101 the value being processed as key in the a3a8_comp128 algorithm is 02020202020202020202020202020202. Best Regards, Robert Ingr From 246tnt at gmail.com Mon May 7 20:08:37 2012 From: 246tnt at gmail.com (Sylvain Munaut) Date: Mon, 7 May 2012 22:08:37 +0200 Subject: Bugreport Openbsc Authentification In-Reply-To: <20120507195313.90697.22537@klio.ze.tum.de> References: <20120507195313.90697.22537@klio.ze.tum.de> Message-ID: Hi, > First: > In file openbsc/openbsc/src/libmsc/db.c on line 372 there is > > "ainfo->a3a8_ki_len = sizeof(ainfo->a3a8_ki_len);" > > which takes the sizeof of the length value. This always results in a wrong keylength and hence no authentification will ever be executed. This should rather be changed to: > > ainfo->a3a8_ki_len = sizeof(ainfo->a3a8_ki); There is indeed a bug. But it's only in the "exception" processing, so in a normal case that shouldn't have prevented auth. (and since we use auth at the camp and 27c3, I can guarantee it works in the normal case :) > Secondly: > I haven't found the piece of code which is responsible for this bug particulary but: > Whenever the key for the a3a8_comp128 is being read from the database a shift of one bit occurs. > > i.e. when you set the a3a8_key in the hlr.sqlite3 to 01010101010101010101010101010101 the value being processed as key in the a3a8_comp128 algorithm is 02020202020202020202020202020202. That's not a bug per-se. I think you're assuming the binary value stored in the field is used as key. This is _not_ the case. libdbi has some special binary escaping that results in the binary value stored not being the "raw" key. You have to either: - Use the vty to set the key - Set the key using libdbi - Escape the binary value yourself the same way as libdbi does. Cheers, Sylvain From peter at stuge.se Mon May 7 20:20:53 2012 From: peter at stuge.se (Peter Stuge) Date: Mon, 7 May 2012 22:20:53 +0200 Subject: Bugreport Openbsc Authentification In-Reply-To: References: <20120507195313.90697.22537@klio.ze.tum.de> Message-ID: <20120507202053.16263.qmail@stuge.se> Sylvain Munaut wrote: > > i.e. when you set the a3a8_key in the hlr.sqlite3 to 01010101010101010101010101010101 the value being processed as key in the a3a8_comp128 algorithm is 02020202020202020202020202020202. > > That's not a bug per-se. I think you're assuming the binary value > stored in the field is used as key. This is _not_ the case. libdbi has > some special binary escaping that results in the binary value stored > not being the "raw" key. Oh yay. Thanks for pointing this out. When libdbi goes away I'll see if a database upgrade can be done transparently. //Peter From 246tnt at gmail.com Mon May 7 20:36:11 2012 From: 246tnt at gmail.com (Sylvain Munaut) Date: Mon, 7 May 2012 22:36:11 +0200 Subject: Bugreport Openbsc Authentification In-Reply-To: <20120507202053.16263.qmail@stuge.se> References: <20120507195313.90697.22537@klio.ze.tum.de> <20120507202053.16263.qmail@stuge.se> Message-ID: Hi >> > i.e. when you set the a3a8_key in the hlr.sqlite3 to 01010101010101010101010101010101 the value being processed as key in the a3a8_comp128 algorithm is 02020202020202020202020202020202. >> >> That's not a bug per-se. I think you're assuming the binary value >> stored in the field is used as key. This is _not_ the case. libdbi has >> some special binary escaping that results in the binary value stored >> not being the "raw" key. > > Oh yay. Thanks for pointing this out. I had to implement it for pysim (since we support updating HLR db directly from it), you can see the python code here : http://cgit.osmocom.org/cgit/pysim/tree/ccc-gen.py?h=ccc#n33 Cheers, Sylvain From ir at mytum.de Tue May 8 09:33:59 2012 From: ir at mytum.de (Robert Ingr) Date: Tue, 08 May 2012 09:33:59 -0000 Subject: Bugreport Openbsc Authentification In-Reply-To: References: <20120507195313.90697.22537@klio.ze.tum.de> <20120507202053.16263.qmail@stuge.se> Message-ID: <20120508093359.92747.20456@apollo.ze.tum.de> Hi, thanks for a quick reply. > > First: > > There is indeed a bug. But it's only in the "exception" processing, so > in a normal case that shouldn't have prevented auth. (and since we use > auth at the camp and 27c3, I can guarantee it works in the normal case > :) I'm sorry, i don't see why this is only an exceptional case, but ok. In our case it was always executed and hece the authentification was skipped. Or id rather say, the execution of comp128 was skipped due to an "invalid" key. The base station continued to work fine. We wouldn't have recognized it if we weren't waiting for the simcard to be asked to do the gsm_algorithm. I can just tell that for us, it always printed the LOG error in _use_comp128_v1 function from line 57 in openbsc/openbsc/src/libmsc/auth.c > > > > i.e. when you set the a3a8_key in the hlr.sqlite3 to 01010101010101010101010101010101 the value being processed as key in the a3a8_comp128 algorithm is 02020202020202020202020202020202. > > > > > > > > > > > > > > That's not a bug per-se. I think you're assuming the binary value > > > stored in the field is used as key. This is _not_ the case. libdbi has > > > some special binary escaping that results in the binary value stored > > > not being the "raw" key. > > > > > > > > > > Oh yay. Thanks for pointing this out. > > > > > > I had to implement it for pysim (since we support updating HLR db > directly from it) Ok, i used my own php script do manipulate the database directly. I figured it would be something with that dbi function. Thanks for the help! Regards, Robert From 246tnt at gmail.com Tue May 8 09:45:16 2012 From: 246tnt at gmail.com (Sylvain Munaut) Date: Tue, 8 May 2012 11:45:16 +0200 Subject: Bugreport Openbsc Authentification In-Reply-To: <20120508093359.92747.20456@apollo.ze.tum.de> References: <20120507195313.90697.22537@klio.ze.tum.de> <20120507202053.16263.qmail@stuge.se> <20120508093359.92747.20456@apollo.ze.tum.de> Message-ID: Hi, >> There is indeed a bug. But it's only in the "exception" processing, so >> in a normal case that shouldn't have prevented auth. (and since we use >> auth at the camp and 27c3, I can guarantee it works in the normal case >> :) > > I'm sorry, i don't see why this is only an exceptional case, but ok. Here's the faulty code : if (ainfo->a3a8_ki_len > sizeof(ainfo->a3a8_ki)) ainfo->a3a8_ki_len = sizeof(ainfo->a3a8_ki_len); So it's only executed if the current value is too big, which shouldn't happen if the DB field content is correct. This might be related to manually fiddling with the binary value without using the DBI escape method. Cheers, Sylvain From ir at mytum.de Tue May 8 09:53:27 2012 From: ir at mytum.de (Robert Ingr) Date: Tue, 08 May 2012 09:53:27 -0000 Subject: Bugreport Openbsc Authentification In-Reply-To: References: <20120507195313.90697.22537@klio.ze.tum.de> <20120507202053.16263.qmail@stuge.se> <20120508093359.92747.20456@apollo.ze.tum.de> Message-ID: <20120508095327.80480.9944@ares.ze.tum.de> Sylvain Munaut <246tnt at gmail.com> wrote: > Hi, > > > > > There is indeed a bug. But it's only in the "exception" processing, so > > > in a normal case that shouldn't have prevented auth. (and since we use > > > auth at the camp and 27c3, I can guarantee it works in the normal case > > > :) > > > > > > > > > > I'm sorry, i don't see why this is only an exceptional case, but ok. > > > > > > Here's the faulty code : > > if (ainfo->a3a8_ki_len > sizeof(ainfo->a3a8_ki)) > ainfo->a3a8_ki_len = sizeof(ainfo->a3a8_ki_len); > > So it's only executed if the current value is too big, which shouldn't > happen if the DB field content is correct. This might be related to > manually fiddling with the binary value without using the DBI escape > method. > > Cheers, > > Sylvain > > > > From ir at mytum.de Tue May 8 09:53:59 2012 From: ir at mytum.de (Robert Ingr) Date: Tue, 08 May 2012 09:53:59 -0000 Subject: Bugreport Openbsc Authentification In-Reply-To: References: <20120507195313.90697.22537@klio.ze.tum.de> <20120507202053.16263.qmail@stuge.se> <20120508093359.92747.20456@apollo.ze.tum.de> Message-ID: <20120508095359.1459.50861@urania.ze.tum.de> Hi, > > So it's only executed if the current value is too big, which shouldn't > happen if the DB field content is correct. This might be related to > manually fiddling with the binary value without using the DBI escape > method. > Oh of course, you're right. Thanks! From pablo at gnumonks.org Tue May 8 18:55:08 2012 From: pablo at gnumonks.org (Pablo Neira Ayuso) Date: Tue, 8 May 2012 20:55:08 +0200 Subject: [PATCH 00/25] [v3] netfilter updates for net-next (upcoming 3.5) In-Reply-To: <1336502303-1722-1-git-send-email-pablo@netfilter.org> References: <1336502303-1722-1-git-send-email-pablo@netfilter.org> Message-ID: <20120508185508.GA17348@1984> Really sorry for the patch bomb. This is obviously not related to osmocom. I made and error selecting the destination in my scripts :-\ From henrikaagaardsorensen at gmail.com Wed May 9 07:42:10 2012 From: henrikaagaardsorensen at gmail.com (=?ISO-8859-1?Q?Henrik_Aagaard_S=F8rensen?=) Date: Wed, 9 May 2012 09:42:10 +0200 Subject: OpenMSC (OpenBSC without BSC) talking SIGTRAN (M3UA). Message-ID: Are there any work being done or already implemented solutions towards having OpenBSC work without the BSC-part and having the MSC-part talking SIGTRAN (M3UA)? All help is very much appreciated. Regards, Henrik From laforge at gnumonks.org Wed May 9 09:30:17 2012 From: laforge at gnumonks.org (Harald Welte) Date: Wed, 9 May 2012 11:30:17 +0200 Subject: OpenMSC (OpenBSC without BSC) talking SIGTRAN (M3UA). In-Reply-To: References: Message-ID: <20120509093017.GH25522@prithivi.gnumonks.org> Hi Henrik, On Wed, May 09, 2012 at 09:42:10AM +0200, Henrik Aagaard S?rensen wrote: > Are there any work being done or already implemented solutions towards > having OpenBSC work without the BSC-part and having the MSC-part > talking SIGTRAN (M3UA)? No, while this is on our wishlist for some time (and sort-of a logical evolution), but I don't know of anyone actively working on it. Most substantial developments on OpenBSC are driven by commercial requirements and customer needs. At least the majority of developers I know mostly work on it as part of their paid work. This is particularly true for protocols and interfaces (like core network interface) that no volunteer/hobbyist/academic has any equipment to talk to, because no Free Software implementations exist so far. This MSC-only mode only primarily makes sense if you want to use it with non-OpenBSC BSC's, which I guess not many people (in the non-commercial comnunity) have an interest in. Similarly, the BSC-only version of OpenBSC was created on request by an operator. The community itself is mostly using the osmo-nitb version until today. So my assessment is: As long as there is no commercial interest in it, I think most people in the community are more likely to work on other tasks than on this feature. Regards, Harald -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From alexander.chemeris at gmail.com Mon May 14 12:19:18 2012 From: alexander.chemeris at gmail.com (Alexander Chemeris) Date: Mon, 14 May 2012 16:19:18 +0400 Subject: OsmoDevCon'12 video recordings are available Message-ID: Hi all, (and apologies for cross-posting) OsmoDevCon'12 was a great event and a lot of fun. There were also a lot of information about the state of the art open-source in telecom and some of this information is now available for everyone as video recordings. Quality of recordings is not so great, so please make sure you enjoy the content. http://www.youtube.com/playlist?list=PL07C78AF831FFE8F9 Slides for some of the talks could be found at the end of the OsmoDevCon'12 wiki page: http://openbsc.osmocom.org/trac/wiki/OsmoDevCon2012#Videorecordings -- Regards, Alexander Chemeris. CEO, Fairwaves LLC / ??? ??????? http://fairwaves.ru From pfc.rivas at gmail.com Mon May 14 16:18:42 2012 From: pfc.rivas at gmail.com (Arturo Rivas) Date: Mon, 14 May 2012 18:18:42 +0200 Subject: OpenBSC+LCR problem Message-ID: Hi list! I have a installation problem with OpenBSC+LCR. I tried to install it following tutorial in the wiki and not working. I have some problem and I probe to install in various unix version Ubuntu based but I can't. I believe that codes are changing and tutorial doesn't work. Someone have installed OpenBSC+LCR recently? Pleased tell me how! In addiction, I need to know if there are documentation about the codes to complain how it work to study the program and understand it. Are there documentation available? Thank you! From holger at freyther.de Mon May 14 16:33:04 2012 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Mon, 14 May 2012 18:33:04 +0200 Subject: OpenBSC+LCR problem In-Reply-To: References: Message-ID: <4FB133C0.2080206@freyther.de> On 05/14/2012 06:18 PM, Arturo Rivas wrote: > Hi list! Dear Arturo, please move the meta-disucssion to the problem. What didn't work? What did you try? What was the result? h. From pfc.rivas at gmail.com Mon May 14 16:58:13 2012 From: pfc.rivas at gmail.com (Arturo Rivas) Date: Mon, 14 May 2012 18:58:13 +0200 Subject: OpenBSC+LCR problem In-Reply-To: <4FB133C0.2080206@freyther.de> References: <4FB133C0.2080206@freyther.de> Message-ID: Thank you. I do 'make' in lcr but doesn't work and show this: * In file included from /usr/include/asterisk/astobj2.h:20, from /usr/include/asterisk/indications.h:29, from chan_lcr.c:160: /usr/include/asterisk/compat.h:93: error: expected identifier or ?(? before ?__extension__? /usr/include/asterisk/compat.h:101: error: expected identifier or ?(? before ?__extension__? /usr/include/asterisk/compat.h:101: error: expected identifier or ?(? before ?)? token chan_lcr.c: In function ?send_message?: chan_lcr.c:383: warning: ignoring return value of ?write?, declared with attribute warn_unused_result chan_lcr.c:679:2: warning: #warning DISABLED DUE TO DOUBLE LOCKING PROBLEM chan_lcr.c: In function ?lcr_in_proceeding?: chan_lcr.c:1115: warning: ignoring return value of ?write?, declared with attribute warn_unused_result chan_lcr.c: In function ?lcr_in_alerting?: chan_lcr.c:1136: warning: ignoring return value of ?write?, declared with attribute warn_unused_result chan_lcr.c: In function ?lcr_in_connect?: chan_lcr.c:1167: warning: ignoring return value of ?write?, declared with attribute warn_unused_result chan_lcr.c: In function ?lcr_in_disconnect?: chan_lcr.c:1208: warning: ignoring return value of ?write?, declared with attribute warn_unused_result chan_lcr.c: In function ?lcr_in_release?: chan_lcr.c:1242: warning: ignoring return value of ?write?, declared with attribute warn_unused_result chan_lcr.c: In function ?lcr_in_information?: chan_lcr.c:1285: warning: ignoring return value of ?write?, declared with attribute warn_unused_result chan_lcr.c: In function ?lcr_in_pattern?: chan_lcr.c:1361: warning: ignoring return value of ?write?, declared with attribute warn_unused_result chan_lcr.c: In function ?lcr_in_dtmf?: chan_lcr.c:1391: warning: ignoring return value of ?write?, declared with attribute warn_unused_result chan_lcr.c: In function ?release_all_calls?: chan_lcr.c:1655: warning: ignoring return value of ?write?, declared with attribute warn_unused_result chan_lcr.c: In function ?wake_event?: chan_lcr.c:1805: warning: ignoring return value of ?read?, declared with attribute warn_unused_result chan_lcr.c: In function ?load_module?: chan_lcr.c:3243: warning: passing argument 2 of ?ast_register_application2? from incompatible pointer type /usr/include/asterisk/module.h:427: note: expected ?int (*)(struct ast_channel *, void *)? but argument is of type ?int (*)(struct ast_channel *, void *)? make[1]: *** [chan_lcr.po] Error 1 make[1]: Leaving directory `/home/rivas/openbsc/lcr' make: *** [all] Error 2* I'm following step by step wiki tutorial and using Ubuntu 10.04. There is a patch to apply before but doesn't work: *rivas at ubuntu:~/openbsc/lcr$ git apply --verbose lcrOpenBSC.patchChecking patch gsm_bs.cpp... error: while searching for: int bts_model_nanobts_init(void); static struct log_target *stderr_target; /* timer to store statistics */ #define DB_SYNC_INTERVAL 60, 0 static struct timer_list db_sync_timer; error: patch failed: gsm_bs.cpp:39 error: gsm_bs.cpp: patch does not apply* 2012/5/14 Holger Hans Peter Freyther > On 05/14/2012 06:18 PM, Arturo Rivas wrote: > > Hi list! > > Dear Arturo, > > please move the meta-disucssion to the problem. What didn't work? What did > you > try? What was the result? > > > h. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From holger at freyther.de Tue May 15 07:40:45 2012 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Tue, 15 May 2012 09:40:45 +0200 Subject: OpenBSC+LCR problem In-Reply-To: References: <4FB133C0.2080206@freyther.de> Message-ID: <4FB2087D.3090409@freyther.de> On 05/14/2012 06:58 PM, Arturo Rivas wrote: Hi, please once more in a different order 0.) State which versions of software (asterisk, lcr, openbsc) 1.) First output of applying patches (where does the patch come from?) 2.) Then output of configure/make > > *rivas at ubuntu:~/openbsc/lcr$ git apply --verbose lcrOpenBSC.patchChecking > patch gsm_bs.cpp... > error: while searching for: So in your case applying the patch does not work, most likely as LCR has catched up and you don't need the patch anymore. From stuart at bluewave.im Fri May 18 08:30:01 2012 From: stuart at bluewave.im (Stuart Baggs) Date: Fri, 18 May 2012 09:30:01 +0100 Subject: nanoBTS Message-ID: <432AB698-4B5C-4698-83B3-2A1D9369353A@bluewave.im> Hello All I know the list isn't for advertising but I thought some of the list members trying to source a nanoBTS may find this useful. We currently have 2 model 139 1800 MHz units here in our office which we pulled from a live GSM network earlier in the week. We've got them working with openBSC just fine. If anyone is interested please give me an email. P.S. We've sold quite a few of these to list members before so referencing isn't a problem. Kind Regards Stuart From manan16489 at gmail.com Sat May 19 06:46:39 2012 From: manan16489 at gmail.com (Manan Bhatt) Date: Sat, 19 May 2012 12:16:39 +0530 Subject: Query ragrding libosmocore installation Message-ID: Sir, I am working on a project to implement a GSM test-bed scenario. I need do install openBSC. I go through your page indicating the installation guide. My problem is git clone is not working.Everytime it is telling that the server is not responding. When i tried to install using tarballs the version conflict is coming in case of libosmo-abis and openbsc as the tarballs are provided of different versions. libosmocore 0.1.30 but libosmo-abis needs libosmocore >=0.3.0 . Please help me regarding this. -- Regards, Manan Bhatt -------------- next part -------------- An HTML attachment was scrubbed... URL: From holger at freyther.de Sat May 19 07:16:16 2012 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Sat, 19 May 2012 09:16:16 +0200 Subject: Query ragrding libosmocore installation In-Reply-To: References: Message-ID: <4FB748C0.40203@freyther.de> On 05/19/2012 08:46 AM, Manan Bhatt wrote: > Sir, > I go through your page indicating the installation guide. > My problem is git clone is not working.Everytime it is telling that the > server is not responding. Please check with your corporate IT and ask them to open the port for the git protocol. holger From peter at stuge.se Sat May 19 07:17:37 2012 From: peter at stuge.se (Peter Stuge) Date: Sat, 19 May 2012 09:17:37 +0200 Subject: Query ragrding libosmocore installation In-Reply-To: References: Message-ID: <20120519071737.25940.qmail@stuge.se> Manan Bhatt wrote: > git clone is not working.Everytime it is telling that the server is > not responding. Please read http://www.chiark.greenend.org.uk/~sgtatham/bugs.html It works for me. $ git clone git://git.osmocom.org/openbsc.git Cloning into openbsc... remote: Counting objects: 36292, done. remote: Compressing objects: 100% (7106/7106), done. remote: Total 36292 (delta 29565), reused 35641 (delta 29042) Receiving objects: 100% (36292/36292), 5.23 MiB | 464 KiB/s, done. Resolving deltas: 100% (29565/29565), done. Did you use the correct URL? If yes, please consult your network administrator. //Peter From manan16489 at gmail.com Sat May 19 07:23:33 2012 From: manan16489 at gmail.com (Manan Bhatt) Date: Sat, 19 May 2012 12:53:33 +0530 Subject: Query ragrding libosmocore installation In-Reply-To: <20120519071737.25940.qmail@stuge.se> References: <20120519071737.25940.qmail@stuge.se> Message-ID: sir,thanks for very fast reply.i will do according to your instruction.thanks again.. On Sat, May 19, 2012 at 12:47 PM, Peter Stuge wrote: > Manan Bhatt wrote: > > git clone is not working.Everytime it is telling that the server is > > not responding. > > Please read http://www.chiark.greenend.org.uk/~sgtatham/bugs.html > > It works for me. > > $ git clone git://git.osmocom.org/openbsc.git > Cloning into openbsc... > remote: Counting objects: 36292, done. > remote: Compressing objects: 100% (7106/7106), done. > remote: Total 36292 (delta 29565), reused 35641 (delta 29042) > Receiving objects: 100% (36292/36292), 5.23 MiB | 464 KiB/s, done. > Resolving deltas: 100% (29565/29565), done. > > Did you use the correct URL? If yes, please consult your network > administrator. > > > //Peter > > -- Regards, Manan Bhatt M. Tech. Dept of Computer sci & Eng. NIT,Surathkal. -------------- next part -------------- An HTML attachment was scrubbed... URL: From laforge at gnumonks.org Mon May 21 11:36:16 2012 From: laforge at gnumonks.org (Harald Welte) Date: Mon, 21 May 2012 13:36:16 +0200 Subject: OpenBSC "success stories", anyone ? Message-ID: <20120521113616.GS19343@prithivi.gnumonks.org> Hi all! We sometimes get media inquiries about where (and for what) OpenBSC is actually deployed. Like any Free Software project, we of course have no clue how many users there are, and what they do with it. There are some companies that we know of, as we've received their patches, or actually did some consulting for them as part of our paid work. Some of them are actually listed in the source code and/or on our homepage. However, I would like to see more than those "usual suspects". So if you use OpenBSC for anything beyond your personal hobby, I would like to hear from you. If possible, I would like to anything from a small one-line statement to a multi-paragraph explanation about it on our project webpage. It doesn't have to be all-positive. You can even state that you tried it but didn't get So far, I know there are * at least one handful of academic institutions using it for research and/or teaching * at least one company that's using OpenBSC based networks as communications technology at large events (concerts/festivals and the like) * at least one company operating OpenBSC on board of maritime vessels * at least one company building systems for desaster / emergency relief based on OpenBSC So if all of you (or at least some of you) could step forward and send me a notice (either privately or Cc to this list), I would appreciate it a lot. Regards, Harald p.s.: And yes, I'm talking about the OpenBSC homepage, not the sysmocom company page. We keep a strict separation between those two, and if you ever think that we might not follow that clear distinction. -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From mailman-bounces at lists.osmocom.org Mon May 21 11:39:46 2012 From: mailman-bounces at lists.osmocom.org (mailman-bounces at lists.osmocom.org) Date: Mon, 21 May 2012 13:39:46 +0200 Subject: Uncaught bounce notification Message-ID: The attached message was received as a bounce, but either the bounce format was not recognized, or no member addresses could be extracted from it. This mailing list has been configured to send all unrecognized bounce messages to the list administrator(s). For more information see: https://lists.osmocom.org/mailman/admin/openbsc/bounce -------------- next part -------------- An embedded message was scrubbed... From: MAILER-DAEMON at yahoo.com Subject: Failure Notice Date: Mon, 21 May 2012 11:39:40 -0000 Size: 7325 URL: From Dragos.Vingarzan at fokus.fraunhofer.de Tue May 22 16:51:50 2012 From: Dragos.Vingarzan at fokus.fraunhofer.de (Dragos Vingarzan) Date: Tue, 22 May 2012 18:51:50 +0200 Subject: pySIM patch for USIM Message-ID: <4FBBC426.8090807@fokus.fraunhofer.de> Hello Silvain, please find attached a patch for pySIM which I put together today after some work to get the extra parameters which I needed on the sysmoUSIM-GR1. Don't know if it only works for those cards. This fixes some bugs in setting the IMSI and also adds support for selecting USIM and writing binary/records in there. I have also added some parameters like MSISDN or the forbidden MCC to black-list other national networks, in the idea that one would provision on the test 001/01 network. The data formats are not so well defined or clean as I was on a get-it-done schedule and did not actually read the specs. Anyway, the result works fine for me. Otherwise I could only use pySIM with the GemPC Express reader. I read that you have a PC Twin Reader which seems to be more common, but I am getting the following with that, so any help would be appreciated: Programming ... Traceback (most recent call last): File "./pySim-prog.py", line 544, in card.program(cp) File "/root/svn/svnsrv.fokus.fraunhofer.de_OpenEPC/pysim/pySim/cards.py", line 364, in program data, sw = self._scc._tp.send_apdu_checksw("0099000033" + par) File "/root/svn/svnsrv.fokus.fraunhofer.de_OpenEPC/pysim/pySim/transport/__init__.py", line 88, in send_apdu_checksw rv = self.send_apdu(pdu) File "/root/svn/svnsrv.fokus.fraunhofer.de_OpenEPC/pysim/pySim/transport/__init__.py", line 69, in send_apdu data, sw = self.send_apdu_raw(pdu) File "/root/svn/svnsrv.fokus.fraunhofer.de_OpenEPC/pysim/pySim/transport/pcsc.py", line 75, in send_apdu_raw data, sw1, sw2 = self._con.transmit(apdu) File "/usr/lib/python2.7/dist-packages/smartcard/CardConnectionDecorator.py", line 82, in transmit return self.component.transmit(bytes, protocol) File "/usr/lib/python2.7/dist-packages/smartcard/CardConnection.py", line 140, in transmit data, sw1, sw2 = self.doTransmit(bytes, protocol) File "/usr/lib/python2.7/dist-packages/smartcard/pcsc/PCSCCardConnection.py", line 175, in doTransmit raise CardConnectionException('Failed to transmit with protocol ' + dictProtocolHeader[pcscprotocolheader] + '. ' + SCardGetErrorMessage(hresult)) smartcard.Exceptions.CardConnectionException: Failed to transmit with protocol T0. Transaction failed. P.S. I must apologize if the patch is crappy, as I could not yet be bothered to read a book or something on python. Cheers, -Dragos -- ----------------------------------------- Dipl. Eng. Dragos Vingarzan Fraunhofer FOKUS/NGNI Kaiserin-Augusta-Allee 31 10589 Berlin,Germany Phone +49 (0)30 - 3463 - 7385 Mobile +49 (0)176 - 48 32 16 00 Web www.fokus.fraunhofer.de www.openepc.net www.openimscore.org ----------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: patch_usim.diff Type: text/x-patch Size: 6702 bytes Desc: not available URL: From laforge at gnumonks.org Wed May 23 07:46:13 2012 From: laforge at gnumonks.org (Harald Welte) Date: Wed, 23 May 2012 09:46:13 +0200 Subject: TODAY: May 23, 7pm / Osmocom meeting in Berlin Message-ID: <20120523074613.GX19343@prithivi.gnumonks.org> Hi all! This is the announcement for the 4th incarnation of our bi-weekly Osmocom Berlin meeting. May 23, 7pm @ CCC Berlin, Marienstr. 11, 10113 Berlin There is no particular schedule for now, but if there is interest we can do an introduction + demo of the new sysmoBTS. Also, I'll have my SIMtrace with me, to read out TERMINAL PROFILE from phones for https://terminal-profile.osmocom.org/ . So if you have any phones to read out: Please bring them (with charged battery or charger!) So we'll just meet + talk. There seem to be some SMSC related questions that we would want to adress, so you have been warned ;) If you are interested to show up, feel free to do so. There is no registration required. The meeting is free as in "free beer", despite no actual free beer being around ;) Regards, Harald -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From hwit at a-domani.nl Thu May 24 07:13:23 2012 From: hwit at a-domani.nl (Hans Witvliet) Date: Thu, 24 May 2012 09:13:23 +0200 Subject: sim Message-ID: <1337843603.4431.98.camel@t43.lan0.a-domani.nl> Hi all, Perhaps i am completely mistaken.. If so, please make it a "learning-moment" for me ;-) Is it possible to crate your own SIM's ? As far as i can see, these are just small smartcards. And as such, thse can be filled with the tools that come along with OpenSC. I presume the SIM's contain a number of EF's and DF's One set that thighs a SIM to a specific operator (making it possible to SIM-lock a handy) And another set of EF's that identifies a specific user. Within the DB of the operator, the relation between the SIM-identifier and the specific user (with his 06-number and other info) is made. (I know that the sim itself is not unique, because a college had a malfuntioning SIM, and it was replaced by another one, with the same content) Reason why i want to fill my own sims is this; For one of our projects we are using certificates on a smartcard. Currently full-sized, but we think of putting it on a sim-sized card. And use it in a dongle along with 2Gb (bootable) flash storage. So my questions are: 1) can you burn your own sim's 2) would there be any objections to have, beside de GSM-info, also a certificate 3) could you "clone" an existing SIM? With regard to the last one: If i buy a couple of prepaid-sims from a operator, would it be possible to extract that info, and put it along with my own certificates on a sim of my own? Obviously, it is no use to contact the help desks of kpn, tele2, or vodafone at this moment. But _if_ their are no technical limitations i could do a test with some of our own BTS'es. And if that pilot works, we have a business case for any interested operator. Hans From 246tnt at gmail.com Thu May 24 08:26:17 2012 From: 246tnt at gmail.com (Sylvain Munaut) Date: Thu, 24 May 2012 10:26:17 +0200 Subject: sim In-Reply-To: <1337843603.4431.98.camel@t43.lan0.a-domani.nl> References: <1337843603.4431.98.camel@t43.lan0.a-domani.nl> Message-ID: Hi, > Is it possible to crate your own SIM's ? > As far as i can see, these are just small smartcards. > And as such, thse can be filled with the tools that come along with > OpenSC. > > I presume the SIM's contain a number of EF's and DF's > One set that thighs a SIM to a specific operator (making it possible to > SIM-lock a handy) > And another set of EF's that identifies a specific user. Yes, they're essentially simple smartcard and as long as you have the proper file and use the proper class byte, that will work. However, SIM are also responsible for the execution of the A3A8 authentication algorithm through a special 'RUN GSM ALGORITHM' command and your smartcard must implement it. > Within the DB of the operator, the relation between the SIM-identifier > and the specific user (with his 06-number and other info) is made. > (I know that the sim itself is not unique, because a college had a > malfuntioning SIM, and it was replaced by another one, with the same > content) Yes. The MISDN (phone number) has no relation to the IMSI (SIM identity) except inside the operator. > 1) can you burn your own sim's Yes. See http://shop.sysmocom.de/t/sim-card-related/sim-cards for programmable simcards. See http://cgit.osmocom.org/cgit/pysim/ for an utility to program those. And finally see http://cgit.osmocom.org/cgit/osmo-cos/ for the beginning of a fully opensource smartcard OS you could use to implement SIM. > 2) would there be any objections to have, beside de GSM-info, also a > certificate I would think so. AFAICT the specs says you have to respond to certain command, but it doesn't say you can't answer to some additional ones not in the specs. > 3) could you "clone" an existing SIM? You can't read the secret key, also the algoritmh chosen by your operator for A3A8 can be variable (and not all are known). So ... you can make a copy that includes everything except those but it will obviously not work. > With regard to the last one: If i buy a couple of prepaid-sims from a > operator, would it be possible to extract that info, and put it along > with my own certificates on a sim of my own? See above : No. Cheers, Sylvain From laforge at gnumonks.org Thu May 24 08:45:40 2012 From: laforge at gnumonks.org (Harald Welte) Date: Thu, 24 May 2012 10:45:40 +0200 Subject: sim In-Reply-To: <1337843603.4431.98.camel@t43.lan0.a-domani.nl> References: <1337843603.4431.98.camel@t43.lan0.a-domani.nl> Message-ID: <20120524084540.GK19343@prithivi.gnumonks.org> On Thu, May 24, 2012 at 09:13:23AM +0200, Hans Witvliet wrote: > Is it possible to crate your own SIM's ? Yes, but they will only work on your own GSM network, unless you have a way to install your Ki or K/OPC into the AUC of an operator (which you don't, unless you work in the core network division of an operator or have some kind of special business relationship with them. -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From hwit at a-domani.nl Thu May 24 21:40:41 2012 From: hwit at a-domani.nl (Hans Witvliet) Date: Thu, 24 May 2012 23:40:41 +0200 Subject: sim In-Reply-To: <20120524084540.GK19343@prithivi.gnumonks.org> References: <1337843603.4431.98.camel@t43.lan0.a-domani.nl> <20120524084540.GK19343@prithivi.gnumonks.org> Message-ID: <1337895641.4431.126.camel@t43.lan0.a-domani.nl> On Thu, 2012-05-24 at 10:45 +0200, Harald Welte wrote: > On Thu, May 24, 2012 at 09:13:23AM +0200, Hans Witvliet wrote: > > > Is it possible to crate your own SIM's ? > > Yes, but they will only work on your own GSM network, unless you have a > way to install your Ki or K/OPC into the AUC of an operator (which you > don't, unless you work in the core network division of an operator or > have some kind of special business relationship with them. Tnx, Learned much, specially from your page at; http://openbsc.osmocom.org/trac/wiki/MagicSIM During a previous pilot we established that kind of special relation ship with other operators. So handy's with our sims also work outside the scope of our own bts. The guy doing the previous pilot had little experience with smartcards, i it looks like it is worthwhile looking into it. Thanks again. Hans From manan16489 at gmail.com Thu May 24 08:54:01 2012 From: manan16489 at gmail.com (Manan Bhatt) Date: Thu, 24 May 2012 14:24:01 +0530 Subject: Query Regarding GSM setup. Message-ID: Hi, all. I am beginner to GSM setup.I have gone through osmocom sit and collect the material to build the network.But my query is how i should sync the gnuradio which drives USRP with openBTS or openBSC.. -- Regards, Manan Bhatt -------------- next part -------------- An HTML attachment was scrubbed... URL: From laforge at gnumonks.org Fri May 25 16:46:23 2012 From: laforge at gnumonks.org (Harald Welte) Date: Fri, 25 May 2012 18:46:23 +0200 Subject: Osmocom user group meetings in Berlin Message-ID: <20120525164623.GY14653@prithivi.gnumonks.org> Hi all, I have upated the wiki page at http://openbsc.osmocom.org/trac/wiki/OsmoUserGroup/Berlin to indicate the meeting dates for the next couple of months. So now it is clear that even without any explicit separate announcement, we will be meeting at the indicated date: June 13, 2012 June 27, 2012 July 11, 2012 July 25, 2012 August 8, 2012 August 22, 2012 It had been requested to start a bit later (8pm instead of 7pm), and from the next meeting onwards we will follow that request. Looking forward to meeting you! Regards, Harald -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From pfc.rivas at gmail.com Fri May 25 17:47:56 2012 From: pfc.rivas at gmail.com (Arturo Rivas) Date: Fri, 25 May 2012 19:47:56 +0200 Subject: LCR compilation problem Message-ID: <48B0FF89-9175-45E0-A0D3-F888A4957946@gmail.com> Hi! I'm trying to install OpenBSC+LCR. I'm following the next tutorial: http://openbsc.osmocom.org/trac/wiki/OpenBSC_LCR I have installed libosmocore and openbsc but I can't install lcr. I tried to apply patch from tutorial but it doesn't works, maybe version is so old because gsm_bs.cpp is not the same. When run configure terminal shows: configure: error: in '/home/rivas/OpenBSC/lcr' configure: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed I have new Ubuntu 12.04 and I have install asterisk from apt-get repository. Someone can help me? Also I need to know if there is a tutorial recently actualized. Best regards, Arturo Rivas. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rogier at virtunix.nl Tue May 29 07:58:37 2012 From: rogier at virtunix.nl (Rogier van Eeten) Date: Tue, 29 May 2012 09:58:37 +0200 Subject: LCR compilation problem In-Reply-To: <48B0FF89-9175-45E0-A0D3-F888A4957946@gmail.com> References: <48B0FF89-9175-45E0-A0D3-F888A4957946@gmail.com> Message-ID: <4FC481AD.1000600@virtunix.nl> On 05/25/2012 07:47 PM, Arturo Rivas wrote: > configure: error: in '/home/rivas/OpenBSC/lcr' > configure: error: --with-asterisk was given, but test for header-file > asterisk/compiler.h failed > > I have new Ubuntu 12.04 and I have install asterisk from apt-get repository. > > Someone can help me? Also I need to know if there is a tutorial recently > actualized. You need the header files from asterisk. Try apt-get install asterisk-dev. Regards, Rogier From pfc.rivas at gmail.com Wed May 30 18:41:19 2012 From: pfc.rivas at gmail.com (Arturo Rivas) Date: Wed, 30 May 2012 20:41:19 +0200 Subject: LCR compilation problem In-Reply-To: <4FC481AD.1000600@virtunix.nl> References: <48B0FF89-9175-45E0-A0D3-F888A4957946@gmail.com> <4FC481AD.1000600@virtunix.nl> Message-ID: Thank you Rogier, I have a new problem. I continued try to install lcr but I need mISND module. When I run configure in mISDN directory, after clone git repository, terminal shows: *configure: error: kernel build tree does not exist build:/lib/modules/3.2.0-24-generic-pae/build / source:/lib/modules/3.2.0-24-generic-pae/source* I don't know what I have to do! 2012/5/29 Rogier van Eeten > On 05/25/2012 07:47 PM, Arturo Rivas wrote: > > configure: error: in '/home/rivas/OpenBSC/lcr' >> configure: error: --with-asterisk was given, but test for header-file >> asterisk/compiler.h failed >> >> I have new Ubuntu 12.04 and I have install asterisk from apt-get >> repository. >> >> Someone can help me? Also I need to know if there is a tutorial recently >> actualized. >> > > You need the header files from asterisk. Try apt-get install asterisk-dev. > > > > Regards, > Rogier > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rogier at virtunix.nl Wed May 30 19:08:14 2012 From: rogier at virtunix.nl (Rogier van Eeten) Date: Wed, 30 May 2012 21:08:14 +0200 Subject: LCR compilation problem In-Reply-To: References: <48B0FF89-9175-45E0-A0D3-F888A4957946@gmail.com> <4FC481AD.1000600@virtunix.nl> Message-ID: <4FC6701E.6020304@virtunix.nl> On 05/30/2012 08:41 PM, Arturo Rivas wrote: > > I have a new problem. I continued try to install lcr but I need mISND > module. When I run configure in mISDN directory, after clone git > repository, terminal shows: > > /configure: error: kernel build tree does not exist > build:/lib/modules/3.2.0-24-generic-pae/build / > source:/lib/modules/3.2.0-24-generic-pae/source/ > > I don't know what I have to do! Wel, actually, the error says it all. You don't have the build tree of your running kernel. Try installing a package like linux-headers-3.2.0-24-genereric-pae :) From pfc.rivas at gmail.com Wed May 30 19:13:45 2012 From: pfc.rivas at gmail.com (Arturo Rivas) Date: Wed, 30 May 2012 21:13:45 +0200 Subject: LCR compilation problem In-Reply-To: <4FC6701E.6020304@virtunix.nl> References: <48B0FF89-9175-45E0-A0D3-F888A4957946@gmail.com> <4FC481AD.1000600@virtunix.nl> <4FC6701E.6020304@virtunix.nl> Message-ID: <4598445098124032660@unknownmsgid> Thank you but I tried it but doesn't worked! Regards, Arturo Rivas Arias El 30/05/2012, a las 21:11, Rogier van Eeten escribi?: > On 05/30/2012 08:41 PM, Arturo Rivas wrote: >> >> I have a new problem. I continued try to install lcr but I need mISND >> module. When I run configure in mISDN directory, after clone git >> repository, terminal shows: >> >> /configure: error: kernel build tree does not exist >> build:/lib/modules/3.2.0-24-generic-pae/build / >> source:/lib/modules/3.2.0-24-generic-pae/source/ >> >> I don't know what I have to do! > > Wel, actually, the error says it all. You don't have the build tree of your running kernel. Try installing a package like linux-headers-3.2.0-24-genereric-pae :) > > > > From meierk at informatik.uni-freiburg.de Thu May 31 12:36:50 2012 From: meierk at informatik.uni-freiburg.de (Konrad Meier) Date: Thu, 31 May 2012 14:36:50 +0200 Subject: LCR compilation problem In-Reply-To: <4598445098124032660@unknownmsgid> References: <48B0FF89-9175-45E0-A0D3-F888A4957946@gmail.com> <4FC481AD.1000600@virtunix.nl> <4FC6701E.6020304@virtunix.nl> <4598445098124032660@unknownmsgid> Message-ID: <4FC765E2.8070501@informatik.uni-freiburg.de> On 30.05.2012 21:13, Arturo Rivas wrote: > Thank you but I tried it but doesn't worked! > Dear Arturo, I added a brief installation guide to the openBSC wiki: http://openbsc.osmocom.org/trac/wiki/OpenBSC_LCR_Ubuntu12.04 This installation guide was tested with Ubuntu 12.04. Please use a 32 Bit version of Ubuntu. Otherwise LCR will not work. I hope this helps. Best Regards Konrad From pfc.rivas at gmail.com Thu May 31 17:27:37 2012 From: pfc.rivas at gmail.com (Arturo Rivas) Date: Thu, 31 May 2012 19:27:37 +0200 Subject: LCR compilation problem In-Reply-To: <4FC765E2.8070501@informatik.uni-freiburg.de> References: <48B0FF89-9175-45E0-A0D3-F888A4957946@gmail.com> <4FC481AD.1000600@virtunix.nl> <4FC6701E.6020304@virtunix.nl> <4598445098124032660@unknownmsgid> <4FC765E2.8070501@informatik.uni-freiburg.de> Message-ID: Thank you very much! It's just what I needed! I have a new problem when I make lcr: * bchannel.c:26:27: fatal error: mISDN/mISDNif.h: No such file or directory compilation terminated. make[1]: *** [bchannel.po] Error 1 make[1]: Leaving directory `/home/rivas/GSM/lcr' make: *** [all] Error 2* I'm following all there steps but... 2012/5/31 Konrad Meier > On 30.05.2012 21:13, Arturo Rivas wrote: > >> Thank you but I tried it but doesn't worked! >> >> > Dear Arturo, > > I added a brief installation guide to the openBSC wiki: > http://openbsc.osmocom.org/**trac/wiki/OpenBSC_LCR_**Ubuntu12.04 > > This installation guide was tested with Ubuntu 12.04. Please use a 32 Bit > version of Ubuntu. Otherwise LCR will not work. > I hope this helps. > > Best Regards > Konrad > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailman-bounces at lists.osmocom.org Fri May 25 17:50:35 2012 From: mailman-bounces at lists.osmocom.org (mailman-bounces at lists.osmocom.org) Date: Fri, 25 May 2012 19:50:35 +0200 Subject: Uncaught bounce notification Message-ID: The attached message was received as a bounce, but either the bounce format was not recognized, or no member addresses could be extracted from it. This mailing list has been configured to send all unrecognized bounce messages to the list administrator(s). For more information see: https://lists.osmocom.org/mailman/admin/openbsc/bounce -------------- next part -------------- An embedded message was scrubbed... From: MAILER-DAEMON at yahoo.com Subject: Failure Notice Date: Fri, 25 May 2012 17:50:28 -0000 Size: 9177 URL: From m_josenhans at web.de Tue May 29 18:30:26 2012 From: m_josenhans at web.de (M. Josenhans) Date: Tue, 29 May 2012 20:30:26 +0200 Subject: First version of Erlang based telnet server Message-ID: <4FC515C2.9060003@web.de> Hello, while there there is a comandline interface for openbsc to configure the BSC software, until now there has been nothing comparable as user interface for the osmocom/Erlang code. This has changed. Here is a first version of an Erlang written command-line interface: https://github.com/josemic/Erlang-command-line-interface Be aware that there is currently only dummy data presented. It has not yet been integrated with the osmocom/Erlang code. Please test and provide feedback. For installation instructions please see github wiki pages. Br, Michael From ellen.apolinar.td at googlemail.com Thu May 31 08:08:33 2012 From: ellen.apolinar.td at googlemail.com (Ellen Apolinar) Date: Thu, 31 May 2012 10:08:33 +0200 Subject: OpenBSC with Dahdi+Asterisk and several BTS Message-ID: Hey folks, I am new with OpenBSC and want to build OpenBSC with several BTS from different types. At first what I need: I want to test OpenBSC without a BTS just to see if the installation worked successfully. Also I need to know what I have to do if I want to use a BTS which isn't configured yet. What we want to do in the end is to test the BTS with a selfmade programm. For this we need an interface between the hardware BTS and the pc. What I have: Ubuntu 11.10 Kernel 3.0.22 several BTS (Siemens BS60/BS240, Nokia Citytalk, Alcatel G9100 etc...) HFC-E1 card from Cologne Chip OpenBSC Asterisk 1.8.4.4 + Web-GUI (Asterisk NOW 2.0) Dahdi 2.4.1 Libpri 1.4 mISDN v2.x mISDNuser 2.0.11 LCR 1.7 Twinkle, Wireshark etc. Why mISDN + Dahdi: First I tried to use mISDn + mISDNuser + LCR for a connection between OpenBSC and Asterisk. mISDN was integrated in the Kernel so I thought it's the best idea to use it. I installed mISDNuser and LCR but there are several problems. For further informations you can have a look here: http://www.ip-phone-forum.de/showthread.php?t=247932 Because of the problems mit LCR/chan_LCR and Asterisk I decided to use Dahdi because it's also installed since I installed Asterisk. Asterisks works fine with the softphones which I created with Twinkle and also the Asterisk GUI works without problems. To use Dahdi: modprobe -r hfcmulti modprobe -r mISDN_core /etc/init.d/dahdi restart /etc/dahdi/system.conf: dchan=1 bchan=2-30 openbsc.cfg: e1_input e1_line 0 driver dahdi To start OpenBSC: cd /etc/openbsc/src/osmo-nitb ./osmo-nitb Error: <0005> bsc_init.c:493 Failed to parse the config file: 'openbsc.cfg' So now I'm not sure what to do because I'm not sure what exactly is wrong and if it could work without a BTS. There are enough informations if I want to test a BS11 or a nanoBTS but I'm a little bit lost how to work with another BTS. In the next day I will get the traces from the several BTS to build an interface between BTS and OpenBSC so I can build the openbsc.cfg-file. But it would be great if it is possible to test OpenBSC before I get the traces. To get a connection between OpenBSC and Astrisk with Dahdi is a problem which I should solve by myself. There should be enough information in the internet. if you have questions or need more informations just write an e-mail. Best regards and thanks in advance. It would be great if someone could help me or give me some advice what I could do. Ellen -------------- next part -------------- An HTML attachment was scrubbed... URL: