Bug #48

Selecting Asterisk Phone book as source stalls processing

Added by tshif almost 3 years ago. Updated almost 3 years ago.

Status:Closed Start:05/08/2009
Priority:Urgent Due date:
Assigned to:jacobsj % Done:

100%

Category:-
Target version: Caller ID Superfecta v 2.0.0

Description

Selecting the asterisk phone book as a data source when it is not installed cause the callerid lookup to pause for a very long time, and then cease altogether. No status info for it is shown in the debug area.

Update
Hanging behavior is seen ANYTIME the phone book source is selected. Even if there is a matching entry.
In short - this data source doesn't work at all.

History

Updated by tshif almost 3 years ago

Update
Hanging behavior is seen ANYTIME the phone source is selected. Even if there is a matching entry.
In short - this data source doesn't work at all.

Updated by tshif almost 3 years ago

  • Subject changed from Selecting Asterisk Phone book as source when not present stalls processing to Selecting Asterisk Phone book as source stalls processing

Updated by jacobsj almost 3 years ago

It seems to be working on my system, and it shows that it's working in the debug output. Are you sure you're not seeing it at all in the debug output?

Updated by tshif almost 3 years ago

  • Status changed from New to Assigned

It does show up, but never produces a success or failure message - and processing does not continue to the next provider. I will test this against a couple more systems and provide more data - but yeah its broken for me on at least one box.

Updated by tshif almost 3 years ago

Ok - I am seeing different results on different boxes. When testing against on a Fonica PABX the stall behavior is being seen. I have at least one PBXIAF box that it works just fine on. I will continue to test and see if I can duplicate the failure on other distros (TrixCE, Fonica PABX and Foncordiax).

Updated by tshif almost 3 years ago

One PBXIAF, the display is thus: (negative time)
Debugging Enabled, will not stop after first result.
Found valid US npa: 760-494-1154

Searching Asterisk Phonebook ... not found
result took 0.0181 seconds.

Returned Result would be:
result took -1,241,896,798.9456 seconds.

On another PBXIAF:
Debugging Enabled, will not stop after first result.
Found valid US npa: 760-494-1154

Searching Asterisk Phonebook ... not found
result took 0.0149 seconds.

Returned Result would be:
result took -1,241,914,366.8569 seconds.

On FOncordiax:
Timeout is not respected - takes a long time to produce results. No times returned, no erros either.

Debugging Enabled, will not stop after first result.
Found valid US npa: 760-494-1154

Searching Asterisk Phonebook ...

On trixboxCE:
Debugging Enabled, will not stop after first result.
Found valid US npa: 760-494-1154

Searching Asterisk Phonebook ...

Updated by tshif almost 3 years ago

Results of tail -f /var/log/httpd/error_log on TrixboxCe

[Sat May 09 17:02:46 2009] [error] [client 192.168.64.222] PHP Warning: feof(): 14 is not a valid stream resource in /var/www/html/admin/common/php-asmanager.php on line 171, referer: http://192.168.64.121/admin/config.php?type=setup&display=superfecta
[Sat May 09 17:02:46 2009] [error] [client 192.168.64.222] PHP Warning: fgets(): 14 is not a valid stream resource in /var/www/html/admin/common/php-asmanager.php on line 173, referer: http://192.168.64.121/admin/config.php?type=setup&display=superfecta
[Sat May 09 17:02:46 2009] [error] [client 192.168.64.222] PHP Warning: feof(): 14 is not a valid stream resource in /var/www/html/admin/common/php-asmanager.php on line 171, referer: http://192.168.64.121/admin/config.php?type=setup&display=superfecta
[Sat May 09 17:02:46 2009] [error] [client 192.168.64.222] PHP Warning: fgets(): 14 is not a valid stream resource in /var/www/html/admin/common/php-asmanager.php on line 173, referer: http://192.168.64.121/admin/config.php?type=setup&display=superfecta

Updated by tshif almost 3 years ago

  • % Done changed from 0 to 80

Asterisk phonebook now works on Foncordiax / Fonica PABX - no errors, and its very fast.
Awaiting validation testing on Trixbox.

Updated by tshif almost 3 years ago

FAILS QA: selecting Phonebook data source stalls process. Tested with and without a matching entry in the phonebook. And it took a LOT longer than 40 seconds to stop trying and fail.

Updated by tshif almost 3 years ago

  • % Done changed from 80 to 100

Sorry Retest on Trixbox yields no errors. Function performs as expected. Apologies for the test error in Note #9.

Updated by tshif almost 3 years ago

  • Status changed from Assigned to Closed

Also available in: Atom PDF