VOIP on Nextcloud

I have no support/technical question and have seen the support category. (Be aware that direct support questions will be deleted.)

on

Which general topic do you have

Hello,

I’m kind of looking into VOIP because I want to be able to make free international calls on occasion. I’m also a little unclear on some things, is this SIP Trip Phone - Apps - App Store - Nextcloud a VOIP service for being able to make international calls?
Or is it something related to some kind of SIP configuration? Found out about SIP when I looked into 3CX. is this VOIP thing different from the Talk function video call in NextCloud? If you are using VOIP and FreePBX, I would like to hear about your experience

With Nextcloud Talk you can do audio/video calls inside your system.

If you want to call traditional phones you need ā€œVOIPā€ and phone numbers. This integration was briefly shown in the last ā€œTalk Munichā€ but I’m not aware of any public docs now - see NextCloud Talk Phone (SIP) for discussion.

SIP trip phone is a ā€œVOIP clientā€ running inside of Nextcloud (which makes more or less no sense in my eyes.. but who knows) you still need either a PBX or public provider offering you the connection with the phone network.

Have you heard of Linphone
do you have experience with it?

I’m also very interested in VOIP functionality.
Especially if you can make calls Nextcloud ↔ SIP.

So in order to make international calls, NextCloud needs a SIP? What is this for then - SIP Trip Phone - Apps - App Store - Nextcloud

There is some kind of SIP integration available, if you are using High Performance Backend for Talk, but I don’t know what exactly it does - I’ve failed to configure HPB to work without problems.

Has anyone here tried this already? SIP Trip Phone - Apps - App Store - Nextcloud

I have a SIP account, so no problem to use it. But I’d like to have some kind of easily configurable call-in function (people might join a Talk room calling to a specific number (SIP with a public number - just voice). Some other ā€œcompetitiveā€ WebRTC-based video call apps offer this (e.g.Cisco Webex). The easist way would be the identification via phone number in their profile which would be paired with a specific room.

Nextcloud Talk is an app that allows video/audio/text conversations with other people connected to your Nextcloud instance or to people connected to other federated Nextcloud instances. Unfortunately, due to its peer-to-peer traffic in video conferences, it can be used reliably only with about 5 conference participants. If you want more participants you are expected to install the HPB (High Performance Backend) which is developed by a third party (Struktur AG), includes a Signaling Server and a Selective Forwarding Unit (SFU) component that solves the bottleneck created by the peer-to-peer architecture by receiving a stream from each user and forwarding it to all participants. HPB has been ā€œopen-sourcedā€ but doesn’t come with detailed documentation on how to install it and, more importantly, it doesn’t offer the SIP dial-in and dial-out functionality without a SIP bridge that was created by the same company and is a proprietary, non-free program.

So, if you want to have only one-to-one video/audio/text conversations, Nextcloud Talk can handle them well. If you want to have video conferences, Talk still handles them well until you reach about 5 participants in a conference. For video conferences with more than 5 participants in regular circumstances (without special hardware and high-speed network connections) you will have to follow the cumbersome process of installing the HPB. And if you want to be able to call real phone numbers from inside Talk, or to have people call from their mobile phone to a conference room’s phone number and participate in a conference (the SIP ā€˜dial-out’ and ā€˜dial-in’ functionality), you will have to install the proprietary SIP bridge offered by Struktur AG, which, being proprietary, goes against the principles on which Nextcloud was founded and that motivated hundreds of developers to contribute to the project. As you probably know, ā€œproprietary softwareā€ is the opposite of ā€œfree and open sourceā€ software. The two are based on opposing principles, so, they are irreconciliable.

On the other hand, if you just want to add the SIP calling functionality to Nextcloud, in the sense of being able to make audio phone calls from inside Nextcloud to regular phones and the other way around, you can install a Nextcloud application like SIP Trip Phone, which is basically a SIP client in the form of a browser phone. To make real calls to real phone numbers with SIP Trip Phone you will obviously need to own a phone number acquired from a SIP provider like Telnyx, Localphone, Flowroute, Twilio, Vonage, etc. You can use any SIP provider you like but only very few of them allow direct connections from web applications that use SIP over WebSocket, like SIP Trip Phone. So, if you want to connect SIP Trip Phone directly to the SIP provider, only a few will allow it. For example, from the 5 providers mentioned above, only Telnyx allows it. This is why, the standard way of using SIP Trip Phone is to install Asterisk on your own server as explained in this guide, connect it to your SIP provider and then connect SIP Trip Phone to your Asterisk server. All respectable SIP providers allow their customers to connect their Asterisk servers to their account. In addition, with Asterisk you can add advanced PBX features to your calls, like IVR (Interactive Voice Response or ā€˜voice menu’), voicemail, queue management, music on hold, number blacklisting, call recording, audio conference calls, etc.

Of course, this implies that you have the time and patience to closely follow the instructions in the above mentioned Install Asterisk guide and in the Install SIP Trip Phone chapter.

SIP trip phone is a ā€œVOIP clientā€ running inside of Nextcloud (which makes more or less no sense in my eyes.. but who knows)

Voice over IP (VoIP) phones are of 3 types:

  • hardphones (harware phones that look exactly like regular phones but they are connected with UTP cables and RJ45 jacks to routers or adapters and use VoIP protocols to make and receive calls over the Internet)
  • softphones (software phones that act like hardphones, but you have to install them on your desktop/laptop/mobile before using them; a good example is the above mentioned Linphone)
  • browser phones (softphones that load in a browser, like any web page; their advantage is that you don’t have to install them on your device, since any device comes with a browser and you only need a browser to access them)

So, unlike a regular softphone that you have to install first on all the devices that you will be using, like your desktop, laptop, tablet, mobile phone, etc., SIP Trip Phone is a SIP client that you install once inside Nextcloud, then access it from anywhere in the world, with any device connected to the Internet. Even if it depends on Nextcloud and has no connection to Talk, the advantages offered by SIP Trip Phone are obvious.

VoIP phone calls are up to 70% cheaper than regular phone calls and international VoIP phone calls can cost even 90% less than regular phone calls. If you have a business with lots of phone calls this can add up each month. With SIP Trip Phone, Asterisk and a Telnyx number you can make calls within the US starting from $0.0050 per minute and receive calls with $0.0075 per minute or less and with a Localphone number you can make calls with $0.0060 per minute and receive calls with $0 per minute.

I forgot to mention: if you use Asterisk, all phone calls between extensions configured on your Asterisk server are free of charge. Also, since version 1.1.5, SIP Trip Phone has an integration with the Contacts app, in the sense that it lists all the contacts with voice-capable numbers and all the Nextcloud users with phone numbers that were not set up as private. In this way you can search through your contacts by name or role and you can call them with one click.

1 Like

Sorry if this counts as necro’ing, but can SIP Trip Phone be configured to work with FreePBX/IncrediblePBX? I don’t have just Asterisk installed by itself.

Would it be accurate to assume that many SIP/VoIP users may have managed Asterisk setup, instead of just Asterisk by itself?

Since FreePBX is basically Asterisk plus a graphical user interface, SIP Trip Phone should work with it and with any other Asterisk based system. But you will have to find the correct configuration by yourself since we don’t support this type of setup. And it can be very frustrating to configure FreePBX if you don’t know the precise steps. We only describe in our guide and offer general support for the best way of doing things: install Asterisk directly on your server, configure it by following the steps, connect Asterisk to your SIP provider and then connect SIP Trip Phone to Asterisk. In this way your VoIP system will have the smallest footprint and you will have total control over each aspect of it.

The reason why many sysadmins install FreePBX (or other similar software) + Asterisk instead of installing just Asterisk is that they wrongly believe Asterisk is hard to install and configure. Asterisk is really easy to install and configure if you follow the steps described in the above mentioned guide. That guide was written as a reaction against all the incomplete and misleading guides on that topic.

Does your guide cover support for SMS/MMS as well? Jusy curious, since I’d need those capabilities to justify making the switch to barebones Asterisk.

The above mentioned guide explains how to install and configure Asterisk to make it work with SIP Trip Phone for voice only conversations and with Roundpin for video/audio/text conversations, including video conferences. However, Roundpin is a standalone application, completely separate from Nextcloud. If we speak about Nextcloud applications only, then SIP Trip Phone can be used for voice only SIP calls, SMS Relentless can be used to send and receive SMS/MMS messages from Nextcloud and Pax Fax allows sending and receiving faxes inside Nextcloud.

SMS Relentless is completely separate from SIP Trip Phone. It needs a provider to connect to and then you can send and receive regular SMS/MMS messages in Nextcloud using the phone number that you rent from that provider. If you choose Telnyx as your provider, you can connect to your Telnyx account both SIP Trip Phone and SMS Relentless.

We intend to add SMS and fax capabilities to Roundpin and synchronize it with Nextcloud contacts, so as to have a single application with all the functionalities of the 3 mentioned Nextcloud apps, but this will require some more work.

To answer your question: you can configure Asterisk so that you can send and receive SMS messages through it, but since you always need a real phone number to send real SMS messages, and that number is rented from a provider like Telnyx, Plivo, Twilio, who also allows direct connections from SMS-sending applications via their API, there is no point in configuring Asterisk to have all the SMS messages pass through it instead of just configuring the application to send the SMS directly to the provider. So, for SMS the situation is different as compared with voice calls. For voice calls you have all the reasons to route your conversations via Asterisk, so that you can have all the features needed in modern telephony (IVR, call queues, music on hold, number blacklisting, call recording, etc.), while for SMS there is no good reason to route them via your Asterisk server, since they can be sent directly to your SMS provider, via secure HTTP requests, and then the provider sends them to their destination.