Commit Graph

58 Commits

Author SHA1 Message Date
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
luis daniel lucio quiroz 2accf75870 seems to be final fix for billling multi-currency issue 2014-08-28 16:11:24 +00:00
luis daniel lucio quiroz bbc598a054 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 d4a712cd71 default currency support using default settings 2014-07-24 00:41:32 +00:00
Omar Irbouh a8b11e0e33 sql escape json content 2014-07-20 16:41:36 +00:00
Omar Irbouh 0a7bcb4e68 sql escape json content 2014-07-20 16:39:16 +00:00
luis daniel lucio quiroz eff69a72bc a variable was wrong 2014-07-18 00:13:44 +00:00
luis daniel lucio quiroz 536d5ae24d more support to fussion schema 2014-07-17 23:46:04 +00:00
luis daniel lucio quiroz 60990a9e27 billing app update support 2014-07-17 19:31:50 +00:00
Mark Crane 9d2b1a0033 Set XML CDR debug to false 2014-07-15 06:33:10 +00:00
Mark Crane c6c408ab8e fix the xml cdr import'; 2014-07-12 08:43:13 +00:00
luis daniel lucio quiroz 32c9294312 adding more support for xml_cdr to multicurrency bill 2014-07-12 07:49:41 +00:00
luis daniel lucio quiroz 05657b1dfb database object must be globally local 2014-06-26 01:54:35 +00:00
luis daniel lucio quiroz 3e7b00b630 multi-currency support to xml_cdr 2014-06-25 23:58:47 +00:00
luis daniel lucio quiroz 5c15c43560 better billing decition, specially to allow tollfree billing 2014-06-24 11:51:37 +00:00
luis daniel lucio quiroz d15883a3ec if not rate specified, outcalls rate 0.01, local/inbound 0 2014-06-24 11:29:48 +00:00
luis daniel lucio quiroz 3215aa7eb9 sync balances after call has finished 2014-06-24 01:09:41 +00:00
luis daniel lucio quiroz 189a5ee5f1 v_xml_cdr_import fixed when debug off 2014-06-23 04:04:57 +00:00
luis daniel lucio quiroz 7e695edb57 xml_cdr also saves the LCR carrier 2014-06-22 18:52:14 +00:00
luis daniel lucio quiroz fb0df1b1b8 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 d7ca2bddd2 v_xml_cdr_import support for billing 2014-06-21 22:08:11 +00:00
luis daniel lucio quiroz d3cf54faf0 xml_cdr starts getting ready for billing app 2014-06-19 20:52:41 +00:00
luis daniel lucio quiroz 9469b84a94 debout output for _POST[cdr] 2014-06-18 01:40:17 +00:00
Mark Crane 8d2bfeb23e Minor code cleanup 2014-06-14 07:19:56 +00:00
Mark Crane 0d7e95a1e9 In advanced -> default settings add the following cdr->format->text = xml,json and cdr->storage->text = db,dir 2014-06-14 07:07:04 +00:00
Mark Crane 0a37951438 Make the new json field operation with json_encode 2014-06-14 04:58:50 +00:00
Mark Crane 2ab1c81d98 Add pin_number and json option to xml cdr 2014-06-14 04:53:04 +00:00
Mark Crane a192ffd900 Add rtp_audio_in_mos to the Call Detail Record indexed details 2014-06-12 11:53:52 +00:00
Mark Crane 13dabc3d3b Move references to php classes in includes/classes to resource/classes. 2013-07-06 07:13:36 +00:00
Mark Crane ffffea0710 Change the path for includes/require.php to the resources directory. 2013-07-06 06:03:27 +00:00
Mark Crane d534a2b0e7 Hide digits_dialed and dsn variable from the CDR table as a security enhancement. 2013-05-22 01:07:59 +00:00
Mark Crane 9b9c0429a6 Fix a little more indentation on the xml cdr. 2013-04-30 16:44:51 +00:00