velrat
(Taras)
May 1, 2024, 9:09pm
1
Hi.
I wrote my own source module source-Keepin_CRM.module to search for a name in the CRM system I use.
But after I added the file to the directory
/var/www/html/admin/modules/superfecta/sources
the source does not appear in the web interface, so I cannot use it.
What needs to be done to make it appear in the list?
velrat
(Taras)
May 5, 2024, 5:26pm
2
Hmm, is there anyone who uses this module and uses sources other than the standard ones? =(
lgaetz
(Lorne Gaetz)
May 5, 2024, 5:38pm
3
Welcome to the forum!
You’re on the right track.
Copy one of the existing files to create a new file with a unique filename in /var/www/html/admin/modules/superfecta/sources
Ensure it’s owned by asterisk:asterisk (or just run fwconsole chown
)
Edit the class line at the top such that the class name matches the unique portion of the filename. I assume it’s case sensitive
# cd /var/www/html/admin/modules/superfecta/sources/
# cp source-Abandon_lookup.module source-new_stuff.module
# chown asterisk:asterisk source-new_stuff.module
after editing file:
<?php
/**
* CID Superfecata lookup to stop a search from progressing.
*/
class new_stuff extends superfecta_base {
public $description, $source_param;
public $version_requirement = "2.11";
*snip~
system
(system)
Closed
May 12, 2024, 6:43pm
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.