TIPS Raspberry Pi Network Issues

Discussion in 'PIAF 3 Add-Ons' started by wardmundy, Feb 28, 2016.

  1. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    14,351
    Likes Received:
    2,442
    UPDATED: 03/01/16

    For those that have been eagerly awaiting a Raspbian 8 build of Incredible PBX with Asterisk 13 for the Raspberry Pi 2 & 3 (only!), we're ready for a few pioneers. If you find a bug, please document it here.

    [​IMG]

    We wrestled with whether to release a traditional installer where you would create the base Raspbian image and then run an install script. However, the build time was nearly 3 hours after you had created the base Raspbian platform. There also were some gnarly issues with Raspbian 8 that required major changes to the previous Raspbian Wheezy installer, and we haven't had time to script all of the required changes. So we've returned to our previous methodology.

    Just download and unzip the Incredible PBX image (1.5GB) of your choice from SourceForge and burn it to a microSDHC card (8GB or larger and preferably Type 10). Then boot.

    2 IMAGES AVAILABLE: With and without GV OAUTH Support. Both include Incredible Fax installer.

    To burn the image to an SD card with Linux, use fdisk -l to identify the correct device, e.g. /dev/sdb. DON'T ERASE YOUR HARD DISK BY MISTAKE!! Then: dd if=incrediblepbx13-raspbian8.img of=/dev/sdb. Then: sync.

    Complete tutorials to create SD cards for Linux, Mac, and Windows available here.


    [​IMG]

    Startup instructions:

    1. Boot new SDcard image from Raspberry Pi 2 or 3.
    2. From display/keyboard connected to Raspberry Pi, login as pi with password: raspberry.
    3. Go through the automatic setup procedure and resize your SD card when prompted to do so.
    4. Write down the IP address of your RasPi. Reboot.
    5. Following reboot, log in using SSH/Putty from a remote PC. Username: root Password: password
    6. Complete setup steps by resetting all of your passwords at the prompts.

    Nerd Vittles tutorial: http://nerdvittles.com/?p=17094
    Google Voice OAUTH tutorial: http://nerdvittles.com/?p=14787 (Steps 8-10)

    Known bugs:

    None reported.

     
    #1 wardmundy, Feb 28, 2016
    Last edited: Mar 9, 2016
  2. jerrm

    jerrm Guru

    Joined:
    Sep 23, 2015
    Messages:
    414
    Likes Received:
    158
    Downloading now. May not get to it otherwise today, but will let you know. I was planning to come back to my Raspberry/PJSIP problems this week, so will be curious how this fares.

    I would eventually like to see the install script, or at least instructions. My preference for IPBX over RasPBX is knowing how the sausage is made more so than the additional features.
     
  3. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    14,351
    Likes Received:
    2,442
    @jerrm: There will be a Nerd Vittles tutorial early next week soon. Install script is probably a ways off. Fixing quirks on one image is fairly easy. Making it generic is considerably more difficult, but we'll get there eventually.
     
    #3 wardmundy, Feb 28, 2016
    Last edited: Feb 29, 2016
  4. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    14,351
    Likes Received:
    2,442
    Fax install is not yet working because of incompatibilities with Jessie so don't try it.

    Wireless networking works if you add your credentials to /etc/wpa_supplicant/wpa_supplicant.conf:
    Code:
    network={
    ssid="YourSSID"
    psk="YourSSIDpassword"
    key_mgmt=WPA-PSK
    scan_ssid=1
    }
    Then restart wlan0:
    Code:
    ifdown wlan0
    ifup wlan0
     
    #4 wardmundy, Feb 28, 2016
    Last edited: Feb 29, 2016
  5. jerrm

    jerrm Guru

    Joined:
    Sep 23, 2015
    Messages:
    414
    Likes Received:
    158
    No worries. Understand the effort needed for the script. Always appreciate the effort. This is a great step forward.
     
  6. RPi-Fan

    RPi-Fan Member

    Joined:
    Jun 8, 2014
    Messages:
    85
    Likes Received:
    13
    ZIP file checksum matches what is posted.

    Image burned to 16 GB card, read back, and compared / verified.

    PuTTy connects but immediately reports:

    Network error: Software caused connection abort

    Did you remember to enable root logins in /etc/ssh/sshd_config?:

    PermitRootLogin without-password -> PermitRootLogin yes

    Web interface comes up, but login password unknown.
     
  7. TirsoJRP

    TirsoJRP Member

    Joined:
    Jan 8, 2015
    Messages:
    84
    Likes Received:
    30
    RPi 3 is out, faster CPU and integrated wifi/bt. Time to play...:clap:
     
    wardmundy likes this.
  8. Martin Lunt

    Martin Lunt New Member

    Joined:
    Feb 28, 2016
    Messages:
    5
    Likes Received:
    4
    pjsip doesn't load automatically. Trying to load it from the CLI gives:
    [2016-02-29 09:40:59] WARNING[4989]: loader.c:553 load_dynamic_module: Error loading module 'pjsip': /usr/lib/asterisk/modules/pjsip.so: cannot open shared object file: No such file or directory
    [2016-02-29 09:40:59] WARNING[4989]: loader.c:1079 load_resource: Module 'pjsip' could not be loaded.
     
    wardmundy likes this.
  9. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    14,351
    Likes Received:
    2,442
    @RPi-Fan: Sorry about that. There was a problem with the SSH setup. Reworking it now. See first post for new download availability.

    @Martin Lunt: Will wrestle with this later today. Not addressed in 02/29 image which is uploading now. Thanks.
     
    #10 wardmundy, Feb 29, 2016
    Last edited: Feb 29, 2016
  10. RPi-Fan

    RPi-Fan Member

    Joined:
    Jun 8, 2014
    Messages:
    85
    Likes Received:
    13
    I downloaded the new version, but don't see any difference (PuTTY immediately aborts on an SSH connection).
     
  11. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    14,351
    Likes Received:
    2,442
    Did you follow the Startup Instructions in the tutorial at the top of the thread?? You can't originally boot and login from Putty. You first must login from the console as pi with password: raspberry.
     
  12. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    14,351
    Likes Received:
    2,442
    @Martin Lunt: Try this for PJsip.

    In Settings -> Advanced Settings, change the SIP Channel Driver entry to BOTH. Then in Settings -> Asterisk SIP Settings, go through the following steps in order. You'll have to click Submit after each of Steps #2, 3 and 4. Then finally click the red Apply Settings button. Restart Asterisk when you're finished: amportal restart. You then should be able to add a PJsip extension and connect to it on port 5061.

    [​IMG]

    UPDATE: We've now tested and confirmed that this solves the missing PJsip issue. This fix will be included in the March 1 image update. See first post for availability.
     
    #13 wardmundy, Feb 29, 2016
    Last edited: Mar 1, 2016
  13. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    14,351
    Likes Received:
    2,442
  14. Dave Gray

    Dave Gray Guru

    Joined:
    May 22, 2013
    Messages:
    146
    Likes Received:
    57
    Mine's on order. $DEITY only knows when it'll show up. But that's OK...
     
    wardmundy likes this.
  15. jerrm

    jerrm Guru

    Joined:
    Sep 23, 2015
    Messages:
    414
    Likes Received:
    158
    Were there any difference in the asterisk/pjproject builds from the Wheezy install script?

    As noted here, I had issues with PJSIP under the Wheezy version(enabled with the same steps at your post, three Pis, at least 6 build attempts, several SD cards, etc). The Jessie build seems OK so far(knock on wood).
     
  16. jerrm

    jerrm Guru

    Joined:
    Sep 23, 2015
    Messages:
    414
    Likes Received:
    158
    The UI in the Jessie version is markedly more responsive than Wheezy. I assume due to the updated Apache and PHP. I had noticed the difference before between Wheezy IPBX and Jessie RasPBX. Very glad to see the same improvement for IPBX now.
     
    wardmundy likes this.
  17. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    14,351
    Likes Received:
    2,442
    That section of the code is pretty much the same except added ldconfig after the pjproject build.
     
  18. jerrm

    jerrm Guru

    Joined:
    Sep 23, 2015
    Messages:
    414
    Likes Received:
    158
    I have to agree with the sentiment that ssh should be enabled by default. I acknowledge the security concerns, but the fact is many Linux builds have ssh enabled by default. The odds of a Pi being brought into the world on an open internet connection are pretty much nil, and the convenience of being headless is HUUUUUUUUGE.
     
  19. jerrm

    jerrm Guru

    Joined:
    Sep 23, 2015
    Messages:
    414
    Likes Received:
    158
    Also...

    The initial install script should prompt to change the "pi" user's password. As a sudoer with full rights, "pi" is effectively root with a very public default password.
     
    wardmundy likes this.

Share This Page