First of all, *all* credits should go to 'Ed - lethol' for his
work on the codec part and 'Jerry Workman -
jerryworkman' for his work on pickup groups.
NOTE: if you plan to apply this modification to an AMP
system where extensions are already defined, you *will*
need to delete and recreate them, this is because they
don't have the required fields in the SQL table.
I could write a small shell script to fix this problem, but I
don't see any demand for it and frankly I'm too lazy ;).
Contact me if you do want this.
Installation guide:
-----------------
1)
you need to edit /etc/asterisk/extensions.conf and
search for [from-internal]. Here you will need to insert a
line:
[from-internal]
;allow phones to use applications
include => app-directory
include => app-dnd
include => app-callforward
include => app-callwaiting
include => app-messagecenter
include => app-calltrace
;INSERT FOLLOWING LINE
include => app-callpickup
;allow phones to dial other extensions
include => ext-fax
include => ext-local
include => ext-group
include => ext-zapbarge
include => ext-meetme
include => ext-record
include => ext-test
include => ext-bri
;allow phones to access trunks
include => outbound-emerg
include => outbound-info
include => outbound-local
include => outbound-tollfree
include => outbound-ld
include => outbound-international
exten => h,1,Macro(hangupcall)
2)
still in /etc/asterisk/extensions.conf you need to
elaborate on the line you just inserted, I speak ofcourse
of [app-callpickup], probably the best thing is to add it
just right after the other app-'s, like so (note that I've
shortened the content of [app-calltrace-perform] for
space saving purposes):
[app-calltrace-perform]
....
exten => t,1,Playback(vm-goodbye)
exten => t,2,Macro(hangupcall)
[app-callpickup]
exten => *8,1,Answer
exten => *8,2,Pickup()
now we are done with /etc/asterisk/extensions.conf and
nearly finished. nearly.
3)
I attached 3 files:
extensions.php
functions.php
retrieve_sip_conf_from_mysql.pl
all 3 need to be copied to /var/www/html/admin
4)
restart asterisk
5)
try to add an extension. I hope you will be pleased.