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
- 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.
- Enter the name of the Trunk you wish to create. You will be prompted with the minimum required settings.
vbox-markm(config)# trunk building_a!! Notice: Editing new item: building_a!! Notice: Minimum requirements needed for insert:!! device_type!! desc!! capacityvbox-markm(config-trunk building_a)# |
3) Enter the minimums 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)# capacity 50vbox-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) After use the show command to ensure your settings have saved.
vbox-markm(config-trunk building_a)# show! Generating running-config!!!!! -------------- Trunks ----------------trunk building_a capacity 50 desc "Main building" device_type SIP prestart_media no record no trunk_handler_name default sip allow ulaw,alaw,adpcm,gsm call-limit 50 canreinvite no disallow g723,slin,ilbc,lpc10,g729,speex,g726aal2,g722 host dynamic nat yes qualify yes rtpholdtimeout 60 rtptimeout 60 secret 9a97c729fdce1f0a5d68495f82c5159e sendrpid yes trustrpid no username building_a exit exitexitvbox-markm(config-trunk building_a)# |
5) 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) Lastly, do a show command to ensure you settings were saved.
vbox-markm(config-trunk building_a)# show! Generating running-config!!!!! -------------- Trunks ----------------trunk building_a capacity 50 desc "Main building" device_type SIP prestart_media no record no trunk_handler_name Nathans_Test_TrunkHandler sip allow ulaw,alaw,adpcm,gsm call-limit 50 canreinvite no disallow g723,slin,ilbc,lpc10,g729,speex,g726aal2,g722 host dynamic nat yes qualify yes rtpholdtimeout 60 rtptimeout 60 secret 9a97c729fdce1f0a5d68495f82c5159e sendrpid yes trustrpid no username building_a exit exitexitvbox-markm(config-trunk building_a)# |
Trunk Settings Description
You can also use the ? key to view description while in CLI. * indicates a requires 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 |