[Fixed sql query and display of media session in case of ICE Adrian Georgescu **20100222094215] hunk ./library/cdr_opensips.php 44 - 'MediaTimeout' => 'MediaInfo', + 'MediaInfo' => 'MediaInfo', hunk ./library/cdr_opensips.php 2588 + } else { + $this->inputTrafficPrint=0; hunk ./library/cdr_opensips.php 2594 + } else { + $this->outputTrafficPrint=0; hunk ./library/cdr_opensips.php 2868 + $this->cdr_details.= " + hunk ./library/cdr_opensips.php 2871 - $this->cdr_details.= " -
+ + + + "; hunk ./library/cdr_opensips.php 2876 + if ($this->CDRS->mediaTrace) { + $media_trace_datasource = $this->CDRS->mediaTrace; + + $this->mediaTraceLink="SipProxyServer', 'Trace', + 'toolbar=0,status=0,menubar=0,scrollbars=1,resizable=1,width=800,height=730')\">Click here to see the media information for this call  "; + + $this->cdr_details.= sprintf(" hunk ./library/cdr_opensips.php 2884 - + + hunk ./library/cdr_opensips.php 2887 - "; - - if ($this->SipCodec && $this->CDRS->mediaTrace) { - $media_trace_datasource = $this->CDRS->mediaTrace; + ", $this->mediaTraceLink); hunk ./library/cdr_opensips.php 2889 - $this->mediaTraceLink="SipProxyServer', 'Trace', - 'toolbar=0,status=0,menubar=0,scrollbars=1,resizable=1,width=800,height=730')\">Click here to see the media information for this call  "; + } hunk ./library/cdr_opensips.php 2891 - $this->cdr_details.= sprintf(" - - - - - ", $this->mediaTraceLink); + $this->cdr_details.= " + + + + + + "; hunk ./library/cdr_opensips.php 2899 - } + $this->SipCodec = quoted_printable_decode($this->SipCodec); hunk ./library/cdr_opensips.php 2901 + if ($this->SipCodec) { hunk ./library/cdr_opensips.php 2905 - - + + hunk ./library/cdr_opensips.php 2909 + } hunk ./library/cdr_opensips.php 2911 - if ($this->SipCodec) { - $this->SipCodec = quoted_printable_decode($this->SipCodec); + $this->cdr_details.= " + + + + + + + + + + + "; hunk ./library/cdr_opensips.php 2924 - $this->cdr_details.= " - - - - - - - - - - - - - - - - "; - - if ($this->MediaTimeout) { - $this->cdr_details.= " - - - - - - "; - } - - if ($this->SipUserAgents) { - $this->SipUserAgents = quoted_printable_decode($this->SipUserAgents); - - $callerAgents=explode("+",$this->SipUserAgents); - $callerUA=htmlentities($callerAgents[0]); - $calledUA=htmlentities($callerAgents[1]); - - $this->cdr_details.= " - - - - - - - - - - - "; - } - - if (is_array($this->QoS)) { - foreach (array_keys($this->QoS) as $_key) { - if ($this->QoSParameters[$_key]) { - $_desc=$this->QoSParameters[$_key]; - } else { - $_desc=$_key; - } - $this->cdr_details.= - sprintf ("\n", - $_desc,$this->QoS[$_key]); - } - } + if ($this->MediaInfo) { + $this->cdr_details.= " + + + + + + "; + } hunk ./library/cdr_opensips.php 2934 - } + if ($this->SipUserAgents) { + $this->SipUserAgents = quoted_printable_decode($this->SipUserAgents); + + $callerAgents=explode("+",$this->SipUserAgents); + $callerUA=htmlentities($callerAgents[0]); + $calledUA=htmlentities($callerAgents[1]); + + $this->cdr_details.= " + + + + + + + + + + + "; + } hunk ./library/cdr_opensips.php 2957 - + hunk ./library/cdr_opensips.php 2963 - + hunk ./library/cdr_opensips.php 2973 - + hunk ./library/cdr_opensips.php 2975 - $this->ratePrint=nl2br($this->rate); + $this->ratePrint=nl2br($this->rate); hunk ./library/cdr_opensips.php 2982 - + hunk ./library/cdr_opensips.php 2991 - + hunk ./setup/radius/OpenSIPS/radius_accounting.proc 6 - when MediaInfo value passed to query is 'ICE success' + when MediaInfo value passed to query is 'ICE session' hunk ./setup/radius/OpenSIPS/radius_accounting.proc 657 - IF @var_MediaInfo = 'ICE success' THEN + IF @var_MediaInfo = 'ICE session' THEN hunk ./setup/radius/OpenSIPS/radius_accounting.proc 659 - MediaInfo = ?, + MediaInfo = ?, + SipUserAgents = ?, + SipCodecs = ?, + SipApplicationType = ?, hunk ./setup/radius/OpenSIPS/radius_accounting.proc 670 + @v_SipUserAgents = var_SipUserAgents, + @v_SipCodecs = var_SipCodecs, + @v_SipApplicationType = var_SipApplicationType, hunk ./setup/radius/OpenSIPS/radius_accounting.proc 677 - EXECUTE update_rad USING @v_MediaInfo, @v_AcctSessionId, @v_SipToTag, @v_SipFromTag; + EXECUTE update_rad USING @v_MediaInfo, @v_SipUserAgents, @v_SipCodecs, @v_SipApplicationType, @v_AcctSessionId, @v_SipToTag, @v_SipFromTag;
Media Streams
Media Streams%s
%s
Applications: $this->applicationType_print
Applications: $this->applicationType_printCodecs: $this->SipCodec
Caller RTP: $this->inputTrafficPrint KB
Called RTP: $this->outputTrafficPrint KB
Codecs: $this->SipCodec
Caller RTP: $this->inputTrafficPrint KB
Called RTP: $this->outputTrafficPrint KB
Media Info:$this->MediaTimeout
Caller SIP UA: $callerUA
Called SIP UA: $calledUA
%s%s
Media Info:$this->MediaInfo
Caller SIP UA: $callerUA
Called SIP UA: $calledUA