[Allow end-users to see more CDR details Adrian Georgescu **20090221101330] hunk ./library/cdr_opensips.php 159 - In hunk ./library/cdr_opensips.php 160 - Out hunk ./library/cdr_opensips.php 165 - Codec + Codecs hunk ./library/cdr_opensips.php 181 + hunk ./library/cdr_opensips.php 188 - + Id hunk ./library/cdr_opensips.php 190 - From - To - Destination - Dur + Sip Proxy + SIP caller + SIP destination + Duration hunk ./library/cdr_opensips.php 195 + KBIn + KBOut hunk ./library/cdr_opensips.php 1790 - if (!$this->export && !$this->CDRTool['filter']['aNumber']) { + if (!$this->export) { hunk ./library/cdr_opensips.php 2278 + $this->buildCDRdetail(); hunk ./library/cdr_opensips.php 2281 - function traceIn () { - $datasource=$this->CDRS->traceInURL[$this->SourceIP]; - global $DATASOURCES; - - if (!$datasource || !$DATASOURCES[$datasource]) { - return; - } - - $tplus = $this->timestamp+$this->duration+300; - $tmin = $this->timestamp-300; - $c_number = $this->remoteUsername; - $cdr_table = Date('Ym',time($this->timestamp)); - - $this->traceIn= - "". - "In". - ""; - } - - function traceOut () { - $datasource=$this->CDRS->traceOutURL[$this->remoteGateway]; - global $DATASOURCES; - - if (!$datasource || !$DATASOURCES[$datasource]) { - return; - } - - $tplus = $this->timestamp+$this->duration+300; - $tmin = $this->timestamp-300; - $c_number = preg_replace("/^(0+)/","",$this->remoteUsername); - $cdr_table = Date('Ym',time($this->timestamp)); - - $this->traceOut= - "". - "Out". - ""; - } - - function show() { - global $found; + function buildCDRdetail() { hunk ./library/cdr_opensips.php 2283 + global $found; hunk ./library/cdr_opensips.php 2285 - $rr=floor($found/2); - $mod=$found-$rr*2; - - if ($mod ==0) { - $inout_color="lightgrey"; - } else { - $inout_color="white"; - } - - $this->ratePrint=nl2br($this->rate); - - if ($this->CDRS->Accounts[$this->BillingPartyId]['timezone']) { - $timezone_print=$this->CDRS->Accounts[$this->BillingPartyId]['timezone']; - } else { - $timezone_print=$this->CDRS->CDRTool['provider']['timezone']; - } - - $found_print=$found; - - if ($this->normalized) $found_print.='N'; - - $providerTimezone=$this->CDRS->CDRTool['provider']['timezone']; - - $CallInfoVerbose=" + $this->cdr_details=" hunk ./library/cdr_opensips.php 2295 - $CallInfoVerbose.= sprintf(" + $this->cdr_details.= sprintf(" hunk ./library/cdr_opensips.php 2314 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2323 - $CallInfoVerbose.= sprintf(" + $this->cdr_details.= sprintf(" hunk ./library/cdr_opensips.php 2330 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2348 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2373 - $CallInfoVerbose.= sprintf(" + $this->cdr_details.= sprintf(" hunk ./library/cdr_opensips.php 2382 - $CallInfoVerbose.= sprintf(" + $this->cdr_details.= sprintf(" hunk ./library/cdr_opensips.php 2391 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2401 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2411 - $CallInfoVerbose .= " + $this->cdr_details .= " hunk ./library/cdr_opensips.php 2420 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2436 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2449 - $CallInfoVerbose.= sprintf(" + $this->cdr_details.= sprintf(" hunk ./library/cdr_opensips.php 2458 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2482 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2498 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2519 - $CallInfoVerbose.= + $this->cdr_details.= hunk ./library/cdr_opensips.php 2525 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2529 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2536 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2546 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2554 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2562 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2567 - $CallInfoVerbose.= " + $this->cdr_details.= " hunk ./library/cdr_opensips.php 2571 + } + + function traceIn () { + $datasource=$this->CDRS->traceInURL[$this->SourceIP]; + global $DATASOURCES; + + if (!$datasource || !$DATASOURCES[$datasource]) { + return; + } + + $tplus = $this->timestamp+$this->duration+300; + $tmin = $this->timestamp-300; + $c_number = $this->remoteUsername; + $cdr_table = Date('Ym',time($this->timestamp)); + + $this->traceIn= + "". + "In". + ""; + } + + function traceOut () { + $datasource=$this->CDRS->traceOutURL[$this->remoteGateway]; + global $DATASOURCES; + + if (!$datasource || !$DATASOURCES[$datasource]) { + return; + } + + $tplus = $this->timestamp+$this->duration+300; + $tmin = $this->timestamp-300; + $c_number = preg_replace("/^(0+)/","",$this->remoteUsername); + $cdr_table = Date('Ym',time($this->timestamp)); + + $this->traceOut= + "". + "Out". + ""; + } + + function show() { + global $found; + global $perm; + + $rr=floor($found/2); + $mod=$found-$rr*2; + + if ($mod ==0) { + $inout_color="lightgrey"; + } else { + $inout_color="white"; + } + + $this->ratePrint=nl2br($this->rate); + + if ($this->CDRS->Accounts[$this->BillingPartyId]['timezone']) { + $timezone_print=$this->CDRS->Accounts[$this->BillingPartyId]['timezone']; + } else { + $timezone_print=$this->CDRS->CDRTool['provider']['timezone']; + } + + $found_print=$found; + + if ($this->normalized) $found_print.='N'; + + $providerTimezone=$this->CDRS->CDRTool['provider']['timezone']; hunk ./library/cdr_opensips.php 2662 - $this->traceIn + "; + + //print "$this->traceIn"; + + print " hunk ./library/cdr_opensips.php 2678 - print "$this->traceOut"; + //print "$this->traceOut"; hunk ./library/cdr_opensips.php 2734 - $CallInfoVerbose + $this->cdr_details hunk ./library/cdr_opensips.php 2789 + $found_print=$found; + + if ($this->normalized) $found_print.='N'; + hunk ./library/cdr_opensips.php 2795 - $found - $this->startTime $timezone_print + $found_print + $this->startTime $timezone_print + $this->SipProxyServer hunk ./library/cdr_opensips.php 2799 - $this->cNumberPrint hunk ./library/cdr_opensips.php 2801 + $this->inputTrafficPrint + $this->outputTrafficPrint hunk ./library/cdr_opensips.php 2808 + print " + + + $this->cdr_details + + "; + hunk ./library/ngnpro_client.php 12525 - sprintf("This e-mail message is for your record. You, or someone in your behalf has registered an account on %s as follows:\n\n",$url). + sprintf("This e-mail message is for your record. You have registered a login account at %s as follows:\n\n",$url). hunk ./library/ngnpro_client.php 12530 - sprintf("The notification has been sent based on a request from IP address %s.",$_SERVER['REMOTE_ADDR']). + sprintf("The registration has been performed from the IP address %s.",$_SERVER['REMOTE_ADDR']).