Search code examples
voipamazon-amirestcomm

How to properly set VoIP Innovations credentials in RestComm AMI?


I'm having troubles setting up the API username/password from VoIP Innovations in my RestComm AMI. I've followed the steps described here but the AvailablePhoneNumbers api call returns an empty list.

Then I accessed the instance via ssh and checked for the restcomm.conf file in the standalone folder. My VoiceRSS key was there but the not the VI credentials. I spent some time looking at the other files in $RESTCOMM_HOME and I found one of particular interest: $RESTCOMM_HOME/bin/restcomm/autoconfig.d/config-restcomm.sh

In that file the configVoipInnovations method call was commented and even if it wasn't commented it requires a third argument (the VI endpoint ID, which I'm not sure if it refers to the VI Endpoint Group ID or something else) that wasn't mentioned in the link above.

I also tried editing $RESTCOMM_HOME/standalone/deployments/restcomm.war/WEB-INF/conf/restcomm.conf directly with

<voip-innovations>
    <login>my VI Api username</login>
    <password>my VI Api password</password>
    <endpoint>my VI endpoint group id</endpoint>
    <uri>https://backoffice.voipinnovations.com/api2.pl</uri>
</voip-innovations>

But it didn't seem to work. The AvailablePhoneNumbers still returned an empty list.

What am I missing?


Solution

  • @nbermudezs,

    Sorry that you are having problems configuring Restcomm for Voip Innovations. When you are using Restcomm AMI, it already comes pre-configured with a default (Demo) Voip Innovation account that will automatically provision DIDs and allow you to choose an Area Code in the United States. Because the configuration script will automatically default to the pre-configured Voip Innovations account, modifying the restcomm.xml file will not work work as expected. Did you try to provision DID using the Admin UI?

    On the AMI, this is how to set your VI information

    Go to the directory /opt/telestax/restcomm/current/bin/restcomm

    edit the file restcomm.conf

    Go to the section below and fill out your VI account details. The must be set to PROVISION_PROVIDER='VI'

    # DID Provision provider variable declarations
    PROVISION_PROVIDER=''        # values: VI (VoipInnovation), BW (Bandwidth), NX (Nexmo), VB (Voxbone)
    #Username and password for all supported DID provision providers
    DID_LOGIN=''
    DID_PASSWORD=''
    # VoipInnovation Endpoint ID
    DID_ENDPOINT=''
    

    Save your changes

    You must restart Restcomm as follows

    • restcomm_stop
    • restcomm_start