$val) { // extract all ruleXX keys if (preg_match("/^rule\d+$/",$key)) { $dialrules[] = $val; } } } unset($temp); } echo "
".sprintf(_("Edit %s Trunk"),strtoupper($tech))."
"; ?> 0) { echo ""._("In use by")." ".$num_routes." ".($num_routes == 1 ? _("route") : _("routes")).""; foreach($routes as $route=>$priority) { echo _("Route")." ".$route.": "._("Sequence")." ".$priority.""; } echo ""; } else { echo ""._("WARNING:")." "._("This trunk is not used by any routes!").""; echo _("This trunk will not be able to be used for outbound calls until a route is setup that uses it. Click on Outbound Routes to setup routing."); echo ""; } } else { // set defaults $outcid = ""; $maxchans = ""; $dialoutprefix = ""; if ($tech == "zap") { $channelid = "g0"; } else { $channelid = ""; } // only for iax2/sip $peerdetails = "host=***provider ip address***\nusername=***userid***\nsecret=***password***\ntype=peer"; $usercontext = ""; $userconfig = "secret=***password***\ntype=user\ncontext=from-trunk"; $register = ""; $localpattern = "NXXXXXX"; $lddialprefix = "1"; $areacode = ""; echo "
".sprintf("Add %s Trunk",strtoupper($tech))."
"; } switch ($tech) { case 'dundi': $helptext = _('FreePBX offers limited support for DUNDi trunks and additional manual configuration is required. The trunk name should correspond to the [mappings] section of the remote dundi.conf systems. For example, you may have a mapping on the remote system, and corresponding configurations in dundi.conf locally, that looks as follows:[mappings]
priv => dundi-extens,0,IAX2,priv:${SECRET}@218.23.42.26/${NUMBER},noparital
In this example, you would create this trunk and name it priv. You would then create the corresponding IAX2 trunk with proper settings to work with DUNDi. This can be done by making an IAX2 trunk in FreePBX or by using the iax_custom.conf file.
The dundi-extens context in this example must be created in extensions_custom.conf. This can simply include contexts such as ext-local, ext-intercom-users, ext-paging and so forth to provide access to the corresponding extensions and features provided by these various contexts and generated by FreePBX.'); break; default: $helptext = ''; } if ($helptext != '') { if ($extdisplay) { echo "
"; } echo $helptext; } ?>