Giter Site home page Giter Site logo

freepbx / cidlookup Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 15.0 1.98 MB

Module of FreePBX (CallerID Lookup) :: Allows CallerID Lookup of incoming calls against different sources (OpenCNAM, MySQL, HTTP, ENUM, Phonebook Module)

Home Page: http://www.freepbx.org

License: GNU General Public License v3.0

PHP 94.89% JavaScript 5.11%

cidlookup's People

Contributors

bolinhtinh avatar chavdar75 avatar ecasas56 avatar ediamousavi avatar ethans1 avatar firefrei avatar gamegamer43 avatar gregmac avatar gsanchietti avatar jfinstrom avatar jissphilip avatar kguptasangoma avatar lidl avatar mbrevda avatar meghabm-sangoma avatar mickecamino avatar mmishra940 avatar n-thumann avatar nriendeau avatar ostapchenko avatar philippebolduc avatar prasanthcode4 avatar ralish avatar renatofb avatar stell0 avatar stgnet avatar tm1000 avatar tonyclewis avatar weblate avatar xrobau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cidlookup's Issues

[improvement]: Add custom Cache-Time

FreePBX Version

FreePBX 16

Improvement Description

Actual the cache option is just on/off.
But there is no info or adjustment for the cache-time.
It would be great to customize this with a new form field.

[improvement]: Add the target as Query-Parameter

FreePBX Version

FreePBX 16

Improvement Description

There is no query-paramter to optional send infos about the called target.
I am new to asterisk, so i am not sure if target is the correct word.

[bug]: Module: "CallerID Lookup" is giving out the string “Unknown” instead of the Phonenumber

FreePBX Version

FreePBX 16

Issue Description

Module Affected:

CallerID Lookup since 16.0.13
https://github.com/FreePBX/cidlookup

Expectation:

In case the Phonenumber of an Inbound-Call is not found in the CallerID Database, the actual Phonenumber should be provided to the Extension. (Phonenumber = CallerID)

What it actually did

Since Module Version 16.0.13 the CallerID Lookup (Type MySql) is giving out the string “Unknown” instead of the Phonenumber.

The Bug was corrected in 16.0.12.
The Bug was reintroduced in 16.0.13.
The Bug is still there in 16.0.15.

Bugfix:

diff --git a/cidlookup_mysql.agi b/cidlookup_mysql.agi
index bd0ad0c..7b9526d 100644
--- a/cidlookup_mysql.agi
+++ b/cidlookup_mysql.agi
@@ -51,8 +51,6 @@
     dbug($e->getMessage());
     }

-  $name     = _("Unknown");
-
   foreach($ret as $key => $val){
     $name   = $val;
     break;

See: https://community.freepbx.org/t/callerid-lookup-module-no-longer-passing-default-caller-id-through/92948
Also: https://community.freepbx.org/t/callerid-lookup-module-update-issue-no-longer-passing-default-caller-id-through/82730

Operating Environment

FreePBX 16.0.40.4
CallerID Lookup 16.0.15

Relevant log output

152275[2023-11-28 15:40:22] VERBOSE[2847539][C-000001ff] res_agi.c: agi://127.0.0.1/dialparties.agi: Caller ID name is 'Unknown' number is '06991234567'
152276[2023-11-28 15:40:22] VERBOSE[2847539][C-000001ff] pbx.c: Executing [s@macro-user-callerid:48] Set("PJSIP/xxx-000006d6", "CALLERID(name)=Unknown") in new stack
152277[2023-11-28 15:40:22] VERBOSE[2847539][C-000001ff] pbx.c: Executing [s@macro-user-callerid:50] Set("PJSIP/xxx-000006d6", "CDR(cnam)=Unknown") in new stack
152278[2023-11-28 16:12:01] VERBOSE[2850025][C-00000201] pbx.c: Executing [s@macro-user-callerid:48] Set("PJSIP/xxx-000006dc", "CALLERID(name)=Unknown") in new stack
152279[2023-11-28 16:12:01] VERBOSE[2850025][C-00000201] pbx.c: Executing [s@macro-user-callerid:50] Set("PJSIP/xxx-000006dc", "CDR(cnam)=Unknown") in new stack

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.