OBiTALK Community

General Support => Installation and Set-Up (Devices) => Topic started by: giqcass on April 05, 2014, 09:33:31 PM

Title: Bought a Raspberry pi to go with my OBi
Post by: giqcass on April 05, 2014, 09:33:31 PM
I bought the CanaKit Raspberry Pi model B with clear case and USB Power Supply.   I'm thinking about throwing incredible PBX  (http://nerdvittles.com/?p=8178)on there.  I've got an Obi110 and a Obi202 I'll hook up to it.  Just waiting on delivery.  This should hopefully provide weeks of tinkering fun.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: drgeoff on April 06, 2014, 11:37:21 AM
I recommend a different link - http://nerdvittles.com/?p=8222.  You start by installing raspbx (http://www.raspberry-asterisk.org/) and then add the verdvittles extras.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: giqcass on April 06, 2014, 07:37:02 PM
I'll check that out. I see they also talk about the  BeagleBone Black.  LOL maybe I should have paid a little extra for that.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: Ostracus on April 08, 2014, 07:17:47 AM
For what you're aiming for the Raspberry PI should be enough.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: giqcass on April 15, 2014, 01:48:48 PM
I had no issues getting raspbx on the PI but Incredible PBX is giving me errors.  It tries to create a new Asterisk folder.  I went through the whole thing twice.  Each time with a fresh install of raspbx.  I'm not sure what I could be doing wrong unless I just typed something incorrectly.  It appears relatively simple.  I used the suggested link from drgeoff.

I installed raspbx a third time without the nerd upgrades and I am currently exploring the basic options.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: drgeoff on April 15, 2014, 03:15:29 PM
I've only done it twice but didn't have any issues.  Install raspbx to the SD card, boot from the card. Then

cd /
wget http://incrediblepbx.com/incrediblepbx11-raspbx.gz
gunzip incrediblepbx11-raspbx.gz
chmod +x incrediblepbx11-raspbx
./incrediblepbx11-raspbx
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: giqcass on April 15, 2014, 08:52:18 PM
I'll have to give it another try.  Those are the commands I used.

EDIT: Here are the things I did differently this time.
1)I ran the Rapbx update before the Incredible Pbx installer.
2)I ran the commands from SSH rather then entering them directly via a keyboard attached to the PI.
I don't know what made the difference but the whole thing worked flawlessly this time.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: giqcass on April 22, 2014, 11:26:10 PM
Lenny does not seem to be working for me.  When I looked through the logs I noticed it was dialing a sip Uri.
2233435945@rentpbx.mundy.org  I thought Lenny actually ran on the box itself.  I'll need to check into that a little more.

Anyway I didn't want to actually register an extension on the system yet since I am only experimenting and I am currently using all 4 SP slots. So I created a Voice Gateway and added the following to my Obi.  This is the default setup with the in bold text added.

Physical interfaces
>>>>>>>>>>>>>Phone port 1
>>>>>>>>>>>>>>>>>>>>>>>> DigitMap
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|911|**0|***|#|##|**70(Mli)|**8(Mbt)|**81(Mbt)|**82(Mbt2)|**1(Msp1)|**2(Msp2)|**3(Msp3)|**4(Msp4)|**00(Mvg8)|**9(Mpp)|(Mpli))

Physical interfaces
>>>>>>>>>>>>>Phone port 1
>>>>>>>>>>>>>>>>>>>>>>>> OutboundCallRoute
{([1-9]x?*(Mpli)):pp},{(<##:>):li},{(<#:>):ph2},{(<**70:>(Mli)):li},{(<**82:>(Mbt2)):bt2},{(<**81:>(Mbt)):bt},{(<**8:>(Mbt)):bt},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**3:>(Msp3)):sp3},{(<**4:>(Msp4)):sp4},{(<**9:>(Mpp)):pp},{(Mpli):pli},{(<**00:>(Mvg8)):vg8}

This gives me the option to dial **00 and and send a number through the Raspberry PI.  I changed the digit map on the Voice gateway to (xx.|*xx) so star codes would work on the raspberry pi such as *61 for the time of day. I tried **5 but it seems to conflict with some other rule.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: Usetheforceobiwan on April 23, 2014, 04:00:25 AM
Quote from: giqcass on April 06, 2014, 07:37:02 PM
I'll check that out. I see they also talk about the  BeagleBone Black.  LOL maybe I should have paid a little extra for that.

BBB are damn near impossible to find, much less at list price.  If you think the RasPi will not have enough under the hood eventually, go ahead and place your order for the BBB now as it will take at least 8 weeks to get to you.  After you get the BBB, use the RasPi for video projects/experiments with the BBB used for RasPBX.  
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: drgeoff on April 23, 2014, 07:05:53 AM
Quote from: giqcass on April 22, 2014, 11:26:10 PM
I tried **5 but it seems to conflict with some other rule.
I'm sure I read somewhere that **5 is hardcoded into OBis.  Adding a device to OBiTALK?

http://www.obitalk.com/obinet/pg/obhdev/add?nxtstep=2
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: azrobert on April 23, 2014, 10:04:10 AM
Quote from: giqcass on April 05, 2014, 09:33:31 PM
I bought the CanaKit Raspberry Pi model B with clear case and USB Power Supply.   I'm thinking about throwing incredible PBX  (http://nerdvittles.com/?p=8178)on there.  I've got an Obi110 and a Obi202 I'll hook up to it.  Just waiting on delivery.  This should hopefully provide weeks of tinkering fun.


I couldn't let giqcass have all the fun, so I bought a Rasp PI on sale at Newegg for $38.
http://www.newegg.com/Product/Product.aspx?Item=9SIA4641E08083&nm_mc=EMC-GD042314&cm_mmc=EMC-GD042314-_-index-_-Item-_-9SIA4641E08083

You can buy a Rasp PI for $35, but with the free shipping this is 3-4 dollars cheaper.

I already have a 5v power supply from an old router, an SD card and a USB WiFi adapter, so all I need is an enclosure.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: drgeoff on April 23, 2014, 05:23:55 PM
Quote from: azrobert on April 23, 2014, 10:04:10 AM
I already have a 5v power supply from an old router..
Over the last two years I have more than 2000 posts on the RPi forum, the majority of them in the Troubleshooting section.  A very significant fraction of people's problems turn out to be an inadequate power supply.  Those originally intended as mobile phone chargers are particularly bad.  Also, even if the supply itself is OK, some of the aftermarket USB to micro-USB cables drop too much voltage because they are too thin, too long or use wet string instead of copper.  Checking that the voltage between TP1 and TP2 is at least 4.75 and preferably not more than 5.3 is the first thing to do if getting no or erratic operation. 
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: azrobert on April 23, 2014, 06:21:40 PM
drgeoff,

Thanks for the info.

I just ordered the PI today, so I haven't tested it.
It's a 5V 2.0 amp power supply from a Buffalo router, so I think its high quality.
The problem is it has a barrel connector.
I've been thinking about buying a PI for awhile, so I converted the PSU using a USB to Micro USB cable.
I might have problems because the cable is cheap.
I have the female part of the barrel connector.
Would it be easy to solder it to the PI?

As you can see I'm super cheap and don't want to spend $10 for a PSU. LOL
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: giqcass on April 23, 2014, 08:32:22 PM
So far the best feature of the Raspberry PI as a PBX has been AsteriDex.  I don't think I have mentioned this before but I have been legally blind since August of last year(not completely blind though).  AsteriDex let's me dial 411 and say the name of the person I want to call.  Having my own dial by name directory is just incredible since I can't see the phonebook on my telephone without a magnifying glass.

I think the next feature I want to get figured out is outbound faxing.  I send very few faxes.  Maybe 1 or 2 per year but I plan to get that set up soon because you never know when you might need it.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: drgeoff on April 24, 2014, 07:42:23 AM
Quote from: azrobert on April 23, 2014, 06:21:40 PM
drgeoff,

Thanks for the info.

I just ordered the PI today, so I haven't tested it.
It's a 5V 2.0 amp power supply from a Buffalo router, so I think its high quality.
The problem is it has a barrel connector.
I've been thinking about buying a PI for awhile, so I converted the PSU using a USB to Micro USB cable.
I might have problems because the cable is cheap.
I have the female part of the barrel connector.
Would it be easy to solder it to the PI?

As you can see I'm super cheap and don't want to spend $10 for a PSU. LOL

There are several options.

1.  If the USB to micro-USB cable looks weedy (is that term understood your side of the pond?) then just use a short length of it with the wanted micro-USB plug.  If necessary extend that with a length of decent weight twin core.

2.  You can fairly easily solder a short length of twin core to the underside of the RPi.  The two ground legs of the RCA video out phono socket are an easy place for the negative.  Positive side to the end of F3 nearest the edge of the board.  Solder your barrel connector to that twin core.  (I was taught that the sex of a coaxial connector is defined by the centre pin.)

3.  The GPIO header (the double row of pins) has pins where you can take 5 volts supply in or out of the board.  However that point is on the circuitry side of F3 (a poly-silicon self resetting fuse) so you you don't have the little bit of protection from mishaps that provides.

4.  You can feed power in via the full size USB sockets.  PSUs don't come with cables with the appropriate type of USB plug to do that.  However if you are using a powered USB hub, many of those (in blantant disregard of USB specs) do feed power out of the socket that connects to the host device.  Many people power their RPis that way.

Whatever DIY you do, make absolutely sure before applying power that you have the polarity and voltage correct.  The RPi's tend to be not very forgiving of mistakes.  Also, if you are ever tempted to connect things to the GPIO lines, those are also quite fragile with no buffering from the chip internals.  Mistakes there frequently take out more than just the abused GPIO and make the RPi a write-off.

Two more things which almost no-one knows before they purchase a RPi:

a.  The USB implementation has some issues which means that some USB devices don't (and probably never will) work as well as they do when used with a PC or Mac.

b.  Bus powered USB devices which take a lot of current (eg hard drives) can be a problem if the RPi is conventionally powered (via the micro-USB socket or other input on the 'non-circuitry' side of F3).  Irrespective of the capability of the PSU, the F3 fuse mentioned above limits the total current which can be supplied to the RPi itself and any peripherals plugged into its USB sockets.  Flash drives, normal keyboards, mice, most Wi-Fi adaptors are OK.  Things like illuminated keyboards, keyboards with built-in USB hubs, hard drives without their own supplies etc may not be.  Use a powered hub with those.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: azrobert on April 24, 2014, 11:56:29 AM
drgeoff,

I really appreciate your comments.
I looked up the meaning of weedy and this cable is definitely weedy.

My Pi shipped today and I should get it Monday or Tuesday.
I found this picture of a Pi:
http://i.imgur.com/DRFtN.jpg
I don't know if this Pi is the current version.

I see the large contacts by the phono socket.
I was thinking using the positive and negative contacts by FD3 (upper left by the Micro USB connector).
Is this OK?
There is an open space on the board to the right where I can super glue the barrel connector.
Hopefully it will fit an open case like this:
http://www.amazon.com/Kootek-Transparent-Clear-Raspberry-Enclosure/dp/B00E8CB0XC/ref=sr_1_19?ie=UTF8&qid=1398360618&sr=8-19&keywords=raspberry+pi+case
Anyway, this is going to be my last option.

When I built this cable I didn't want to deal with soldering thin wires.
I exposed the USB contacts and soldered the female barrel connector to the contacts.
I checked the polarity about 3 times.
I will check again before using it with the Pi.
I did some reading last night and this is turning into a learning experience.
They recommend a .75 AMP PSU for the Pi.
My PSU is almost 3 times that at 2 AMP.
More power is not a problem, the device will only draw what's needed.
Again, is this correct?
My cheap cable will have more resistance, so less power will get to the device.
I decided not to use my WiFi adapter, reducing the power requirement.
I'm not going to use any peripherals on the Pi.
I will use software apps to update/monitor the Pi, further reducing power req.
See: http://www.dslreports.com/forum/remark,29175362
Hopefully my PSU will work with the above.
Any faults with my logic?

I have another option and might try this first.
I have a tablet that I only use when we travel.
It has a 5v 1.5 AMP PSU.
It's about twice as heavy as a cell charger and the cable is shorter and about 50% thicker than the cable I'm using above.
I could use this PSU with the Pi and use above PSU with the tablet.
I tried and it does recharge the tablet.

Thanks again!

Title: Re: Bought a Raspberry pi to go with my OBi
Post by: drgeoff on April 24, 2014, 02:58:29 PM
1.    That is an old board, just like my two delivered May/June 2012.  Since 18 months ago they all have mounting holes.  However the current ones are very similar to the picture.

2.  The four relatively large plated through holes with FD3 in their midst are all connected to the metal casing of the micro-USB connector.  My resistance measurements suggest there is a diode between those and the negative supply.

3.  Although there are no components in the area you mention, there are vias which are only protected by varnish.  You need to be sure there is no possibility of that protection being damaged and a via coming into contact with any metallic part of the barrel connector.

4.  As you appear to realise, it is preferable to use the existing micro-USB connector.  Resistance is proportional to length so even a weedy cable can be OK if kept short.

5.  Your 2 amp supply is fine.  The RPi just takes what it needs. A PSU that has a massive current rating can be a problem as some don't regulate well when very lightly loaded.  But your one is not in that ballpark.

6.  A combination of ssh (using eg the putty program) and a web browser is entirely adequate for initial configuration and day to day updates of RasPBX.  If you are using wired ethernet (rather than Wi-Fi) you don't even need to attach a keyboard/monitor at all if your router can tell you the address assigned by DHCP.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: giqcass on April 25, 2014, 01:57:15 AM
Once again I am having installation issues.  I thought I might share the problem and solution.  I tried the one click install for Wolfram Alpha.  I don't know what the deal is but the system decided to save the installation files incorrectly.  For instance
wget http://nerd.bz/w8HCDF  saves the file as w8HCDF instead of using the file name.  As a result I had enter each link into a browser to find the actual file locations then download them and unzip them manually.  I eventually got it working after a lot of manual tinkering.  ;D

So far the system seems stable.  I may use the PI for my primary outgoing if it continues it's solid performance. 
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: drgeoff on April 25, 2014, 04:04:52 AM
Quote from: giqcass on April 25, 2014, 01:57:15 AM
Once again I am having installation issues.  I thought I might share the problem and solution.  I tried the one click install for Wolfram Alpha.  I don't know what the deal is but the system decided to save the installation files incorrectly.  For instance
wget http://nerd.bz/w8HCDF  saves the file as w8HCDF instead of using the file name.  As a result I had enter each link into a browser to find the actual file locations then download them and unzip them manually.  I eventually got it working after a lot of manual tinkering.  ;D

So far the system seems stable.  I may use the PI for my primary outgoing if it continues it's solid performance. 
Strange.  I didn't have any of those issues when I tried Wolfram Alpha a couple of months ago.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: giqcass on April 25, 2014, 03:19:53 PM
Quote from: drgeoff on April 25, 2014, 04:04:52 AM
Strange.  I didn't have any of those issues when I tried Wolfram Alpha a couple of months ago.
Despite my troubles the hardest part of the setup...........
Coming up with a good question to ask Wolfram Alpha. lol
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: azrobert on April 27, 2014, 10:21:51 AM
drgeoff,

My Raspberry Pi was delivered on Saturday, 2 days ahead of schedule. I already flashed my SD card with Raspbx, so I was up within minutes using the PSU from my tablet.

I then tried my homemade cable and it was too weedy. My router could see Raspbx, but I couldn't login. I took your advice and reduced the length of the patch cable from 40 inches to 5. I cut off the barrel connector from the PSU and soldered the wires together. I slide a piece of black irrigation tubing over the patch and it almost looks like a real cable. It now works perfectly. I even got my wireless adapter working, so now the only cable to the Raspberry Pi is from the power supply.

I would have never thought of reducing the length of the patch cable, so THANK YOU soooo much!

Title: Re: Bought a Raspberry pi to go with my OBi
Post by: drgeoff on April 29, 2014, 06:46:24 AM
Have fun and when you want to temporarily try something different, remember that you only need to pop in another SD card.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: azrobert on May 02, 2014, 09:05:12 AM
I finally got my Raspbx configured. I tested comparing SipSorcery and the GV callback apps on Raspbx. I used Phonerlite to connect to SipSorcery or Raspbx. Both used the same IPComms DID. I measured the time it took to ring a phone connected to a 2nd GV number and I used a stopwatch app on a tablet to measure the elapsed time. The times varied from call to call. Here are the rough numbers.

SipSorcery - Consistently under 5 seconds
Phyton GV - Approx 8 seconds
PHP GV - Approx 9 seconds

I am routing the DID thru SipSorcery and then to Raspbx. I did it this way so I could use the same DID for both SipSorcery and Raspbx. I should be able to cut a few milliseconds off the above times if I route the DID directly to Raspbx. To eliminate any possible problem with my wireless adapter, I remove it and hard wired Raspbx to my router. I got similar numbers.

I'm using IncrediblePBX and I did an upgrade, so the software is current on Raspbx. I ran a Speed Test on my network and got 32 Mbps download and 19 Mbps upload.

If nothing changes I will be using SipSorcery (NOT Raspbx) and CircleNet for backup. I'm still hoping the Asterisk community will devise a Hangouts solution.

giqcass or anybody else,

Can you time the Raspbx GV callback app and post the times you're getting?

Thanks
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: noobee on May 19, 2014, 10:22:53 AM
Quote from: giqcass on April 05, 2014, 09:33:31 PM
I bought the CanaKit Raspberry Pi model B with clear case and USB Power Supply.   I'm thinking about throwing incredible PBX  (http://nerdvittles.com/?p=8178)on there.  I've got an Obi110 and a Obi202 I'll hook up to it.  Just waiting on delivery.  This should hopefully provide weeks of tinkering fun.


Hey Giqcass -
Do you have any step-by-step guide to install Incredible PBX on RasPi? and also connection layout in reference to Obitalk and DECT phone. Is there any way to continue using Google Voice to make free calls with this set up? I am trying to follow nerdvittles blog, but being newbie, I am struggling.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: drgeoff on May 19, 2014, 10:30:09 AM
Quote from: noobee on May 19, 2014, 10:22:53 AM
Quote from: giqcass on April 05, 2014, 09:33:31 PM
I bought the CanaKit Raspberry Pi model B with clear case and USB Power Supply.   I'm thinking about throwing incredible PBX  (http://nerdvittles.com/?p=8178)on there.  I've got an Obi110 and a Obi202 I'll hook up to it.  Just waiting on delivery.  This should hopefully provide weeks of tinkering fun.



Hey Giqcass -
Do you have any step-by-step guide to install Incredible PBX on RasPi? and also connection layout in reference to Obitalk and DECT phone. Is there any way to continue using Google Voice to make free calls with this set up? I am trying to follow nerdvittles blog, but being newbie, I am struggling.
Are you struggling with the whole RPi thing or only the Incredible PBX installation?

Did you start at the link I gave in the second post of this thread?

What exactly is your question about OBiTALK and DECT phone?
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: giqcass on May 19, 2014, 11:24:22 AM
I used the link provided by  drgeoff.  The initial flashing to the card gave me a little trouble but Piwriter finally got me going.  I did have some issues with the Nertvittle part as well but it eventually worked.  For me personally I couldn't get it working with direct keyboard and mouse attached.  What worked was using SSH to control it over the network.  I had some times when the process appeared to stop.  In reality it was just going very slowly without any on screen input.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: NoHomePhone on May 20, 2014, 06:40:40 PM
Hello All,

I am new here, but I too have a Raspberry Pi and an Obi202.  Not sure how I will go about this all but I am exploring the fascinating extra options.  I like some of these ideas here.  I am not quite sure what capabilities the Obi202 can offer versus the benefits of having a Raspberry Pi aiding it with Asterix/PBX.

I am setting this up for an older family member who was tired of paying full price for homephone and getting mostly robodialers and telemarketers, not to mention they have limited mobility and don't want to feel obligated to pick up the phone.  I currently have the Obi hardwired to the Demark point in the electrical room for whole house distributed VoIP, it's perfect because they don't even know the difference and can use the their existing phones, and it has a battery backup as well, and they have their cell phones too.  I am currently using all the boring default settings though so far.  I know the Obi has the inboundcallroute and the autoattendant, but maybe I would be better off with the Raspberry Pi in the Mix.  I am interested in a setup where it doesn't ring at all unless the caller meets acceptable rules.

Example:
Anonymous/Blocked/Hidden/1-8xx's/overseas/spoofed CID's
Would get directed to a audioclip "This number does not accept Blocked CallerIDs or Solicitations", and then if its a human have them press 5 to leave a voicemail.  

I saw a great RasberryPi Obi project someone did a while ago but it never made it off kickstarter, their domain name was resold and they don't appear to be following up; The project never made it beyond the demo video (linked below).  Banana-phone ( hxxp://http://www.raspberrypi.org/banana-phone/ )

@giqcass That Asteridex sounds really handy =), I am sure it would be useful around our home too.  Is it like bluetooth or cellular voice dialing where you have to accentuate and pronounce everything odd ways or multiple times? =)  A bit off topic but you might find Vinux or RaspberryVi distros useful, they are build to aid people with limited vision capabilities, Vinux has been handy around here.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: MikeHObi on May 20, 2014, 07:16:42 PM
Quote from: NoHomePhone on May 20, 2014, 06:40:40 PM
Hello All,

I am new here, but I too have a Raspberry Pi and an Obi202.  Not sure how I will go about this all but I am exploring the fascinating extra options.  I like some of these ideas here.  I am not quite sure what capabilities the Obi202 can offer versus the benefits of having a Raspberry Pi aiding it with Asterix/PBX.
...
 I am interested in a setup where it doesn't ring at all unless the caller meets acceptable rules.
...

The only real benefit you gain with adding a RasberryPi to the obi you have is that you can add call treatments on your side rather than relying on the call treatments available from your voip service.  If you add a FXO port adapter to the Obi then you can use it to bridge the POTS line and give it call treatments you would otherwise not be able to have.

If you are using voip right now, your voip provider is likely able to provide most of what you want.  I know that both Anveo and Callcentric have resonable call treatments available.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: NoHomePhone on May 20, 2014, 08:45:35 PM
Hello MikeHObi,

We currently have a POTS/PSTN line, but will be cancelling it and going VOIP only, current provider is FreePhoneLine.ca but looking at anveo/callcentric as you suggested;  Tthey appear to have what lacks with FPL; FPL doesn't seem to have any call screening process. It's basically a blocklist with no wildcard support or screening process that I can find in the webui.  I can turn forwarding on and off or check voicemail, but what can you expect for $0 dollars a month.  Currently only paid $50 to get a SIP account (lifetime usage across Canada, no monthly or connection fees), next step is pay $25 to port our landline number but it may go to another provider =).  I am still fiddling and doing research.  It sounds like the raspberry might be a bit overkill for a single voip line.  I guess I'll see what fancy plugins asterix, and see if it's something I may toy with after I get a permanent line configured.  Our main goal was to give the monthly bill the boot, since we mostly use cellphones, but the price difference is so minuet that the superior call filtering, and peace of mind is worth the few dollars a month.  It looks like a lot of it can be done through the Obi, to a lesser degree.  The last thing I need is to come home and find out "The nice man at microsoft called and fixed our computer" or something equally frustrating.

Thanks for the input and suggested Voip providers

~NPH
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: azrobert on May 20, 2014, 10:35:24 PM
The OBi can do a lot of what you want. You can route 10 or 11 digit CID's to the Phone Port. 800 numbers and everything else can be routed to a different destination. Some examples of the other destination are:

A voicemail service, like GoogleVoice. All inbound calls can be routed to VM. You can change the VM message.

You can connect an answering machine on port #2 of your OBi202 and route these calls there.

Your Raspbx.

If you require a prompt like "Enter X to leave a message", you can 1st route these calls to the OBi AA. Then the AA can route the call to the Other Destination. You can change prompts, but the problem with the AA is you can't change the function.

1=Continue the call
2=Make a new call
3=Enter a callback number

You can change the prompt to " Enter 1 to leave a message", but if the caller mistakenly entered a 2 the OBi would expect the caller to enter a new number. You could setup the OBi to route the call to the desired destination no matter what the caller did.

I never setup prompts in Asterisk, but there are plenty of examples on the Web. It might be easier to set this up in your Raspbery Pi. I think Callcentric has this function.

Title: Re: Bought a Raspberry pi to go with my OBi
Post by: giqcass on May 21, 2014, 02:15:12 AM
Raspberry pi is probably an overkill for most people.  It's a great piece of hardware for hobbyist. The Asterdex feature is useful but you do need to speak clearly for it to work.  If it doesn't like what you say the first time it just hangs up on you.

Callcentric has a nice telemarketer block function.  I used the Auto Attendant to screen calls before I started using Callcentric but it's a little bit more of a pain in the butt creating a whitelist on the Obi.  Both the Obi and Callcentric will let you use wildcards.

I'm checking out Vinux and RaspberryVi as you suggested.

Here is what happened to Banana phone.
https://www.facebook.com/TheBananaPhoneProject
QuoteHello Project Followers,

I am sorry to announce, but the Banana Phone Project has stopped development as of last month. The field of phone technology and human call validation is rife with patents; market entry without a lot of potential infringement would be difficult, if not impossible.

I am pushing my coding towards other equally as worthy projects, and cannot continue this endeavor any longer.

I thank you all from the bottom of my heart for your support and encouraging messages. They meant the world to a guy who was just starting of his software engineering career (in a national competition, no less).

The world has not seen the last of my code.

- Alex Ruiz
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: noobee on May 21, 2014, 05:18:17 AM
Quote from: drgeoff on May 19, 2014, 10:30:09 AM
Quote from: noobee on May 19, 2014, 10:22:53 AM
Quote from: giqcass on April 05, 2014, 09:33:31 PM
I bought the CanaKit Raspberry Pi model B with clear case and USB Power Supply.   I'm thinking about throwing incredible PBX  (http://nerdvittles.com/?p=8178)on there.  I've got an Obi110 and a Obi202 I'll hook up to it.  Just waiting on delivery.  This should hopefully provide weeks of tinkering fun.



Hey Giqcass -
Do you have any step-by-step guide to install Incredible PBX on RasPi? and also connection layout in reference to Obitalk and DECT phone. Is there any way to continue using Google Voice to make free calls with this set up? I am trying to follow nerdvittles blog, but being newbie, I am struggling.
Are you struggling with the whole RPi thing or only the Incredible PBX installation?

Did you start at the link I gave in the second post of this thread?

What exactly is your question about OBiTALK and DECT phone?

I started with Raspbx installation, which I guess worked well.. but first of all, i have a basic question as to as a home phone user what are the most prominent uses of this set up - RasPi, IncrediblePBX, Obi110 connected to DECT phone? I am a hobbyist and would like to try new things, but I would be delighted to know the nice features that I can explore.

I would like to see the connection diagram and also how RasPi connects to Obi110 (if it does) and then to DECT phone (if it does).

I started with Raspbx then went on with installing IncrediblePBX but as of now, when I boot on RasPi connected to my TV as monitor, there's no display on Component as well as HDMI.  I tried reformatting and reimaging SD card with IncrediblePBX but no display.  I did get the display at the time of initial install of IncrediblePBX and enabling Hylafax. But not sure what went wrong in between.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: drgeoff on May 21, 2014, 06:49:26 AM
1. The RPi and OBi110 connect by Ethernet, preferably each being hard wired to your router but Wi-Fi is also possible as per one of azrobert's posts above. The DECT phone plugs into the 110's PHONE socket. Your POTS line, if you have one, goes into the 110's LINE socket.

2. The RPi does not have component output. You mean "composite".

3. There is a risk of corrupting the contents of the SD card if power is removed before an RPi OS is properly shut down. When re-imaging be sure to follow all the instructions for whichever method you use.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: azrobert on May 21, 2014, 07:40:07 AM
Wifi was very easy to install. I just followed the answer for FAQ on wifi.
http://www.raspberry-asterisk.org/faq/#wifi

I think it's a cleaner install with the adapter. I had the Pi hard wired before I bought a case and the cable seemed huge compared to the Pi board. The adapter I have is on the RPI.ORG's approved list, so maybe I got lucky.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: noobee on May 21, 2014, 09:56:14 AM
Quote from: drgeoff on May 21, 2014, 06:49:26 AM
1. The RPi and OBi110 connect by Ethernet, preferably each being hard wired to your router but Wi-Fi is also possible as per one of azrobert's posts above. The DECT phone plugs into the 110's PHONE socket. Your POTS line, if you have one, goes into the 110's LINE socket.

2. The RPi does not have component output. You mean "composite".

3. There is a risk of corrupting the contents of the SD card if power is removed before an RPi OS is properly shut down. When re-imaging be sure to follow all the instructions for whichever method you use.

I tried re-formatting and reimaging... Write was successful, but no luck. I will try JUST re-imaging.

In regards to RPi and Obi connection. Is that like below
Router > RPi
Router > Obi

Both are connected to Router but not directly, is that correct?
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: NoHomePhone on May 21, 2014, 10:21:33 AM
So great to see their is such an active, friendly  & knowledgeable community on ObiTalk Forums =).  

@azrobert, Thanks that maybe the best short term solution for me while I do some reading .  I could easily call route all suspicious numbers to the 2nd phone port with an answering machine.  That way we don't miss anything potentially important and I can have a custom audio greeting with desired effect.  Definitely added to my list of potential options.

@giqcass, Thanks for the Asteridex & Banana Phone info.  It's a shame I bet the patents for defeating robodialers are owned by the robodialer manufactures too, so they could push for them to not exist.  It's a doable project though so maybe something similar will resurface.  You may still need to do your own adjustsments in Vinux for cursor size or system text, but the screen reader and other stuff work great, the screenreader voice can be a bit bothersome (like microsoft sam narrating window titles, every tab, button or box you click, ect,. there are some adjustments that can be made to the voice like pitch, speed, pronunciations), depending on your needs it maybe a trade off.  Orca Screenreader is free, nicely integrated into the OS, and great for someone who can't shell out major money for similar windows software, or doesn't want to have to constantly pay for updates.  

@noobee, double check your /boot/config.txt make sure you still have the right monitor settings, also that you aren't overclocked too much, some people release images with settings that were right for them personally.  I know overclocking too much also causes errors in the SD card filesystem.  I  also never stop hearing about how a great PSU makes all the difference, can you ping/ssh into it, wonder if it's just thee screen turning off, or if that's just a symptom of another underlying problem?  You might have to re-image your SD card. =S

Modem ----> Router (Ethernet port1)---->RaspberryPi
                  Router (Ethernet port2)---->Obi
                                                           |
                                                           |
                                                          Line-In (PTSN)

They talk over IP addresses, they are both just mini computers, you would have to assign in the PBX a the virtual extension to the Obi IP address, and the Obi may need the PBX's IP in the config somewhere.  I am not sure where or what the option is called as I have no experience installing a PBX yet, but it is just using your router to communicate between the two devices.  My understanding is the Raspberry becomes sort of like a server (or a middleman for the Obi and your voice provider) and it just forwards them to the Obi over the network.  There is no special cabling though as far as I know.

I managed to finish work early today so I will be testing out some of these suggestions =).    If all goes well, I shouldn't have to tell the "Duct Cleaning" telemarketers, "I only have Canadian Geese" or "My ducks are cleaning themselves in the pond", they really hate that *laughs*  

Thanks for the great info everyone, & good luck Noobee.

~NPH
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: drgeoff on May 21, 2014, 11:04:14 AM
Quote from: noobee
I tried re-formatting and reimaging... Write was successful, but no luck. I will try JUST re-imaging.

In regards to RPi and Obi connection. Is that like below
Router > RPi
Router > Obi

Both are connected to Router but not directly, is that correct?
What computer OS and what app are you using to write to the SD card? What image are you writing?

I suggest you don't install Hylafax yet. Get the phone basics working and then install Hylafax only if you really need it.

You can connect the RPi's Ethernet port to the OBi110's Ethernet port. But as they won't be connected to anything else that is not a particularly useful setup.  :)
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: noobee on May 21, 2014, 01:10:43 PM
Quote from: drgeoff on May 21, 2014, 11:04:14 AM
Quote from: noobee
I tried re-formatting and reimaging... Write was successful, but no luck. I will try JUST re-imaging.

In regards to RPi and Obi connection. Is that like below
Router > RPi
Router > Obi

Both are connected to Router but not directly, is that correct?
What computer OS and what app are you using to write to the SD card? What image are you writing?

I suggest you don't install Hylafax yet. Get the phone basics working and then install Hylafax only if you really need it.

You can connect the RPi's Ethernet port to the OBi110's Ethernet port. But as they won't be connected to anything else that is not a particularly useful setup.  :)

I have Windows 8 and using SDFormatter to QUICK format SD card and then Win32diskimager to write IncrediblePBX image (raspbian7-incrediblepi-12-02-2013.img) file.

I probably took out the SD card without proper shut down and likely caused SD card image to get corrupt.

Any work around to start over with "clean slate"?

I am still trying to understand how can I use this set up to keep Obi+GV free calling "alive" and add other useful features of PBX and what those features are..
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: azrobert on May 21, 2014, 01:50:02 PM
Noobee,
Does your router see Raspbx?

Anyway, 2 must have apps are PuTTY and WinSCP.

Using PuTTY you can display the Raspbx console on your Windows monitor.

WinSCP makes it very easy to edit files on Raspbx. You can find examples on your Windows browser and then do a copy and paste to a Raspbx file. You can also use it to transfer files in both directions between Windows and Raspbx.

http://winscp.net/eng/download.php

You can setup the GV callback method (non-XMPP) in Raspbx to get free calls.
http://tech.iprock.com/?p=9784

There is also a PHP script available that does the same. I think it's a little easier install than the Python script. I have both installed and my limited testing showed the Python script runs about a second faster than the PHP script.

The pygooglevoice-0.5 source needs 2 updates. There are instructions out there to run a patch after the Python install. I updated the source using WinSCP before doing the Python install.

Edit:
If you decide to install pygooglevoice-0.5 let me know. I will post the two source changes you need.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: noobee on May 21, 2014, 02:07:18 PM
Quote from: azrobert on May 21, 2014, 01:50:02 PM
Noobee,
Does your router see Raspbx?

Anyway, 2 must have apps are PuTTY and WinSCP.

Using PuTTY you can display the Raspbx console on your Windows monitor.

WinSCP makes it very easy to edit files on Raspbx. You can find examples on your Windows browser and then do a copy and paste to a Raspbx file. You can also use it to transfer files in both directions between Windows and Raspbx.

http://winscp.net/eng/download.php

You can setup the GV callback method (non-XMPP) in Raspbx to get free calls.
http://tech.iprock.com/?p=9784

There is also a PHP script available that does the same. I think it's a little easier install than the Python script. I have both installed and my limited testing showed the Python script runs about a second faster than the PHP script.

The pygooglevoice-0.5 source needs 2 updates. There are instructions out there to run a patch after the Python install. I updated the source using WinSCP before doing the Python install.

Edit:
If you decide to install pygooglevoice-0.5 let me know. I will post the two source changes you need.


I do have PuTTY and downloaded WinSCP just now per your recommendation.

I formatted and reimaged SD card using Raspbx impage couple of times, but for some reason when I connect Rpi to the my router via LAN cable, that particular port does not light on. I switched ports with my other working Obi Port, but only when connected to Rpi, it does not light up.  My display also does not show any thing.  IP Scan does not show RPi on my network (obviously as the Router port light is off).

Not sure if my SD card is corrupt and if I could do something about it (apart from formatting). Not sure what is overclocking and if my Rpi has caused any damage due to my consistent tries. My earlier attempt to RaspBX was good and display was working, it was also accessible via SSH (PuTTY).  But now, nothing seems to work!
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: drgeoff on May 21, 2014, 03:10:33 PM
Quote from: noobee on May 21, 2014, 01:10:43 PM

I have Windows 8 and using SDFormatter to QUICK format SD card and then Win32diskimager to write IncrediblePBX image (raspbian7-incrediblepi-12-02-2013.img) file.

Because the US perversely uses the illogical month-day-year format I cannot tell if that image is from December or February! Why does that matter?

Over the two years that the RPi has been manufactured some different makes of RAM chip have been used.  Each time there is a new one the RPi firmware needs to be updated to support it. RPi firmware is only on the SD card; it is never permanently transferred to the RPi board.  When you boot a RPi it is using the firmware that is in the .IMG file that was flashed to the SF card. So an old image might not work on a newer RPi.

You said that Raspbx DID work.  Go back to trying that.

A rough check that the image file has been written OK is to look at the resulting SD card in Windows. It should appear  as a drive of size about 60 Mbyte and containing about a dozen files.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: noobee on May 21, 2014, 03:36:23 PM
How to I recover the possibly corrupt SD card? I guess that's the issue. I have no display and ethernet port when connected to working router has no light.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: drgeoff on May 21, 2014, 04:19:29 PM
Quote from: noobee on May 21, 2014, 03:36:23 PM
How to I recover the possibly corrupt SD card? I guess that's the issue. I have no display and ethernet port when connected to working router has no light.
Use Win32DiskImager to write Raspbx to the SD.  If Win32DiskImager can 'see' the card in your computer you shouldn't need to format the card beforehand but it never does any harm.  If you do use SDFormatter, it is a good idea to select the option "Size Adjustment".
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: noobee on May 21, 2014, 06:53:26 PM
I opened the wooden case for my RPi and noticed that it had only Power LED on (red) and none of the other lights were ON.  I changed the Power Supply to the one with 850mA output, still the same.

I am now trying with NOOBS, let's see where it goes.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: azrobert on May 21, 2014, 07:57:07 PM
The other lights only come on when the Raspberry Pi ethernet port is connected to a router. My Raspberry Pi is connected via wifi and the red LED is the only one on. I think this is normal for you since your router doesn't detect your Raspberry Pi.

Edit:
The above is not totally correct. The 5th led (green) flashes for a fraction of a second approximately every 6 to 20 seconds when the Pi is idle. During a re-boot it flashes constantly.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: drgeoff on May 22, 2014, 02:55:37 AM
The green ACT LED (beside the audio socket) is the equivalent of the hard disk activity LED which used to be on the front of all PCs. If during the first 20 seconds it flashes briefly just once or not at all then the RPi is not booting. Period.

Possible reasons for above:
1. Bad power. (PSU or cable)

2. Wrongly written or damaged file system on SD card.

3. Firmware on SD card is too old to support the RAM chip on the RPi.

4. Card socket fingers not making contact with all pads of the SD card. Physical damage, bent fingers, curved SD card etc.

If you cannot get it to boot anything I suggest you read the stickies in the troubleshooting section of the forum at raspberrypi.org.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: Usetheforceobiwan on May 22, 2014, 04:04:53 AM
I bought my son a Pi last Christmas.  Bought the Canna(?) Kit which included a pre-loaded image on a Micro SD card that came with a cute little SD card adapter with a raspberry on it.  Spent hours trying to get it to boot the first time and I thought I had purchased a bad board.  Turns out the cute little SD card adapter was defective as I finally had the thought to try it in another device.  Got out another SD card adapter, stuck it in the Pi and it booted pronto. 
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: noobee on May 22, 2014, 05:42:35 AM
Quote from: drgeoff on May 22, 2014, 02:55:37 AM
The green ACT LED (beside the audio socket) is the equivalent of the hard disk activity LED which used to be on the front of all PCs. If during the first 20 seconds it flashes briefly just once or not at all then the RPi is not booting. Period.

Possible reasons for above:
1. Bad power. (PSU or cable)

2. Wrongly written or damaged file system on SD card.

3. Firmware on SD card is too old to support the RAM chip on the RPi.

4. Card socket fingers not making contact with all pads of the SD card. Physical damage, bent fingers, curved SD card etc.

If you cannot get it to boot anything I suggest you read the stickies in the troubleshooting section of the forum at raspberrypi.org.

Here's the news, I switched the SD card and everything went well. I noticed that the SD card had the minor damage on the contacts end.  I used another card sitting around - 8GB - Class 4 and installed Raspbx image and followed all the remaining steps as mentioned on nerdvittles 8222 page.

Now that Raspbx and Incredible PBX are installed and my RPi is accessible via SSH, wondering what should be my next steps for setting up Google Voice + Obi = Free Incoming/Outgoing calls.  ::)
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: corporate_gadfly on May 22, 2014, 05:55:19 AM
Quote from: noobee on May 22, 2014, 05:42:35 AM

Now that Raspbx and Incredible PBX are installed and my RPi is accessible via SSH, wondering what should be my next steps for setting up Google Voice + Obi = Free Incoming/Outgoing calls.  ::)
You could follow instructions on this blog (https://hobbiesbytwinclouds.wordpress.com/2014/02/07/how-to-make-and-receive-call-using-google-voice-without-xmpp/). I used it to run Asterisk off of a Linux VPS (hosted outside my network obviously).
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: azrobert on May 22, 2014, 07:56:32 AM
Twinclouds installed Asterisk differently, so I wouldn't use his guide. A lot of what he does doesn't apply.
Look at his patch. I would screw up trying to key that in.
I would start with the following. Hope I didn't forget anything.
   

cd /root
wget http://pygooglevoice.googlecode.com/files/pygooglevoice-0.5.tar.gz
tar zxvf pygooglevoice-0.5.tar.gz

Use WinSCP to apply the fixes.
You can copy and paste the following code.
Go to folder pygoooglevoice-0.5/googlevoice

Update gvoice.py with:
       galx = re.search(r"name=\"GALX\"\s+type=\"hidden\"\s+value=\"(.+)\"", content).group(1)

Update settings.py with:
LOGIN = 'https://accounts.google.com/ServiceLogin?service=grandcentral&continue=https://www.google.com/voice'

Then do the install:
cd pygooglevoice-0.5
python setup.py install

I don't have time to do more.
Follow this to configure Freepbx:
http://tech.iprock.com/?p=9784

Edit:
You are replacing a line of code in each of the above modules.

Title: Re: Bought a Raspberry pi to go with my OBi
Post by: corporate_gadfly on May 22, 2014, 09:59:23 AM
I didn't mean to say follow twinclouds guide in its entirety. Sorry for the misunderstanding. The general concepts still apply.

A somewhat more recent pygooglevoice can be found here (https://github.com/MikeRixWolfe/pygooglevoice). I had good luck with it, out of the box (so to speak).

@azrobert: Insert code button might help with the formatting. E.g.some nifty code lines
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: Usetheforceobiwan on May 22, 2014, 10:38:36 AM
Quote from: noobee on May 22, 2014, 05:42:35 AM

Now that Raspbx and Incredible PBX are installed and my RPi is accessible via SSH, wondering what should be my next steps for setting up Google Voice + Obi = Free Incoming/Outgoing calls.  ::)

Setup your Obi as an extension and FXO link per the articles here:  http://tech.iprock.com/?p=6431 and here:  http://tech.iprock.com/?p=3208.  When I figured out how to do both, I thought it was the coolest thing ever :)
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: azrobert on May 22, 2014, 11:04:38 AM
Quote from: corporate_gadfly on May 22, 2014, 09:59:23 AM

@azrobert: Insert code button might help with the formatting. E.g

Done.
Thanks for the suggestion.
Title: Re: Bought a Raspberry pi to go with my OBi
Post by: noobee on May 24, 2014, 07:03:26 PM
I followed nerdvittles closely and carefully and everything is up and running!!!

I am stuck while setting up hylafax. Added Trunk (Callcentric and Google Voice) exclusively for receiving faxes, but while adding inbound route, I don't see Custom Destination "Fax" in the list, as shown by nerdvittles..

Am I missing anything?