INSTRUCTIONS FOR CONNECTING ASTERISK BASED PBX WITH SUPERVOICE TRUNK

01.07.20 01:58 AM By Irene


1. Access to the Supervoice service and registration of the Supervoice Trunk is provided using TLS protocol.

 

2. Create a new SIP Trunk in your PBX using the following peer details replacing the fromuser and username field with your id and the password that was sent from you via SMS:

 

context=from-trunk

type=peer

srvlookup=yes

host=sip.supervoice.eu

port=5061

fromuser=id00XXXXX

username=id00XXXXX

secret=PASSWORD

qualify=yes

nat=no

insecure=port,invite

dtmfmode=inband

canreinvite=no

disallow=all

allow=alaw&ulaw&g729

trustrpid=yes

sendrpid=pai

transport=tls

 

The register String should be the following:

 

tls://id00XXXXX:[email protected]:5061/id00XXXXX

 

3. Login to your asterisk CLI and type:

 

sip show registry

 

if the registration is successful the PBX will return an output similar to the one below:

 

Host                              dnsmgr    Username    Refresh State    Reg.Time

 

sip.supervoice.eu:5061    N            10000105     Registered        Mon, 06 Feb 2017 16:21:28

 

Finally, Asterisk PBX should have TLS enabled and as it works as a client it should not check the authenticity of TLS certificates.

 

So you need to go to the file /etc/asterisk/sip_ custom.conf to enter the following lines to save it and perform "core reload" from Asterisk CLI.

 

tlsbindaddr=[::]:5061

tlsdontverifyserver=yes

tlsclientmethod=tlsv1

tlsenable=yes

tlsprivatekey=/etc/asterisk/keys/default.key

tlscertfile=/etc/asterisk/keys/default.crt

Irene