Showing posts with label DAHDI. Show all posts
Showing posts with label DAHDI. Show all posts

12 July 2012

FOP not showing DAHDI trunks

DAHDI trunks are not shown properly in the Flash Operator Panel. They are identified by Zap/XX in the configuration file rather than DAHDI/XX. The following patch for 2.7.0 corrects the problem. 


*** retrieve_op_conf_from_mysql.php.original 2010-04-05 10:28:16.000000000 -0500
--- retrieve_op_conf_from_mysql.php 2010-04-05 10:28:12.000000000 -0500
***************
*** 191,197 ****
--- 191,201 ----
}
}
if (!($inzaplines)) {
+ if ($chan_dahdi) {
+ array_push($zaplines,array( "DAHDI/$i","$newlabel" ));
+ } else {
array_push($zaplines,array( "Zap/$i","$newlabel" ));
+ }
}
} //istrunk
} //for $i