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
1) 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.
2) 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 !! capacity vbox-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 50 vbox-markm(config-trunk building_a)# desc "Main building" vbox-markm(config-trunk building_a)# device_type SIP 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 exit exit vbox-markm(config-trunk building_a)# |
5) Next define a Trunk Handler that the Trunk will use.
vbox-markm(config-trunk building_a)# trunk_handler_name audiocodes local_loop pstn nycvoip branch nbs- 9734067200 default localyny chvoip Nathans_Test_TrunkHandler vbox-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 exit exit vbox-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 |