Installation of IraVoice ( Debian 12 )

Requirements -

  • Ira-dependency repo deb

  • IraVoice deb

  • IraBase deb

  • IraCluster deb 

 

Install Ira-dependency repo deb

Download the latest packages of ira-dependency-repo deb from the deb packages link


Packages Link Attached below

Install the ira-dependency repo deb using the following command 

sudo apt install ./ira-dependency-repo_XXXXX.deb

Then run perform an 

apt-update

Install irabase deb

Download and Install the ira-dependency repo deb using the following command 

sudo apt install ./irabase-XXX.deb

Generate the nkeys 

Create NKeys (required for authentication in NATS)

You need to generate two pairs of nkeys, one for the normal user and one for the system user. The system user is used by iracluster, whereas, rest of the applications use the normal user for authentication.



To generate nkeys, go to this link and download the package that is relevant to your operating system


https://github.com/nats-io/nkeys/releases/tag/v0.4.7


Example,

Go to the above link and download nkeys-v0.4.7-linux-amd64.zip, unpack the zip and you will find the nk binary which you can copy to /usr/local/bin 

Then, execute the below command to generate pair of nkeys


nk -gen user -pubout

We need to execute the above command twice, once for a pair of keys for system user and another for normal user.

The string starting from S is the seed key and starting from U is the public key.

Set one pair for nats_public_key, nats_seed_key and the other pair for sys_nats_public_key and sys_nats_seed_key in the later steps.


For more information on nkeys, check this link https://docs.nats.io/running-a-nats-service/configuration/securing_nats/auth_intro/nkey_auth

Make the common_config.json and iravoice.json

Example of a common_config.json.

{
    "cluster_id": "<cluster_id>",
    "nats_conf": {
      "nats_url": "nats://<ip-address>:4222",
      "nats_public_key": "<nats-public-key>",
      "nats_seed_key": "<nats-seed-key>",
      "sys_nats_public_key": "<sys-nats-public-key>",
      "sys_nats_seed_key": "<sys-nats-seed-key>"
    },
    "enable_log": true,
    "app_log_level": "info",
    "app_detailed_log": false
}

Example of Iravoice.json

{                                                                                             
    "max_dial_ports": 1000,                                                                   
    "cpa_init_tone": "tone_stream://%(1,0,1)",
    "call_scheduler":"iracallscheduler"                                           
}

Once these files are ready, Place these files into the /usr/local/epi/conf directory

Install Iravoice deb

Install the iravoice repo deb using the following command 

sudo apt install ./iravoice_XXXXX.deb

Installing IraCluster 

Requirements - 

  • Iracluster deb 

  • Irapass.json 

  • License PEM file 


Place the license pem file into the /usr/local/epi/conf directory and also prepare the irapass.json file in the same directory.


Example of irapass.json 


{
        "use_old_rsa_protocol": false,
        "site_private_key_file":"/usr/local/epi/conf/<license-pem-filename>.pem"
}

Download Iracluster Deb from the packages link 

Install the iracluster deb using the following command 

sudo apt install ./iraclusterXXXXX.deb

Verification

Make sure that irapass has received the licences and also make sure that iravoice log file says it is ready to accept calls. 


Optional
Installation of Ira-Automate- A signalling application for IraVoice 

Requirements 

  • Common_config.json located in /usr/local/epi/conf/ directory 

  • IraBase 


You can download and install the Ira-Automate Deb from the link below. 

IraAutomate