PIONEERS Incredible PBX Asterisk-GUI

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
We finally have gotten the kinks out of ODBC for Asterisk and the speed dialer. A new version 3 release will be available later today or tomorrow. In the meantime, you can bring your system current by logging out and back in as root. One change cannot be automated easily for existing installs. If you want support for the 000 Speed Dialer which lets you dial 000+ a 3-digit AsteriDex dialcode, then edit /etc/asterisk/extensions_custom.conf and find the _000 clump of code. Delete it and replace with the following. Then reload the Asterisk dialplan: asterisk-reload.
Code:
;# // BEGIN Speed Dialer
exten => _000.,1,Answer
exten => _000.,n,Wait(2)
exten => _000.,n,Set(DIALCODE=${EXTEN:3})
exten => _000.,n,SayDigits(${DIALCODE},)  ; extensions dialed with 000 prefix get looked up in AsteriDex
exten => _000.,n,Set(USERDATA=${ODBC_ASTERIDEX(${DIALCODE})})
exten => _000.,n,GotoIf($["${USERDATA},foo" = ",foo"]?97)
exten => _000.,n,Set(USER=${CUT(USERDATA,\,,1)})
exten => _000.,n,Set(PHONE=${CUT(USERDATA,\,,2)})
exten => _000.,n,Flite("Connecting to: ${USER} at ${PHONE}. One moment please.")
exten => _000.,n,Goto(outbound-allroutes,${PHONE},1)
exten => _000.,n,Hangup()
exten => _000.,97,Playback(num-not-in-db)
exten => _000.,98,Playback(goodbye)
exten => _000.,99,Hangup()
;# // END Speed Dialer
Future updates will assume this code already is in place.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Gotcha-Free PBX Release 3 is now available. Includes Asterisk ODBC, AsteriDex 000 Speed Dialer, Anveo Direct support and a number of additional bug fixes.

Includes free calling to all Vitelity, VoIP.ms, Future-Nine DIDs and more. Installation tutorial and download link available here. Application Users Guide available now.

Happy Groundhog's Day!

B8yQjpPIYAE-ajf.jpg:large
 

smccloud

Member
Joined
Jun 17, 2013
Messages
131
Reaction score
14
I'm look at playing around with this on a VM at home while I wait for the Raspberry PI 2 to be supported. One question I have is, is there a way to auto provision VoIP phones like there was in the past? I'm not seeing anything, but that doesn't mean a whole lot.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Not with Asterisk-GUI, but... more options are coming. :biggrinjester:
 

smccloud

Member
Joined
Jun 17, 2013
Messages
131
Reaction score
14
I'm going to figure out T-20 provisioning and do a write-up on my site.
 

smarks

Guru
Joined
Jan 7, 2015
Messages
116
Reaction score
26
Figured out how to use Apache with this for better performance and all the bells and whistles. You still need to use the Asterisk mini-http server but only on localhost. It would be nice if there was some way to get rid of the mini-http server entirely but I have no idea how to do that.

This is just with Asterisk-GUI on a vanilla install. I think Incredible-PBX Asterisk GUI is using both so you will have to figure out the ports and Virtualhosts for that.


Code:
/etc/asterisk/http.conf
 
[general]
enabled = yes
bindaddr= 127.0.0.1
bindport = 8088
enablestatic = yes
redirect = / /static/config/index.html
 
[post_mappings]
backups = /var/lib/asterisk/gui_backups
moh = /var/lib/asterisk/moh
 
 
/etc/asterisk/manager.conf
 
[general]
enabled = yes
webenabled = yes
port = 5038
bindaddr = 0.0.0.0
displayconnects=no ;only effects 1.6+
 
[admin]
secret = somesecret
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate,message
write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate,message
writetimeout = 5000
 
 
/etc/httpd/conf/httpd.conf
 
#Add this to the bottom
ProxyPass / http://localhost:8088/
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,534
Reaction score
727
Figured out how to use Apache with this for better performance and all the bells and whistles. You still need to use the Asterisk mini-http server but only on localhost. It would be nice if there was some way to get rid of the mini-http server entirely but I have no idea how to do that.


Check back here in the thread for a method to use Apache and turn off the mini HTTP server: http://pbxinaflash.com/community/index.php?threads/incredible-pbx-asterisk-gui.16201/#post-104704
 

smarks

Guru
Joined
Jan 7, 2015
Messages
116
Reaction score
26
Check back here in the thread for a method to use Apache and turn off the mini HTTP server: http://pbxinaflash.com/community/index.php?threads/incredible-pbx-asterisk-gui.16201/#post-104704


Yea I just saw that. Will that run all the following things through Apache or is rawman the only thing that needs to do that? Also I get an error when I click on Call Detail Records saying that I need to set enablestatic = yes.

Code:
*CLI> http show status
HTTP Server Status:
Prefix:
Server Enabled and Bound to 127.0.0.1:8088
 
Enabled URI's:
/httpstatus => Asterisk HTTP General Status
/phoneprov/... => Asterisk HTTP Phone Provisioning Tool
/amanager => HTML Manager Event Interface w/Digest authentication
/backups => HTTP POST mapping
/arawman => Raw HTTP Manager Event Interface w/Digest authentication
/manager => HTML Manager Event Interface
/rawman => Raw HTTP Manager Event Interface
/static/... => Asterisk HTTP Static Delivery
/amxml => XML Manager Event Interface w/Digest authentication
/mxml => XML Manager Event Interface
/moh => HTTP POST mapping
/ws => Asterisk HTTP WebSocket
 

jrglass

Guru
Joined
Oct 18, 2007
Messages
302
Reaction score
20
I am having trouble connecting to Web I don't have a root password because I am using RSA Key. When I click on WebMin I get this message
This web server is running in SSL mode. Try the URL https://1XX.1XX.1XX:9001/ instead. When I click on the link I tried the password I Created admin password for web apps: htpasswd -b /etc/pbx/wwwpasswd admin newpassword Is there a way to get a WebMin password?
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,534
Reaction score
727
Yea I just saw that. Will that run all the following things through Apache or is rawman the only thing that needs to do that? Also I get an error when I click on Call Detail Records saying that I need to set enablestatic = yes.

Comment out lines 316-318 in /var/lib/asterisk/static-http/config/js/cdr.js -- the lines that check for this setting and alert about it.

You'll probably have to proxy the /backups, /phoneprov, and /moh locations also. I wasn't using them or aware of their existence at the time of my original comment in this thread.

The main thing you are interested in offloading to Apache is the html and js that is served slowly by the Asterisk static http server.
 

smarks

Guru
Joined
Jan 7, 2015
Messages
116
Reaction score
26
Comment out lines 316-318 in /var/lib/asterisk/static-http/config/js/cdr.js -- the lines that check for this setting and alert about it.

You'll probably have to proxy the /backups, /phoneprov, and /moh locations also. I wasn't using them or aware of their existence at the time of my original comment in this thread.

The main thing you are interested in offloading to Apache is the html and js that is served slowly by the Asterisk static http server.


In my very limited testing the speed seems to be about the same proxying everything vs proxying /rawman and bypassing /static. Will have to do some more testing and try figure if some of those other directories are used for anything.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Looking down the road, Asterisk's static http server is currently used for WebRTC if I'm not mistaken. Apache also is a HUGE memory hog. For the smaller hardware platforms, we'd like to phase Apache out entirely. Just some reasons not to leap off the bridge before giving it some careful thought.
 

Members online

No members online now.

Forum statistics

Threads
25,782
Messages
167,509
Members
19,202
Latest member
pbxnewguy
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top