This is an old revision of the document!
====== Trunk ====== A trunk is a route connecting the local telephone network and other telephone network ( mainly the traditionl PSTN network or other IP PBX system). Trunks can be cataloged by the transmission media * Internet trunk (SIP,IAX) * Analog trunk (FXO口) * Digital trunk (E1 PRI) ===== Add a trunk ===== On the left menu, click [[:en:module_manual:pbx|PBX]] -> Trunk, and **[Add]** to open the trunk add page. {{:en:module_manual:pbx:trunk_add_general.jpg?768|Trunk Add For General}} ==== Requird fields ==== * **Trunk** Set the name for the trunk for identification. * **Team** Selece a team to which this trunk belongs. And after setting, this trunk can only be used in this team. If you do not assign this trunk a team, then all teams can use this trunk. * **Protocol** Choose a protocol for this trunk. * **Registry string** When you choose SIP or IAX, and in order to receive the calls from this trunk, you need to enter a registry string of the trunk sometime. Standard format:** username:password@voip.sonicwell.com:5060** * **Identity** The only identity. The system would automatically generate a string of number as the identity. And for some internet trunks, the identity needs to be the same as the trunk name, thus, manual adaption is needed here. * **Time out** When the call attempt exceeds this tim and still not gets conneted, it is considered a failure. * **Status** Whether to enable this trunk. ==== Optional fields ==== * **Templates:** Select a trunk for this trunk. The use of templates makes it easy to manage the internet trunks of the same type. * **CID Num:** The CID number displays * **CID name:** CID name displays (now only supports some trunks). * **Details:**enter the configuration parameter of the trunk * **Max calls** the max. concurrent calls allowed in the trunk ==== Advanced ==== {{:en:module_manual:pbx:trunk_add_advanced.jpg?768|Trunk Add For Advanced}} * **Enforce use rate:** When a team places outbound calls, it would match the device rate by the trunk. If you use the enforce rate, you must make it to each device to achieve outbound calls, otherwise the outbound calls would not be placed. If you do not limit the rate, you dont need to match the device rate.团队外呼时,根据中继去匹配分机费率,如果强制计费,必须匹配到分机费率才能外呼,否则不会外呼。如果不强制,那么就不需要匹配分机费率。(请修改加工一下这句谢谢) * **Always use trunk CID:**If you choose "yes" here, then no matter what number has been set outside this page, the number set in this trunk will be used. * **Cluster trunk** If you use this system and other systems together, choose **"yes"** * **Cluster trunk host** enter the cluster trunk host address. * **Black list:** number in this list cannot be placed or received. * **Black list:** If you enter numbers in this list, then only the number in this list can be placed or received. * **Detail:** for discriptive information, like its purpose etc. ===== Edit trunk ===== Double click the item to open the edit page. {{:en:module_manual:pbx:trunk_edit.jpg?768|Trunk Edit}} Click [Edit rule] to open the trunk rule editer {{:en:module_manual:pbx:trunk_add_rule.jpg?768|Add Trunk Rule}} When a number enters the trunk, and it will match by the rule you set, and if it matches, the prefix will be deleted or added by you rules. **Object:** Including允许呼叫、禁用本规则、禁止呼叫。 **Ori prefix:** What kind of number with this prefix will match. IF you enter 0411, then the number start with 0411 will be matching this rule and execute by the rules. **Ori length:** the length of the number that matches. **Remove prefix:**When the number matches, the prefix you entered will be removed. **Add prefix:**When the number matches, the prefix you entered will be added. Click [save] after finishing the rule set, and the new information will be displayed on the table on the bottom. {{tag>:zh:模块使用说明:PBX管理 :zh:模块使用说明:PBX管理:中继 :zh:模块使用说明:PBX管理:中继:中继规则}} {{topic>:zh:中继}}