FusionPBX
97681298cc
Update v_xml_cdr_import.php
2016-09-03 20:48:27 -06:00
markjcrane
bd23c78670
Use FreeSWITCH to run mkdir so it inherits its own user and group permissions.
2016-06-28 15:18:40 -06:00
markjcrane
ee3ae4b7c2
If last_sent_callee_id_number is set use it as the destination_number.
2016-06-01 16:45:50 -06:00
Mafoo
71525c26b0
I got the permissions wrong ( #1616 )
...
it should have been in octal mod (leading 0)
also updated the fax application as it needs the stickygid too
2016-05-26 05:55:46 -06:00
Mafoo
86c4742347
Added sticky GID permissions ( #1615 )
2016-05-25 21:51:41 -06:00
mafoo
4131926b86
WhitespaceClean-app/xml_cdr
...
whitespace pass over files
for reference regex that was used s/[ \t]+(\r?\n)/\1/
2016-03-11 11:54:18 +00:00
markjcrane
93d02e85af
Fix the check to see if domain_name is not set.
2016-02-10 17:15:31 -07:00
markjcrane
7716a09f54
XML CDR - if the domain_uuid is not found then attempt to use sip_req_host to get the domain name. If domain_name and domain_uuid are still empty then add the CDR record with the domain_uuid as null so there is a record of the call.
2016-02-10 13:54:15 -07:00
markjcrane
fa081456b1
Change $_SERVER['DOCUMENT_ROOT'].PROJECT_PATH to $_SERVER["PROJECT_ROOT"].
2016-01-17 00:01:13 -07:00
Luis Daniel Lucio Quiroz
2fccf1c09e
Bill the incoming call
...
wrong variable, use the correct one.
2016-01-08 23:44:06 -05:00
markjcrane
cde9debb29
After removing domain name from the default recordings dir path need to add the domain name every where the recordings directory is currently used.
2015-12-06 13:37:35 -07:00
Alexey Melnichuk
d1dfe3258c
Fix. Remove debug output.
2015-07-13 10:42:14 +04:00
Alexey Melnichuk
d7a1829d32
Use non greedy match.
2015-07-02 19:12:12 +04:00
Alexey Melnichuk
1764700fd7
Fix. Escape `<>` in all fields in CDR xml.
...
When using redirect cdr also can contain e.g. `sip_redirect_contact_0` / `sip_redirected_to`.
I use `preg_replace_callback` to proceed all fields.
May be it more correct use urlencode because if we get xml with non UTF8 char we lost CDR.
```php
$xml_string = preg_replace_callback("/<([^><]+)>(.*?)<\/\g1>/",
function ($matches) {
// var_dump($matches);
return '<' . $matches[1] . '>' .
urlencode($matches[2]).
'</' . $matches[1] . '>';
},
$xml_string
);
```
2015-07-02 19:08:48 +04:00
Mark Crane
5f78d5b41d
Filter for sip_P-Preferred-Identity in xml cdr import as a work around for invalid XML sent over HTTP POST.
2015-05-15 09:26:13 +00:00
luis daniel lucio quiroz
e2602f7824
better sql queries for billing
2015-05-01 18:35:40 +00:00
luis daniel lucio quiroz
9f346abfd0
lcr_currency wrong set
2015-05-01 17:39:13 +00:00
Mark Crane
54e93c8beb
XML CDR, Add a fix for unescaped data in <sip_Remote-Party-ID>.
2015-04-04 16:09:11 +00:00
Mark Crane
2943ad648b
Add another work around for FreeSWITCH XML CDR that is not escaped correctly in FreeSWITCH 1.4.17.
2015-03-21 20:52:59 +00:00
Mark Crane
60bca06375
Update XML CDR import replace xml_cdr -> http_enabled -> text with cdr -> http_enabled -> boolean.
2015-03-18 12:53:40 +00:00
Mark Crane
7ec6817a5d
Set debug to false.
2015-03-07 10:59:00 +00:00
Mark Crane
65fe97fb50
Escape sip_full_from, sip_full_to, caller_id so that the HTTP POST for CDR will work. Will remove once FreeSWITCH corrects the bug and its in a release version.
2015-03-07 10:45:33 +00:00
Mark Crane
669fb08d4e
Add show all code donated by Chris Black
2015-03-06 17:15:09 +00:00
Mark Crane
0225e59372
Minor formatting adjusts to the xml cdr import.
2015-02-12 16:42:58 +00:00
luis daniel lucio quiroz
786a860d48
callee instaed of caller when billing incoming calls
2015-01-22 15:29:43 +00:00
luis daniel lucio quiroz
e5a69f5a7c
no strlen on billing maths
2014-12-29 05:35:08 +00:00
luis daniel lucio quiroz
2b43ddd76f
fix odd billing currency error when using different currencies
2014-11-25 22:22:28 +00:00
luis daniel lucio quiroz
92de1d3f6d
billing postgresql compatibility
2014-09-04 20:58:20 +00:00
luis daniel lucio quiroz
96445298e8
sql queries fixed to be compatible with mysql AND pgsql
2014-08-29 15:34:51 +00:00
luis daniel lucio quiroz
61b9a6eee1
seems to be final fix for billling multi-currency issue
2014-08-28 16:11:24 +00:00
luis daniel lucio quiroz
b5dc3e751c
some billing sql queries fixes, for a extrange reason when currencies are different there was a lack of accuracy
2014-08-23 04:28:43 +00:00
luis daniel lucio quiroz
d2aa3e21e2
default currency support using default settings
2014-07-24 00:41:32 +00:00
Omar Irbouh
c9c044939f
sql escape json content
2014-07-20 16:41:36 +00:00
Omar Irbouh
46c8524c97
sql escape json content
2014-07-20 16:39:16 +00:00
luis daniel lucio quiroz
bfd1901fe9
a variable was wrong
2014-07-18 00:13:44 +00:00
luis daniel lucio quiroz
1ded40211e
more support to fussion schema
2014-07-17 23:46:04 +00:00
luis daniel lucio quiroz
cad5e1c195
billing app update support
2014-07-17 19:31:50 +00:00
Mark Crane
c0f16be420
Set XML CDR debug to false
2014-07-15 06:33:10 +00:00
Mark Crane
803b55e31a
fix the xml cdr import';
2014-07-12 08:43:13 +00:00
luis daniel lucio quiroz
3be2e36801
adding more support for xml_cdr to multicurrency bill
2014-07-12 07:49:41 +00:00
luis daniel lucio quiroz
9d1bbe71dd
database object must be globally local
2014-06-26 01:54:35 +00:00
luis daniel lucio quiroz
1c6dc4c050
multi-currency support to xml_cdr
2014-06-25 23:58:47 +00:00
luis daniel lucio quiroz
e3562cd32b
better billing decition, specially to allow tollfree billing
2014-06-24 11:51:37 +00:00
luis daniel lucio quiroz
4ab72c66ae
if not rate specified, outcalls rate 0.01, local/inbound 0
2014-06-24 11:29:48 +00:00
luis daniel lucio quiroz
24b0e4b2b3
sync balances after call has finished
2014-06-24 01:09:41 +00:00
luis daniel lucio quiroz
d357cc9b0c
v_xml_cdr_import fixed when debug off
2014-06-23 04:04:57 +00:00
luis daniel lucio quiroz
06bab9c1b7
xml_cdr also saves the LCR carrier
2014-06-22 18:52:14 +00:00
luis daniel lucio quiroz
64130bb62e
Fix a little french translation, add language support for world Price, add column of selling price when billing module is installed
2014-06-22 18:24:32 +00:00
luis daniel lucio quiroz
f105cbbb84
v_xml_cdr_import support for billing
2014-06-21 22:08:11 +00:00
luis daniel lucio quiroz
bacd811ab1
xml_cdr starts getting ready for billing app
2014-06-19 20:52:41 +00:00