{"id":2495,"date":"2025-04-27T18:26:05","date_gmt":"2025-04-27T18:26:05","guid":{"rendered":"https:\/\/wiki.xontel.com\/?post_type=manual_documentation&#038;p=2495"},"modified":"2026-07-03T15:28:27","modified_gmt":"2026-07-03T15:28:27","slug":"trunks","status":"publish","type":"manual_documentation","link":"https:\/\/wiki.xontel.com\/ar\/documentation\/pbx\/pbx-v-1-x-x\/pbx\/trunks\/","title":{"rendered":"Trunks"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Trunks are used to connect your PBX to external VoIP systems or devices, enabling outbound and inbound call traffic between networks.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large image-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"301\" src=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/trun-1024x301.jpg\" alt=\"\" class=\"wp-image-8806\" srcset=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/trun-1024x301.jpg 1024w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/trun-300x88.jpg 300w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/trun-768x225.jpg 768w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/trun-1536x451.jpg 1536w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/trun-18x5.jpg 18w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/trun.jpg 1857w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The PBX supports two types of VoIP trunks:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Register Trunk<\/strong>: A registration-based SIP trunk that requires authentication (SIP REGISTER) using a username and password. Typically used when connecting to a VoIP provider or another PBX that mandates user authentication.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Peer Trunk<\/strong>: An IP-based SIP trunk that does not require registration. Instead, it relies on IP address authentication for communication between two VoIP systems, such as between your PBX and a VoIP provider or another PBX.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-vivid-red-color has-text-color has-link-color wp-elements-7eb3a9efbf6cfa56aafff685030d093e\"><em>Note: The configuration settings vary depending on the selected trunk type.<\/em><\/li>\n<\/ul>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>Register trunk<\/strong><\/p>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-861d21acee980af290a651cb60b21590 wp-block-paragraph\" style=\"color:#4e7188;font-size:25px\"><strong>Basic Information<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large image-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"908\" src=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-102-1024x908.png\" alt=\"\" class=\"wp-image-8499\" srcset=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-102-1024x908.png 1024w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-102-300x266.png 300w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-102-768x681.png 768w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-102-14x12.png 14w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-102.png 1497w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Active<\/strong>: Enable this option to activate the trunk for use in all applicable routes. This setting is enabled by default.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Provider Name<\/strong>: Defines the name used to identify the SIP trunk within the system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Trunk Type<\/strong>: Specifies the trunk connection method, such as registration-based trunking.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Username<\/strong>: Defines the username provided by the SIP provider for trunk registration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Password<\/strong>: Defines the password used for SIP authentication.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Authentication Name<\/strong>: Specifies the authentication username when it differs from the main username.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>From User<\/strong>: Defines the user value sent in SIP signaling when required by the provider.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Hostname<\/strong>: Specifies the SIP provider server address.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Port Number<\/strong>: Defines the SIP signaling port used to connect to the provider.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Domain<\/strong>: Defines the SIP domain associated with the trunk provider.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Caller ID<\/strong>: Defines the caller ID information used for outbound calls when supported by the provider configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Record Calls<\/strong>: Enables or disables call recording for calls routed through the trunk.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>ICE Support<\/strong>: Enables ICE negotiation when required for NAT traversal or WebRTC-related media handling.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>DTMF Mode<\/strong>: Defines how DTMF tones are transmitted during calls.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Transport Protocol<\/strong>: Specifies the SIP transport method used by the trunk, such as UDP, TCP or TLS.<\/p>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-8d2b7b44178eac0e7d611dd4ff5f6791 wp-block-paragraph\" style=\"color:#4e7188;font-size:25px\"><strong>Codecs<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large image-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"524\" src=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-103-1024x524.png\" alt=\"\" class=\"wp-image-8505\" srcset=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-103-1024x524.png 1024w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-103-300x154.png 300w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-103-768x393.png 768w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-103-18x9.png 18w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-103.png 1510w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The Codecs tab allows you to manage which audio formats your PBX uses during SIP trunk calls. These codecs define how voice data is compressed and transmitted over the network.<\/p>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-1be6526dbffbc21153b37f9db19c0293 wp-block-paragraph\" style=\"color:#4e7188;font-size:25px\"><strong>Dialed Number Manipulation Rules<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large image-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"369\" src=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-106-1024x369.png\" alt=\"\" class=\"wp-image-8510\" srcset=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-106-1024x369.png 1024w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-106-300x108.png 300w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-106-768x277.png 768w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-106-18x6.png 18w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-106.png 1505w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Prepend<\/strong>: Digits added before the number when a match is found.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Prefix<\/strong>: Digits removed from the dialed number when a match is found.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Pattern<\/strong>: The set of rules used to match dialed numbers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Caller Id:<\/strong>&nbsp;Optional Caller ID number or pattern that must match for the rule to apply.<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>Peer trunk<\/strong><\/p>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-861d21acee980af290a651cb60b21590 wp-block-paragraph\" style=\"color:#4e7188;font-size:25px\"><strong>Basic Information<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large image-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"697\" src=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-69-1024x697.png\" alt=\"\" class=\"wp-image-7892\" srcset=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-69-1024x697.png 1024w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-69-300x204.png 300w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-69-768x523.png 768w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-69-18x12.png 18w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-69.png 1510w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Provider Name<\/strong>: Defines the name used to identify the SIP trunk within the system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Trunk Type<\/strong>: Specifies the trunk connection method. When set to <strong>Peer<\/strong>, the trunk connects directly to a remote SIP endpoint without registration credentials.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Hostname<\/strong>: Specifies the SIP provider or remote peer address.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Port Number<\/strong>: Defines the SIP signaling port used for communication.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Domain<\/strong>: Defines the SIP domain associated with the trunk.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Caller ID<\/strong>: Defines the caller ID information used for outbound calls when supported by the provider or peer configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Record Calls<\/strong>: Enables or disables call recording for calls routed through the trunk.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>ICE Support<\/strong>: Enables ICE negotiation when required for NAT traversal or WebRTC-related media handling.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>DTMF Mode<\/strong>: Defines how DTMF tones are transmitted during calls, commonly used for IVR navigation and keypad input.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Transport Protocol<\/strong>: Specifies the SIP transport method used by the trunk, such as UDP, TCP or TLS.<\/p>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-8d2b7b44178eac0e7d611dd4ff5f6791 wp-block-paragraph\" style=\"color:#4e7188;font-size:25px\"><strong>Codecs<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large image-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"524\" src=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-104-1024x524.png\" alt=\"\" class=\"wp-image-8506\" srcset=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-104-1024x524.png 1024w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-104-300x154.png 300w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-104-768x393.png 768w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-104-18x9.png 18w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-104.png 1510w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The Codecs tab allows you to manage which audio formats your PBX uses during SIP trunk calls. These codecs define how voice data is compressed and transmitted over the network.<\/p>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-1be6526dbffbc21153b37f9db19c0293 wp-block-paragraph\" style=\"color:#4e7188;font-size:25px\"><strong>Dialed Number Manipulation Rules<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large image-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"369\" src=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-105-1024x369.png\" alt=\"\" class=\"wp-image-8509\" srcset=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-105-1024x369.png 1024w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-105-300x108.png 300w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-105-768x277.png 768w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-105-18x6.png 18w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-105.png 1505w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Prepend<\/strong>: Digits added before the number when a match is found.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Prefix<\/strong>: Digits removed from the dialed number when a match is found.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Pattern<\/strong>: The set of rules used to match dialed numbers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Caller Id:<\/strong>&nbsp;Optional Caller ID number or pattern that must match for the rule to apply.<\/p>","protected":false},"author":1,"featured_media":0,"parent":2381,"menu_order":2,"template":"","manualdocumentationcategory":[16],"manual_doc_tag":[],"class_list":["post-2495","manual_documentation","type-manual_documentation","status-publish","hentry","manualdocumentationcategory-xontel-doc"],"_links":{"self":[{"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_documentation\/2495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_documentation"}],"about":[{"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/types\/manual_documentation"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":17,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_documentation\/2495\/revisions"}],"predecessor-version":[{"id":8980,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_documentation\/2495\/revisions\/8980"}],"up":[{"embeddable":true,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_documentation\/2381"}],"wp:attachment":[{"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/media?parent=2495"}],"wp:term":[{"taxonomy":"manualdocumentationcategory","embeddable":true,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manualdocumentationcategory?post=2495"},{"taxonomy":"manual_doc_tag","embeddable":true,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_doc_tag?post=2495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}