Commit Graph

89 Commits

Author SHA1 Message Date
FusionPBX 67a0f9eb07 Update v_xml_cdr_import.php 2017-10-20 18:02:58 -06:00
FusionPBX 770f412618 Update v_xml_cdr_import.php 2017-10-20 17:57:57 -06:00
FusionPBX 16972b0dbf Update v_xml_cdr_import.php 2017-10-20 16:46:29 -06:00
FusionPBX d623eae97c Update v_xml_cdr_import.php 2017-10-15 11:50:09 -06:00
FusionPBX a7cde16bd0 Update v_xml_cdr_import.php 2017-10-15 11:38:49 -06:00
FusionPBX d25c639d8f Update v_xml_cdr_import.php 2017-10-05 12:51:13 -06:00
FusionPBX 90ae681fb7 Update v_xml_cdr_import.php 2017-09-22 19:23:39 -06:00
FusionPBX 67f78dcb1a Update v_xml_cdr_import.php 2017-09-22 19:05:24 -06:00
FusionPBX e2631f20a5 Update v_xml_cdr_import.php 2017-09-14 17:25:51 -05:00
FusionPBX 3b38213791 Update v_xml_cdr_import.php 2017-09-11 02:46:50 -05:00
FusionPBX fea6521e01 Update v_xml_cdr_import.php 2017-09-11 01:34:31 -05:00
FusionPBX 962d624459 Update v_xml_cdr_import.php 2017-09-11 01:26:58 -05:00
FusionPBX 54aa50c193 Update v_xml_cdr_import.php 2017-09-10 13:13:18 -06:00
FusionPBX 2e2f8e43fe Update v_xml_cdr_import.php 2017-09-10 11:54:24 -06:00
FusionPBX 463a971275 Update v_xml_cdr_import.php 2017-06-21 19:34:06 -06:00
Alexey Melnichuk 5d43f73134 Add. Handle `b` legs in CDR. (#2626)
* Add. Handle `b` legs in CDR.

CDR list/statistic by default handle only `a` legs.
So it prevent display wrong result when b-leg turn on.
Add ability to write to db `b` legs only for specific call directions.

To be able see b-legs in CDR need set xml_cdr_b_leg permission.
To add specific call direction to filter need add element to `cdr/b_leg/array` in default/domain settings.

* Add. `b_leg` to defalut settings.
2017-06-02 22:31:20 -06:00
FusionPBX d1754cc3d2 Update v_xml_cdr_import.php 2017-05-29 15:14:38 -06:00
FusionPBX 2d1f89fbba Update v_xml_cdr_import.php 2017-05-29 10:48:30 -06:00
FusionPBX 335084e9d8 Update v_xml_cdr_import.php 2016-12-22 21:10:22 -07:00
FusionPBX d57c9dcafd Update v_xml_cdr_import.php 2016-12-22 20:50:09 -07:00
FusionPBX b667a78d4a Update v_xml_cdr_import.php 2016-12-21 14:14:45 -07:00
FusionPBX 6d722bd34f Update v_xml_cdr_import.php 2016-09-03 20:48:27 -06:00
markjcrane 6f2601e32a Use FreeSWITCH to run mkdir so it inherits its own user and group permissions. 2016-06-28 15:18:40 -06:00
markjcrane d56b8ab6a1 If last_sent_callee_id_number is set use it as the destination_number. 2016-06-01 16:45:50 -06:00
Mafoo 59ddf92f1b 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 a8b667cd0b Added sticky GID permissions (#1615) 2016-05-25 21:51:41 -06:00
mafoo ce8137b407 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 9b1cb7c43e Fix the check to see if domain_name is not set. 2016-02-10 17:15:31 -07:00
markjcrane 2e5e2aa3b3 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 23b4b7c9bf Change $_SERVER['DOCUMENT_ROOT'].PROJECT_PATH to $_SERVER["PROJECT_ROOT"]. 2016-01-17 00:01:13 -07:00
Luis Daniel Lucio Quiroz 39cbe216df Bill the incoming call
wrong variable, use the correct one.
2016-01-08 23:44:06 -05:00
markjcrane ff8b838b5e 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 3c394e8fc3 Fix. Remove debug output. 2015-07-13 10:42:14 +04:00
Alexey Melnichuk 130394ff01 Use non greedy match. 2015-07-02 19:12:12 +04:00
Alexey Melnichuk 90d91c8b5a 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 e7703ad3b7 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 7d8566d595 better sql queries for billing 2015-05-01 18:35:40 +00:00
luis daniel lucio quiroz da7e958808 lcr_currency wrong set 2015-05-01 17:39:13 +00:00
Mark Crane defd4d10d6 XML CDR, Add a fix for unescaped data in <sip_Remote-Party-ID>. 2015-04-04 16:09:11 +00:00
Mark Crane 621f5036e5 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 9e28e6a8b5 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 1b0c8ccc98 Set debug to false. 2015-03-07 10:59:00 +00:00
Mark Crane 37e3355237 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 426df6e524 Add show all code donated by Chris Black 2015-03-06 17:15:09 +00:00
Mark Crane d7f46b4fdb Minor formatting adjusts to the xml cdr import. 2015-02-12 16:42:58 +00:00
luis daniel lucio quiroz 0d769dbf75 callee instaed of caller when billing incoming calls 2015-01-22 15:29:43 +00:00
luis daniel lucio quiroz b74adefc32 no strlen on billing maths 2014-12-29 05:35:08 +00:00
luis daniel lucio quiroz c188fe13e1 fix odd billing currency error when using different currencies 2014-11-25 22:22:28 +00:00
luis daniel lucio quiroz 4070aa19cf billing postgresql compatibility 2014-09-04 20:58:20 +00:00
luis daniel lucio quiroz 72058f2962 sql queries fixed to be compatible with mysql AND pgsql 2014-08-29 15:34:51 +00:00