Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCNAM only accepts numbers in CID #269

Open
daocow opened this issue Nov 12, 2015 · 0 comments
Open

OpenCNAM only accepts numbers in CID #269

daocow opened this issue Nov 12, 2015 · 0 comments

Comments

@daocow
Copy link

daocow commented Nov 12, 2015

If the callerid number includes a plus sign (E.164 format), that is passed through but converted to a space in the GET URL. Filtering the number to be just numeric fixes this problem.

*** source-OpenCNAM.module-orig 2015-11-12 09:08:07.754531042 -0700
--- source-OpenCNAM.module 2015-11-12 09:08:09.746540180 -0700


*** 22,27 ****
--- 22,28 ----

  function get_caller_id($thenumber, $run_param=array()) {
  •   $thenumber = preg_replace('/[^0-9]/', '', $thenumber);
      $caller_id = null;
      $this->DebugPrint("Searching OpenCNAM ... ");
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant