I am setting up a new PBX-in-a-Flash (PIAF) box to replace my old TB box. I d/l PIAF 32-bit iso and setup the A1.4 version. It has FreePBX 2.4.0 installed. The first thing I did was to set it to use deviceanduser mode and then added some users and devices. I set the devices to be adhoc with no default user. So now the devices are displaying the correct device number on their consoles and I try logging into one as a user. The *11 prompt says to enter extension number then press # (I’m assuming it means user number) so I do that and then it says an error has occurred - goodbye. What am I doing wrong? I had this working on TB/A1.2 before.
Here is some info:
root@pbx:/ $ su - asterisk
[asterisk@pbx ~]$ retrieve_conf
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Checking for /etc/amportal.conf …OK
Bootstrapping /etc/amportal.conf …OK
Parsing /etc/amportal.conf …OK
Parsing /etc/asterisk/asterisk.conf …OK
Connecting to database…OK
Connecting to Asterisk manager interface…OK
Added to globals: ASTETCDIR = /etc/asterisk
Added to globals: ASTMODDIR = /usr/lib/asterisk/modules
Added to globals: ASTVARLIBDIR = /var/lib/asterisk
Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin
Added to globals: ASTSPOOLDIR = /var/spool/asterisk
Added to globals: ASTRUNDIR = /var/run/asterisk
Added to globals: ASTLOGDIR = /var/log/asterisk
Added to globals: CWINUSEBUSY = true
Added to globals: AMPMGRUSER = admin
Added to globals: AMPMGRPASS = amp111
Use of uninitialized value in string eq at /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl line 415.
DB Error: no such table
[asterisk@pbx ~]$ grep AMPEXTENSION /etc/amportal.conf
AMPEXTENSIONS: the type of view for extensions admin
AMPEXTENSIONS=deviceanduser
root@pbx:/ $ asterisk -rvvvvv
Asterisk 1.4.19.2, Copyright © 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer [email protected]
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.
== Parsing ‘/etc/asterisk/asterisk.conf’: Found
Connected to Asterisk 1.4.19.2 currently running on pbx (pid = 27390)
Verbosity was 3 and is now 5
– Executing [11@from-internal:1] Macro(“SIP/0001-08bf49c0”, “user-logon|”) in new stack
– Executing [s@macro-user-logon:1] Set(“SIP/0001-08bf49c0”, “DEVICETYPE=adhoc”) in new stack
– Executing [s@macro-user-logon:2] GotoIf(“SIP/0001-08bf49c0”, “0?s-FIXED|1”) in new stack
– Executing [s@macro-user-logon:3] Set(“SIP/0001-08bf49c0”, “AMPUSER=”) in new stack
– Executing [s@macro-user-logon:4] GotoIf(“SIP/0001-08bf49c0”, “0?gotpass”) in new stack
– Executing [s@macro-user-logon:5] Playback(“SIP/0001-08bf49c0”, “please-enter-your&extension”) in new stack
– <SIP/0001-08bf49c0> Playing ‘please-enter-your’ (language ‘en’)
– <SIP/0001-08bf49c0> Playing ‘extension’ (language ‘en’)
– Executing [s@macro-user-logon:6] Read(“SIP/0001-08bf49c0”, “AMPUSER|then-press-pound”) in new stack
– <SIP/0001-08bf49c0> Playing ‘then-press-pound’ (language ‘en’)
– User entered nothing.
– Executing [s@macro-user-logon:7] Set(“SIP/0001-08bf49c0”, “AMPUSERPASS=”) in new stack
– Executing [s@macro-user-logon:8] GotoIf(“SIP/0001-08bf49c0”, “1?s-NOPASSWORD|1”) in new stack
– Goto (macro-user-logon,s-NOPASSWORD,1)
– Executing [s-NOPASSWORD@macro-user-logon:1] NoOp(“SIP/0001-08bf49c0”, “This extension does not exist or no password is set”) in new stack
– Executing [s-NOPASSWORD@macro-user-logon:2] Playback(“SIP/0001-08bf49c0”, “an-error-has-occured&vm-goodbye”) in new stack
– <SIP/0001-08bf49c0> Playing ‘an-error-has-occured’ (language ‘en’)
– <SIP/0001-08bf49c0> Playing ‘vm-goodbye’ (language ‘en’)
– Executing [s-NOPASSWORD@macro-user-logon:3] Hangup(“SIP/0001-08bf49c0”, “”) in new stack
== Spawn extension (macro-user-logon, s-NOPASSWORD, 3) exited non-zero on ‘SIP/0001-08bf49c0’ in macro ‘user-logon’
== Spawn extension (macro-user-logon, s-NOPASSWORD, 3) exited non-zero on 'SIP/0001-08bf49c0’
pbxCLI>
Regards,
Gerry