Slashdot Mirror


GSM and Asterisk Integration?

MistabewM asks: "Would it be possible to place a GSM transceiver within you home that can be tied into Asterisk in a way that would allow you to place calls from your GSM phone across your VOIP connection or though your local landline? An analogous system is being introduced on airplanes that will allow passengers to use their GSM phones in flight. I feel this would be a fantastic hack and could even be scaled up to provide large areas of free GSM service."

9 of 156 comments (clear)

  1. Free? by gtrubetskoy · · Score: 4, Insightful


    Sounds like an interesting hack indeed, but I'm not sure how it will result in a free service. Someone needs to administer the Asterisk server, pay for electricity, the bandwidth to the server and lastly don't you need a license to use GSM frequencies? If you'd be willing to cover all these costs, then sure, it will be free. :-)

  2. Uh, 2 seconds with Google... by EvilMagnus · · Score: 4, Informative

    , the search term 'GSM Picocell' turns up these guys who appear to sell a GSM-to-IP product exactly like that.

    --
    -EvilMagnus
  3. Already covered by kevin_conaway · · Score: 4, Interesting

    See here

  4. Yeah, sure. It's possible to do this by ReformedExCon · · Score: 4, Informative

    But you're looking at some serious changes to your wireless hub. If you are asking, I doubt you'd be able to do it.

    That's not meant as a slight, but just the truth. It's a very difficult thing to set this up. It requires more than just running some daemon. It also requires authenticated sessions on the servers. If you aren't Ericsson, you aren't getting into the network.

    That isn't to say that you couldn't implement this yourself. Skype, for example, doesn't run across the traditional long distance network, but it provides long distance phone service over the Internet. If you are willing to dive headlong into a long and arduous development plan, sure, you could implement this.

    Don't hold it against me that I'm not holding my breath for this, though.

    --
    Jesus saved me from my past. He can save you as well.
  5. Short and long answer. by wfberg · · Score: 5, Interesting

    Short answer: No.

    Long answer: The main restriction here is the use of restricted frequencies, and some "minor" technical hurdles.

    while it's perfectly OK for you, as a lone individual, or a company, to operate a GSM handset, operating a base-station is another thing. First, you'd have to get your greedy paws on a basestation, then you'd have to make your own SIM cards (hijacking calls that should be on the regular operator's network is highly illegal (DMCA); there's all sorts of (broken) encryption going on), and you'd have to outfit phones with 2 SIM cards, switching from your own network to the other (which entails switching the phone off and on again) every time you enter or leave the building. (This is doable, but annoying).

    Now, assuming you don't want the legal hassles of paying for multi-million dollar cell network licenses, you could operate a "pirate" basestation on some frequencies that aren't used too much where you're at (you'd have to measure it through first).

    In other words; you're better off investing in a handset that does both GSM and DECT(or whatever you use for domestic wireless phones in the US) or even both GSM and WiFi. There aren't many of those (though BritishTelecom has announced their model), but there should be some out there.

    --
    SCO employee? Check out the bounty
  6. Yes, but it costs a *lot*. by Zarhan · · Score: 4, Informative

    Ok, the equipment:

    One microcell, coming right up.

    Ok, simple omnidirectional antenna.
    Then you need the base station that drives that antenna.
    Then you need the base station controller that drives the base station.
    Then you need MSC (mobile switching center...) that actually gets the calls from the base station and forwards it accordingly to an SS7 network.
    Then you need to set up Asterisk to talk to that SS7 network and grab your phone calls.
    And all the rest of the components that I have forgotten.. In effect, you need to become a full-blown telco, albeit with only one base station.

    All the equipment can be bought from Nokia, Ericcson or other mobile network vendors. Price range is not for home users.

    Then, you need to get a license to operate that basestation. 900/1800/1900MHz is a licensed band. This *might* be quite easy if the location is just a single cell.

    Anyway, then you need to apply for Mobile Network Identifiers (MCC + the rest) to distinguish yourself as a GSM operator, so when you search for networks with your GSM phone, you'll see your own network as one.

    Then you need to get a SIM Card to use with your phone that has access to your network. (Or, you may be able to set it to "open for all" mode).

    (Of course, if the question was simply if you can reaac GSM network via Voip and want to set up the gateway your own home, then that's easy, just plug a phone or wireless modem to your Linux box....but I was under the impression that this meant the ability to use your GSM phone as a "cordless phone".)

    With landline this is of course easy, all you need is a modem waiting for calls..

  7. Cheap Calling by xtrvd · · Score: 4, Interesting

    I have an 'unlimited incoming local calls' feature on my phone, combined with 100 minutes (practically nothing) of outbound calling per month. I pick up my mobile, dial a number, punch in an extension, and then hang up. This process takes about 5-6 seconds.
    After I hang up, my home phone number calls my mobile phone and gives me an IVR (Voice Menu) where I can dial out using VOIP long-distance.

    The call is free, because it looks like an incoming call from my home, but I'm using my home line to make the VOIP call outbound from my cell phone.

    This is my trick; the only inconvenience is that you have to dial a number BEFORE you make outbound calls, but I can live with it. =)

    -Jesse

    1. Re:Cheap Calling by xtrvd · · Score: 4, Informative

      The parts of my extensions conf that you need to know are:
      exten => 123,1,Answer
      exten => 123,2,System(/etc/asterisk/callme)
      exten => 123,3,Hangup

      The 'callme' file is a bash script that looks alittle something like this:

      #!/bin/bash
      sleep 4
      umask 000
      (
                      echo "Channel: IAX2/loginname:password@provider/8885555555"
                      echo "Callerid: Magic"
                      echo "MaxRetries:1"
                      echo "RetryTime: 10"
                      echo "WaitTime: 30"
                      echo "Context: internal"
                      echo "Extension: 444" ; the extension of the IVR
                      echo "Priority: 1"
      ) > /var/spool/asterisk/outgoing/callme.call

      That will wait for 4 seconds before calling the mobile so that you have a chance to hang up after you press '123' after calling in.

      In my example, you use an IVR with the number '444' which forwards to the IVR 'callme-menu' presented as soon as you pick up your cell, here's the part from my extensions for that:

      [callme-menu]
      exten => s,1,Answer ; Answer the line
      exten => s,2,DigitTimeout,5 ; Set Digit Timeout to 5 sec
      exten => s,3,ResponseTimeout,7 ; Set response timeout to 7 sec
      exten => s,4,Wait(2) ; Wait two seconds to make sure speaker is at ear
      exten => s,5,Background(what-are-you-wearing) ; Greeting call
      exten => _9X.,1,SetCallerID(JESSE)
      exten => _9X.,2,Background(pls-wait-connect-call)
      exten => _9X.,3,Goto(outbound,${EXTEN:1},1)
      exten => _9X.,4,Congestion

      I hope this helps you. I think I'll put it on the wiki this weekend so more people can screw the system.

      =)

      -Jesse

  8. Re:Use some imagination, all you naysayers. by maokh · · Score: 4, Informative
    Instead of taking apart a GSM cell phone, check out some of the (low cost) GSM modules instead.


    Sparkfun.com sells an OEM GSM module kit for $229 which contains antenna, module, PCB, camera, and USB interface. This OEM module, a Telit GM862, has full GSM and GRPS functionality, including audio and camera phone functions. You could easily adapt it to an astrisk system.


    I purchased one of these kits a while back, and you have enough functionality to create your own home-brew cellular phone.