. // Copyright 2006 Philippe Lindheimer - Astrogen LLC $display = 'zapchandids'; $type = isset($_REQUEST['type']) ? $_REQUEST['type'] : 'setup'; $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; if (isset($_REQUEST['delete'])) $action = 'delete'; $extdisplay = isset($_REQUEST['extdisplay']) ? $_REQUEST['extdisplay'] : ''; $channel = isset($_REQUEST['channel']) ? $_REQUEST['channel'] : false; $description = isset($_REQUEST['description']) ? $_REQUEST['description'] : ''; $did = isset($_REQUEST['did']) ? $_REQUEST['did'] : ''; switch ($action) { case 'add': if (core_zapchandids_add($description, $channel, $did)) { needreload(); redirect_standard(); } break; case 'edit': if (core_zapchandids_edit($description, $channel, $did)) { needreload(); redirect_standard('extdisplay'); } break; case 'delete': core_zapchandids_delete($channel); needreload(); redirect_standard(); break; } ?>
"._("Edit Zap Channel: ").$channel.""; } else { echo "

"._("Add Zap Channel")."

"; } $helptext = _("Zap Channel DIDs allow you to assign a DID to specific Zap Channels. You can supply the same DID to multiple channels. This would be a common scenario if you have multiple POTS lines that are on a hunt group from your provider. You MUST assign the channel's context to from-zaptel for these settings to have effect. It will be a line that looks like:

context = from-zaptel

in your zapata.conf configuration effecting the specified channel(s). Once you have assigned DIDs you can use standard Inbound Routes with the specified DIDs to route your calls."); echo "

".$helptext."

\n"; ?>

:
:
:

" tabindex=""> '; } ?>