1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TIPS Viva WAZO: A New Beginning

Discussion in 'Developers' Corner' started by rjaiswal, Apr 23, 2016.

  1. amygrant

    amygrant
    Expand Collapse
    Guru

    Joined:
    Apr 4, 2010
    Messages:
    131
    Likes Received:
    3
    [EDIT: This was user error on my part but I am leaving post in case someone runs into same problem.

    The error was my colleague set up the virtual machine and I misunderstood him. I thought he had set up a base Debian8 install when in reality he was using the 64-bit XiVO Server ISO. Therefore, I should been IncrediblePBX13-XiVO2.sh but instead was using IncrediblePBX13-XiVO1.sh ]

    **** Original Post Below *****

    I have just tried the beta installer script IncrediblePBX13-XiVO1.sh on a newly built Debian8 amd64 VM. The install is unable to complete because I get this in the xivo error log when trying to start the xivo-agentd service:

    Code:
    2016-06-29 03:50:57,790 [19645] (ERROR) (xivo_agent.bin.agentd): undefined environment variable XIVO_UUID
    2016-06-29 03:50:57,790 [19645] (CRITICAL) (root): XIVO_UUID environment variable is not set
    Traceback (most recent call last):
      File "/usr/bin/xivo-agentd", line 5, in <module>
        main()
      File "/usr/lib/python2.7/dist-packages/xivo_agent/bin/agentd.py", line 129, in main
        set_xivo_uuid(config, logger)
      File "/usr/lib/python2.7/dist-packages/xivo/config_helper.py", line 143, in set_xivo_uuid
        config['uuid'] = get_xivo_uuid(logger)
      File "/usr/lib/python2.7/dist-packages/xivo/config_helper.py", line 138, in get_xivo_uuid
        raise UUIDNotFound()
    The log entry is made when executing the python script which causes all the subsequent xivo components to fail.
     
    #261 amygrant, Jun 29, 2016
    Last edited: Jun 29, 2016
  2. wardmundy

    wardmundy
    Expand Collapse
    Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    12,595
    Likes Received:
    1,870
    @amygrant: What did you use for your hostname??

    1. Try this for /etc/hosts:
    Code:
    # XIVO: FILE AUTOMATICALLY GENERATED BY THE XIVO CONFIGURATION SUBSYSTEM
    # XIVO: DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    # XIVO:
    127.0.0.1    localhost
    127.0.1.1    xivo.incrediblepbx.com    localhost.localdomain    xivo
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    
    2. And this for /etc/hostname:
    Code:
    xivo
    3. Tips on setting UUID here: http://askubuntu.com/questions/132079/how-do-i-change-uuid-of-a-disk-to-whatever-i-want
    4. Reboot and then run the installer.

    You might want to hold off for a day or so and let @Sylvain Boily comment on this as well.
     
  3. wardmundy

    wardmundy
    Expand Collapse
    Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    12,595
    Likes Received:
    1,870
    #263 wardmundy, Jun 29, 2016
    Last edited: Jun 29, 2016
  4. amygrant

    amygrant
    Expand Collapse
    Guru

    Joined:
    Apr 4, 2010
    Messages:
    131
    Likes Received:
    3
    @wardmundy - This was user error on my part. I have updated my original post to describe the issue in case someone else makes the same mistake I did. Thank you for your response and suggestions.
     
    wardmundy likes this.
  5. wardmundy

    wardmundy
    Expand Collapse
    Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    12,595
    Likes Received:
    1,870
    Added a check in the installer to verify that XiVO has not been previously installed when using installer #1. Already had the opposite in #2 and #3. Thanks.
     
  6. wardmundy

    wardmundy
    Expand Collapse
    Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    12,595
    Likes Received:
    1,870
  7. wardmundy

    wardmundy
    Expand Collapse
    Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    12,595
    Likes Received:
    1,870
  8. wardmundy

    wardmundy
    Expand Collapse
    Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    12,595
    Likes Received:
    1,870
    PortKnocker for XiVO Is Ready
    [​IMG]


    If you're unfamiliar with PortKnocker, it's your firewall safety valve when you lock yourself out of your server. It's also a handy tool for remote users to quickly gain server access without having to wait on updates to your firewall's whitelist. Original Nerd Vittles tutorial here.

    We've now ported this over to the XiVO platform and it has been incorporated into the latest Incredible PBX for XiVO installers.

    If you already have installed Incredible PBX for XiVO and don't have /root/knock.FAQ, you can add PortKnocker to XiVO with the following commands. After installation, you will find your PortKnocker credentials saved in /root/knock.FAQ. See the updated Incredible PBX for XiVO article for details.

    Code:
    cd /root
    wget http://incrediblepbx.com/portknocker-xivo.tar.gz
    tar zxvf portknocker-xivo.tar.gz
    rm -f portknocker-xivo.tar.gz
    ./portknocker-xivo.sh
    
     
    #268 wardmundy, Jul 1, 2016
    Last edited: Jul 1, 2016
  9. wardmundy

    wardmundy
    Expand Collapse
    Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    12,595
    Likes Received:
    1,870
    PPTP VPN for XiVO Is Ready

    Believe it or not, Microsoft introduced the Point-to-Point-Tunneling-Protocol (PPTP) with Windows 95. Back then we knew it as Dial-Up Networking. Suffice it to say that, in those days, PPTP was anything but secure. Unfortunately, the bad name kinda stuck. For the most part, the security issues have been addressed with the possible exception of man-in-the-middle attacks which are incredibly difficult to pull off unless you are a service provider or have access to the wiring closets of your employer. You can read the long history of PPTP VPNs on Wikipedia for more background. If you’re traveling to China or other democracy-challenged destinations, you probably shouldn’t rely upon PPTP for network security. If these security considerations aren’t applicable in your situation, keep reading because PPTP VPNs are incredibly useful and extremely easy to deploy for an extra layer of VoIP and network security in most countries that have severe wiretapping penalties in place.

    [​IMG]

    PPTP VPNs also provide home-away-from-home transparency to home office network services. Simply stated, with a PPTP VPN, you get a private IP address on the XiVO PBX that lets you do almost anything you could have done sitting at a desk in the home office. There’s more good news. Fifteen years ago, we paid Cisco thousands of dollars for hardware boxes known as PPTP VPN Concentrators. You can still find some of them on eBay. For history buffs, a little company in California originally built these boxes. I think we paid about $3,000 for them. One year later Cisco bought the company and promptly doubled the price. Today, you can Do It For Free™ using your existing XiVO server platform. Today’s one-minute setup runs circles around the hoops we jumped through 15 years ago to install PPTP VPNs. Once deployed, they revolutionized mobile computing.

    PPTP VPNs probably won't work on most OpenVZ platforms such as Wable and ImpactVPS. But they work great on virtual machines such as CloudAtCost and Digital Ocean. For a quick-and-dirty back door into your server, a PPTP VPN is hard to beat. Here's how to set one up on your XiVO PBX using 128-bit encryption. Make up a very obscure username and password in the first two lines below:

    Code:
    PPTPUSER=somebodyspecial
    PPTPPASS=someverysecurepassword
    apt-get -y update
    apt-get -y install pptpd
    sed -i 's|#ms-dns 10.0.0.1|ms-dns 8.8.8.8|' /etc/ppp/pptpd-options
    sed -i 's|#ms-dns 10.0.0.2|ms-dns 8.8.4.4|' /etc/ppp/pptpd-options
    echo "localip 172.16.16.100" >> /etc/pptpd.conf
    echo "remoteip 172.16.16.101-199" >> /etc/pptpd.conf
    echo "$PPTPUSER pptpd $PPTPPASS *" >> /etc/ppp/chap-secrets
    /etc/init.d/pptpd restart
    # show logged in PPTP users
    last | grep ppp
    Connect to your PPTP server from a Windows or Mac in the usual PPTP way. Once connected, you will be assigned an IP address in the range of 172.16.16.101-199. You then can access your XiVO PBX on the following IP address: 172.16.16.100.
     
    #269 wardmundy, Jul 1, 2016
    Last edited: Jul 1, 2016
  10. Dr. Jeff Kover

    Dr. Jeff Kover
    Expand Collapse
    New Member

    Joined:
    Apr 21, 2016
    Messages:
    5
    Likes Received:
    0
    Is the NeoRouter server automatically installed when going through the Xivo/Incredible PBX setup? And for that matter are all of these features already installed when going through the setup?
     
  11. wardmundy

    wardmundy
    Expand Collapse
    Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    12,595
    Likes Received:
    1,870
    @Dr. Jeff Kover NeoRouter Client is automatically installed, not the Server component. You activate the NeoRouter client by connecting to an existing NeoRouter Server with the command: nrclientcmd. NeoRouter Server setup tutorial here. More Server tips here: http://nerdvittles.com/?p=6725. If you don't want to set up a NeoRouter server, then use the PPTP VPN covered above.

    All the other features listed are automatically installed except for DISA configuration and Voice Recognition activation, both of which are covered in the tutorial.
     
    #271 wardmundy, Jul 2, 2016
    Last edited: Jul 2, 2016
  12. wardmundy

    wardmundy
    Expand Collapse
    Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    12,595
    Likes Received:
    1,870
    Incredible PBX A La Carte Installers for XiVO (coming soon)

    Code:
    The following Incredible PBX components are optional.
    Most cannot be installed later if you change your mind!
    We strongly recommend that you install all of them now.
        Install Yahoo News [n]/y? YES
    Install Weather by ZIP [n]/y? NO
         Install AsteriDex [n]/y? YES
        Install Superfecta [n]/y? NO
         Install Reminders [n]/y? YES
         Install BlackList [n]/y? NO
       Install Conf Bridge [n]/y? YES
       Install SQLite3 CDR [n]/y? NO
           Install CSV CDR [n]/y? YES
    Install NeoRouter VPN [n]/y? NO
          Install PPTP VPN [n]/y? YES
      Install DISA support [n]/y? NO
       Install PortKnocker [n]/y? YES
    
    PIONEERS: For those using the XiVO ISO with a dedicated server or VirtualBox or VMware ESXi, we have a new (experimental) version 2 installer (IncrediblePBX13-XiVO2.sh) that adds AlaCarte installation as well as Pico TTS and PPTP VPN support. Just follow the existing tutorial for your platform of choice. When the install begins, simply choose the features you wish to install.
     
    #272 wardmundy, Jul 5, 2016
    Last edited: Jul 6, 2016
  13. krzykat

    krzykat
    Expand Collapse
    Guru

    Joined:
    Aug 2, 2008
    Messages:
    1,035
    Likes Received:
    203
    Is there any sort of UCP now or planned in the future? I think the idea that FPBX was going with a login for a user to get access to their CDR's, Call settings, and I can only imagine in the future of adding Faxes, and SMS messages are the things that I really see as a game changer that I could get completely behind.
     
  14. wardmundy

    wardmundy
    Expand Collapse
    Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    12,595
    Likes Received:
    1,870
    Have you played with the XiVO Client? Just enable it as you create extensions. It runs circles around UCP. Just be sure your version of XiVO Client matches the version of XiVO you have installed.

    • search contacts and show their presence, phone status
    • make calls through your phone (the XiVO Client is NOT a softphone, it is complementary to the phone)
    • access your voicemail through your phone
    • enable call forwards, call filtering
    • show the history of your calls
    • list conference rooms and members
    • send faxes
    • show screen popups or open URLs when you receive/answer a call
    • list agents, queues, calls in queues
    • login/logoff, pause/unpause other agents (for supervisors)
    • listen/whisper to agents through your phone (for supervisors)
     
    #274 wardmundy, Jul 5, 2016
    Last edited: Jul 5, 2016
    krzykat likes this.
  15. krzykat

    krzykat
    Expand Collapse
    Guru

    Joined:
    Aug 2, 2008
    Messages:
    1,035
    Likes Received:
    203
    I guess the obvious answer here is "NOPE" - but based on what you just wrote, it looks like I'm going to be giving it a try. DO - spinning up another :)
     
    wardmundy likes this.
  16. wardmundy

    wardmundy
    Expand Collapse
    Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    12,595
    Likes Received:
    1,870
    Pico TTS for XiVO

    [​IMG]


    Thanks to the pioneering work of @steven, we've got PicoTTS up and running with XiVO now. It runs circles around Festival.

    To install it (64-bit platform only!):
    Code:
    cd /
    wget http://incrediblepbx.com/picotts.tar.gz
    tar zxvf picotts.tar.gz
    cd /root
    rm -f picotts-install.sh
    wget http://incrediblepbx.com/picotts-xivo.tar.gz
    tar zxvf picotts*
    rm -f picotts*
    cd pico
    dpkg -i libtts*
    
    To install it (32-bit platform only including RentPBX):
    Code:
    cd /
    wget http://incrediblepbx.com/picotts.tar.gz
    tar zxvf picotts.tar.gz
    cd /root
    rm -f picotts-install.sh
    wget http://incrediblepbx.com/picotts-xivo-i386.tar.gz
    tar zxvf picotts*
    rm -f picotts*
    cd pico
    dpkg -i libtts*
    
    To replace existing Festival voice prompts in Incredible PBX dialplan:
    Code:
    cp -p /etc/asterisk/extensions_extra.d/xivo-extrafeatures.conf /etc/asterisk/extensions_extra.d/xivo-extrafeatures-festival.conf
    sed -i 's|Festival(|agi(picotts.agi,|' /etc/asterisk/extensions_extra.d/xivo-extrafeatures.conf
    sed -i 's|")|",en-US)|' /etc/asterisk/extensions_extra.d/xivo-extrafeatures.conf
    /etc/init.d/asterisk reload
    
    To use it yourself, add dialplan code like the following:
    Code:
    exten => 777,1,agi(picotts.agi,"Please hold a moment while we retrieve some stuff.",en-US)
    Update: They've broken Pico TTS in the repos this afternoon so we've substituted an older 64-bit and 32-bit copies that work from our existing servers. Be sure to use the one that matches your architecture!
     
    #276 wardmundy, Jul 6, 2016
    Last edited: Jul 9, 2016
    hecatae likes this.
  17. wardmundy

    wardmundy
    Expand Collapse
    Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    12,595
    Likes Received:
    1,870
    PIONEERS: For those using the XiVO ISO with a dedicated server or VirtualBox or VMware ESXi, we have a new (experimental) version 2 installer (IncrediblePBX13-XiVO2.sh) that adds AlaCarte installation as well as Pico TTS and PPTP VPN support. Just follow the existing tutorial for your platform of choice. When the install begins, simply choose the features you wish to install.
     
    #277 wardmundy, Jul 6, 2016
    Last edited: Jul 6, 2016
  18. wardmundy

    wardmundy
    Expand Collapse
    Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    12,595
    Likes Received:
    1,870
  19. wardmundy

    wardmundy
    Expand Collapse
    Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    12,595
    Likes Received:
    1,870
    PIONEERS: First all-in-one Incredible PBX installer for XiVO is ready for some testing. Should work on any platform at any stage of installation, i.e. Debian 8 only, Debian 8 + XiVO installed, or Debian 8 + XiVO installed and configured. Both 32-bit and 64-bit architecture are now supported.

    NOTE: Be sure to follow the specific tutorial for the platform you plan to use. Different hosting sites have different quirks. Links are provided to the various tutorials below. All platforms are covered in last week's Nerd Vittles tutorial.

    Code:
    cd /root
    wget http://incrediblepbx.com/IncrediblePBX13-XiVO.sh
    chmod +x IncrediblePBX13-XiVO.sh
    ./IncrediblePBX13-XiVO.sh
    10 minute install on ImpactVPS using Debian 8 (64-bit) platform:

    [​IMG]

    10 minute install on VirtualBox using XiVO 64-bit ISO:

    [​IMG]

    12 minute install on VMware ESXi using XiVO 64-bit ISO:

    [​IMG]

    8 minute install on (new) $5 Vultr platform using Debian 8 (64-bit) platform:

    [​IMG]

    Forever to install on Cloud at Cost (almost free for a reason) using Debian 8 (64-bit); NOT RECOMMENDED:

    [​IMG]

    13 minute install on 512MB $5 Digital Ocean platform using (revised) Debian 8 tutorial:

    [​IMG]
     
    #279 wardmundy, Jul 10, 2016
    Last edited: Jul 12, 2016
    hecatae and rjaiswal like this.
  20. hecatae

    hecatae
    Expand Collapse
    resident hecatae

    Joined:
    Feb 7, 2014
    Messages:
    623
    Likes Received:
    148
    I chose them all, was that a good idea?
     

Share This Page