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