*CLI> manager show user verboice
username: verboice
secret: <Set>
ACL: no
read perm: system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate,agi,cc,aoc,test,security,message,all
write perm: system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate,agi,cc,aoc,test,security,message,all
displayconnects: yes
allowmultiplelogin: yes
Variables:
*CLI> manager show settings
Global Settings:
----------------
Manager (AMI): Yes
Web Manager (AMI/HTTP): No
HTTP Timeout (minutes): 60
TLS Enable: No
TLS Bindaddress: Disabled
TLS Certfile: asterisk.pem
TLS Privatekey:
TLS Cipher:
Allow multiple login: Yes
Display connects: Yes
Timestamp events: No
Channel vars:
Debug: No
[ Context 'verboice' created by 'pbx_ael' ]
'h' => 1. NoOp() [pbx_ael]
'_.' => 1. AGI(agi://localhost:19000,,) [pbx_ael]
...
*CLI> config list
...
chan_sip /etc/asterisk/sip.conf
chan_sip /etc/asterisk/sip_notify.conf
chan_sip /etc/asterisk/sip_verboice_channels.conf
chan_sip /etc/asterisk/sip_verboice_registrations.conf
...
- You need to have a directory for Verboice to place the audio files. This is usually /var/lib/asterisk/sounds but can be changed in {verboice_project_dir}/broker/verboice.conf. Verboice places its files in a subdirectory 'verboice' inside this directory (eg. /var/lib/asterisk/sounds/verboice). You can check what directory Asterisk is using by running:
verboice*CLI> core show settings
...
* Directories
-------------
Configuration file:
Configuration directory: /etc/asterisk
Module directory: /usr/lib/asterisk/modules
Spool directory: /var/spool/asterisk
Log directory: /var/log/asterisk
Run/Sockets directory: /var/run/asterisk
PID file: /var/run/asterisk/asterisk.pid
VarLib directory: /var/lib/asterisk
Data directory: /var/lib/asterisk
ASTDB: /var/lib/asterisk/astdb
IAX2 Keys directory: /var/lib/asterisk/keys
AGI Scripts directory: /var/lib/asterisk/agi-bin
The relevant line is the "Data directory".
Up to here are the default and minimal settings Verboice needs.
To configure a custom channel (using chan_dongle in your case), you also need:
- The channel configured in Asterisk properly. This varies with the type of channel, but you need to point it to a context which invokes the broker through AGI, with the channel id of the Verboice custom channel. For example:
dongle.conf
...
[defaults]
context=verboice-dongle
...
extensions.conf
[verboice-dongle]
exten => h,n,NoOp()
exten => _X.,n,AGI(agi://localhost:19000,,CHANNEL_ID)
Replacing CHANNEL_ID with the id of the custom channel created in Verboice.
- To make outgoing calls from Verboice, you need to provide the dial string in the custom channel configuration that Asterisk can use to select the appropriate channel. For example: Dongle/dongle0/{number} . Verboice will replace {number} with the actual number to dial.
If these configuration options are correctly set, it doesn't matter much which version of Asterisk you are using. We've successfully run Verboice with Asterisk 1.8, 11 and 13.
HTH,
Gustavo