Ticket #10 (closed Patches: Accepted)

Opened 8 years ago

Last modified 6 years ago

Enhanced codec and pickup group implementation

Reported by: fresshness Assigned to: nobody
Priority: minor Milestone:
Component: Web interface Version: 1.10.006
Keywords: Cc:
Confirmation: Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

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.

Change History

01/13/05 18:20:03 changed by fresshness

  • summary changed from enhanced to enhanced codec and pickup group implementation.

01/13/05 18:23:15 changed by fresshness

  • summary changed from enhanced codec and pickup group implementation to Enhanced codec and pickup group implementation.

01/15/05 17:53:09 changed by maximon

Logged In: YES 
user_id=1193598

I have to the t follow the instructions but do not get the
change to come up after restarting *. Do I have  to change
file attributes? Thanks max  

01/20/05 19:57:26 changed by fresshness

Logged In: YES 
user_id=1196767

Please be more specific about your problem. what change
didn't come up? how did you test it? How did you come to the
conclusion that it isn't working?

yes, generally you need to have the exact same attributes
and ownership of the files you just copied. Try using the
commands 'chmod' and 'chown' (without the quotes).

Also, your english is, while not hard to undertand the jist
of smaller messages, prone to inadequacy in larger discussions.

01/21/05 15:49:38 changed by maximon

Logged In: YES 
user_id=1193598

Thank you for your reply. I did just as you instructed with
the exception of chown since I dont know what to do. Please
look at my dir I get error
[root@asterisk1 root]# ls -la /var/www/html/admin/Error

"No ID Passed"
total 332
drwxr-xr-x    5 root     root         4096 Jan 21 15:24 .
drwxr-xr-x   12 root     root         4096 Jan 21 12:24 ..
-rwxrwxrwx    1 root     root        12461 Jan 21 12:24
callgroups.php
drwxrwxrwx    6 root     root         4096 Jan 21 12:24 cdr
drwxrwxrwx    2 root     root         4096 Jan 21 12:24 common
-rwxrwxrwx    1 root     root         2460 Jan 21 12:24
config.php
-rwxrwxrwx    1 root     root        10423 Jan 21 12:24 did.php
-rw-r--r--    1 root     root        26667 Jan 21 15:20
download.php?group_id=121515
-rw-r--r--    1 root     root        26667 Jan 21 15:23
download.php?group_id=121515.1
-rwxr-xr-x    1 root     root        26687 Jan 21 15:19
extensions.php
-rwxrwxrwx    1 root     root        14032 Jan 21 12:24
extensions.php.bak
-rwxrwxrwx    1 root     root         2022 Jan 21 12:24
footer.php
-rwxr-xr-x    1 root     root        26667 Jan 21 15:21
functions.php
-rwxrwxrwx    1 root     root        21175 Jan 21 12:24
functions.php.bak
-rwxrwxrwx    1 root     root         3637 Jan 21 12:24
general.php
-rwxrwxrwx    1 root     root         1751 Jan 21 12:24
header.php
drwxrwxrwx    2 root     root         4096 Jan 21 12:24 images
-rwxrwxrwx    1 root     root         8131 Jan 21 12:24
incoming.php
-rwxrwxrwx    1 root     root         1147 Jan 21 12:24
index.php
-rwxrwxrwx    1 root     root         5003 Jan 21 12:24
ivr_action.php
-rwxrwxrwx    1 root     root         3684 Jan 21 12:24
ivrmap.php
-rwxrwxrwx    1 root     root        11692 Jan 21 12:24 ivr.php
-rwxrwxrwx    1 root     root         3672 Jan 21 12:24 moh.php
-rwxrwxrwx    1 root     root          847 Jan 21 12:24
reports.php
-rwxrwxrwx    1 root     root         3493 Jan 21 12:24
retrieve_extensions_from_mysql.pl
-rwxrwxrwx    1 root     root         3745 Jan 21 12:24
retrieve_iax_conf_from_mysql.pl
-rwxrwxrwx    1 root     root         1779 Jan 21 12:24
retrieve_meetme_conf_from_mysql.pl
-rwxrwxrwx    1 root     root         4349 Jan 21 12:24
retrieve_op_conf_from_mysql.pl.bak
-rwxrwxrwx   1 root     root        26667 Jan 21 15:24
retrieve_sip_conf_from_mysql.pl
-rwxrwxrwx    1 root     root        12028 Jan 21 12:24
trunks.php
-rwxrwxrwx    1 root     root         2488 Jan 21 12:24
vm_conf.php
-rwxrwxrwx    1 root     root         1449 Jan 21 12:24
vm_read.php
-rwxrwxrwx    1 root     root           67 Jan 21 12:24
voicemail.conf
Thanks Max

01/23/05 15:46:59 changed by rcourtna

Logged In: YES 
user_id=1019629

To be included in AMP 1.10.006

03/02/05 10:28:15 changed by rcourtna

  • status changed from assigned to closed.