Trunk
A Trunk is a link to another system, such as a phone carrier, pbx, etc, to send and receive calls. A Trunk will need a Trunk Handler defined beforehand to function properly.
Adding a Trunk
- Enter the CLI's configuration mode
2) Ensure you have already made a Trunk Handler, while you can create a Trunk without defining one, you will still need to define one to ensure that the phone system is properly configured.
3) Enter the name of the Trunk you wish to create. You will be prompted with the minimum required
settings.settings
1)
vbox-markm(config)# |
3)4) Enter the minimumsminimum required settings for adding the Trunk, you can use the "?" key to get a description of all the available settings.
vbox-markm(config-trunk building_a)# desc "Main building"vbox-markm(config-trunk building_a)# device_typeSIP IAX2 DAHDI VIRTUAL SIP-VIRTUAL ### Used tab to get a list of the available devices.
vbox-markm(config-trunk building_a)# device_type SIP |
4)5) After adding the trunk, use the show command to ensure your settings have been saved.
! Generating running-config!!!!! -------------- Trunks ----------------trunk building_acapacity 50desc "Main building"device_type SIPprestart_media norecord notrunk_handler_name defaultsip
allow ulaw,alaw,adpcm,gsmcall-limit 50canreinvite nodisallow g723,slin,ilbc,lpc10,g729,speex,g726aal2,g722host dynamicnat yesqualify yesrtpholdtimeout 60rtptimeout 60secret 9a97c729fdce1f0a5d68495f82c5159esendrpid yestrustrpid nousername building_aexit
exitexit
vbox-markm(config-trunk building_a)# |
5)6) Next define a Trunk Handler that the Trunk will use.
vbox-markm(config-trunk building_a)# trunk_handler_nameaudiocodes local_loop pstn nycvoipbranch nbs-9734067200 default localynychvoip Nathans_Test_TrunkHandlervbox-markm(config-trunk building_a)# trunk_handler_name Nathans_Test_TrunkHandler |
6)7) Lastly, do a show command to ensure youyour settings wereare saved.
! Generating running-config!!!!! -------------- Trunks ----------------trunk building_acapacity 50desc "Main building"device_type SIPprestart_media norecord notrunk_handler_name Nathans_Test_TrunkHandlersip
allow ulaw,alaw,adpcm,gsmcall-limit 50canreinvite nodisallow g723,slin,ilbc,lpc10,g729,speex,g726aal2,g722host dynamicnat yesqualify yesrtpholdtimeout 60rtptimeout 60secret 9a97c729fdce1f0a5d68495f82c5159esendrpid yestrustrpid nousername building_aexit
exitexit
vbox-markm(config-trunk building_a)# |
Trunk Settings Description
You can also use the "? " key to view the description while in the CLI. * indicates a requiresrequired setting.
| callerid_name | Force this callerid name when receiving calls from this trunk |
| callerid_number | Force this callerid number when receiving calls from this trunk |
| capacity | (*) Maximum number of concurrent calls to/from this trunk |
| desc | (*) Non-functional description |
| device_type | (*) Protocol that this device will use |
| do | To run exec commands in config mode |
| exit | Exit from this level (with notification of incomplete config) |
| iax | Change IAX-specific trunk settings |
| incoming_context_label | |
| no | Clear settings |
| prestart_media | |
| record | Whether to record all calls to/from this device |
| show | Show the running-config for the current item |
| sip | Change SIP-specific trunk settings |
| trunk_handler_name | Name of the trunkhandler to use for incoming call processing |