[ASTPPCOM-144] ASTPP v.3, Inbound call from clients not write to Data Base. Created: 03/Nov/16 Updated: 05/Sep/17 Resolved: 05/Sep/17 |
|
| Status: | Done |
| Project: | ASTPP Community |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | v3.5 |
| Type: | Task | ||
| Reporter: | alexzh16 | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Hi, I'm have one questions about mod_json_cdr and insert cdr to cdrs table. Its not working. i thing its bug. for example in fs_cli a see: 2016-11-03 11:01:02.127337 [INFO] mod_json_cdr.c:271 Process [5cd1b590-a1ac-11e6-9e3c-bf48254b27d6.cdr.json] and in Master.csv ".......","86630648","00440123123","default","2016-11-03 11:09:28","2016-11-03 11:09:34","2016-11-03 11:09:42","14","8","NORMAL_CLEARING","5cd1b590-a1ac-11e6-9e3c-bf48254b27d6","5cd1b590-a1ac-11e6-9e3c-bf48254b27d6","440123123","PCMA","PCMA" but in DataBase it nothing. Billing not function and client have same Credit as before calling. Can you check what its ? |
| Comments |
| Comment by alexzh16 [ 03/Nov/16 ] |
|
UPDATE: [2016-11-03 11:20:57] _* Directory Starts _**** *Not Normal billing client xml have* [2016-11-03 11:20:57] _* Directory Starts _**** after that, Normal billing client xml have have long log with _* Directory Ends _**** [2016-11-03 11:21:04] Return cost 0.00 but Normal billing client xml not have long log file, only: all customers have same preferences. |
| Comment by alexzh16 [ 04/Nov/16 ] |
|
UPDATE: after enable logger in the file fs/asp.cdr.php i'm se, that array $data its Null. |
| Comment by alexzh16 [ 06/Nov/16 ] |
|
can you me please send route, where files call astpp step by step after start calling? i can check and send more info about this. in log ngnix, astpp and fs all its ok. |
| Comment by Samir Doshi [ 06/Nov/16 ] |
|
Do you see any error in apache or astpp log? |
| Comment by alexzh16 [ 09/Nov/16 ] |
|
so i find where its problem. Problem its with function json_decode and codepage.If clients send symbols in callerid another as ASCII, that json_decode return NULL. I'm changed cdr.php severals rows. now all working. Only that not good ways for encoding input data. But billing working correct. Unfortonely mb_detect_encoding( file_get_contents("php://input") ) not working correctly, and I'm not found ways for check, where code page have caller id. Maybe check direct array field with callerid and detect encoding code page. I'm try. |
| Comment by Samir Doshi [ 10/Nov/16 ] |
|
This is strange. What is your php version? Best RegardsSamir Doshi Disclaimer: On Wed, Nov 9, 2016 at 8:28 PM, alexzh16 notifications@github.com wrote: > so i find where its problem. Problem its with function json_decode and |
| Comment by alexzh16 [ 10/Nov/16 ] |
|
PHP 5.4.16 (cli) (built: Aug 11 2016 21:24:59) with version 7, not working. |
| Comment by alexzh16 [ 10/Nov/16 ] |
|
and I'm think, that will be good make verifications in lib/astpp.cdr.php for the null array $data, with send email notifications, or... another alert. |
| Comment by Samir Doshi [ 05/Sep/17 ] |
|
We updated code with your given solution and merged into ASTPP 3.5. |