Fixed a bug in the voip and module modules.
This commit is contained in:
parent
03891ebcfa
commit
bdff1d5fbe
@ -685,7 +685,7 @@ class module
|
||||
|
||||
if(ereg('[(]',$t_s))
|
||||
{
|
||||
$ts = explode('[(]',$t_s);
|
||||
$ts = explode('(',$t_s);
|
||||
$type = $ts[0];
|
||||
$size = ereg_replace('[)]', '', $ts[1]);
|
||||
$flds[] = Array($field, $type, $size);
|
||||
|
@ -1727,7 +1727,7 @@ class voip
|
||||
while ($rs1 && !$rs1->EOF) {
|
||||
|
||||
$calltype = 0;
|
||||
if(strlen($this->voip_intrastate))
|
||||
if(is_array($this->voip_intrastate))
|
||||
$calltype = $this->isIntrastateCall($rs1->fields['src'], $rs1->fields['dst']);
|
||||
$slotMatched = 0; $unit = 0; $quan = 0; $amount = 0;
|
||||
$isInbound = $this->in_did_array($rs1->fields['dst'], $dids);
|
||||
|
Reference in New Issue
Block a user