# Phonegroup

**Phonegroups** serve as a collection of phones. **Phonegroups** also serve as a default caller ID when calls are placed outside via a carrier **trunk**. It will also do this on a per-trunk basis for 911 calls.

# Adding a Phonegroup

1\) Enter the CLI's configuration mode

2\) Enter the name of the **Phonegroup** you wish to create. You will be prompted with the minimum required settings.

```
servername(config)# phonegroup kitchen_installs
!! Notice: Editing new item: kitchen_installs
!! Notice: Minimum requirements needed for insert:
!!   callerid_name
!!   callerid_number
!!   desc
servername(config-phonegroup kitchen_installs)#
```

<div class="columnLayout single" data-layout="single" id="bkmrk-"><div class="cell normal" data-type="normal"><div class="innerCell"><div class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code" style="border-width: 1px;"><div class="codeContent panelContent pdl"><div><div class="syntaxhighlighter sh-confluence nogutter  java" id="bkmrk-servername%28config%29%23--1"></div></div></div></div></div></div></div>3\) Choose settings appropriate to your organization's needs. You can use the **"?" key** on your keyboard to get a description of the various settings.

```
servername(config-phonegroup kitchen_installs)# callerid_name "Bob's Carpet Company"
servername(config-phonegroup kitchen_installs)# callerid_number 5183207755
servername(config-phonegroup kitchen_installs)# desc "Kitchen installs for Bob's Carpet"
servername(config-phonegroup kitchen_installs)# show
```

<div class="columnLayout single" data-layout="single" id="bkmrk--1"><div class="cell normal" data-type="normal"><div class="innerCell"><div class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code" style="border-width: 1px;"><div class="codeContent panelContent pdl"><div><div class="syntaxhighlighter sh-confluence nogutter  java" id="bkmrk-servername%28config-ph-1"></div></div></div></div></div></div></div>4\) After configuring everything, use the show command to ensure the settings have been saved.

```
servername(config-phonegroup kitchen_installs)# show
! Generating running-config
!!!
 
! -------------- Phonegroups ----------------
phonegroup kitchen_installs
  callerid_name "Bob's Carpet Company"
  callerid_number 5183207755
  desc "Kitchen installs for Bob's Carpet"
  record no
  tenant_name default
  exit
 
exit
```

<div class="columnLayout single" data-layout="single" id="bkmrk--2"><div class="cell normal" data-type="normal"><div class="innerCell"><div class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code" style="border-width: 1px;"><div class="codeContent panelContent pdl"><div><div class="syntaxhighlighter sh-confluence nogutter  java" id="bkmrk-servername%28config-ph-3"></div></div></div></div></div></div></div># Phonegroup Settings Description

You can also use the "**?**" key to view the descriptions while in the CLI. \* indicates a required setting.

<table border="1" class="confluenceTable tablesorter tablesorter-default" id="bkmrk-%21-comments-callerid_" role="grid" style="width: 81.6049%; border-collapse: collapse; border-style: solid; height: 504.8px;"><thead><tr role="row" style="height: 29.8px;"><td class="confluenceTd" style="width: 28.486%; height: 29.8px;">Setting  
</td><td class="confluenceTd" style="width: 71.514%; height: 29.8px;">Comments</td></tr></thead><tbody><tr role="row" style="height: 35.4px;"><td class="confluenceTd" style="width: 28.486%; height: 35.4px;">callerid\_name</td><td class="confluenceTd" style="width: 71.514%; height: 35.4px;">Force this callerid name when receiving calls from this trunk

</td></tr><tr role="row" style="height: 29.8px;"><td class="confluenceTd" style="width: 28.486%; height: 29.8px;">callerid\_number</td><td class="confluenceTd" style="width: 71.514%; height: 29.8px;">Force this callerid number when receiving calls from this trunk</td></tr><tr role="row" style="height: 29.8px;"><td class="confluenceTd" style="width: 28.486%; height: 29.8px;">capacity</td><td class="confluenceTd" style="width: 71.514%; height: 29.8px;">(\*) Maximum number of concurrent calls to/from this trunk</td></tr><tr role="row" style="height: 29.8px;"><td class="confluenceTd" style="width: 28.486%; height: 29.8px;">desc</td><td class="confluenceTd" style="width: 71.514%; height: 29.8px;">(\*) Non-functional description</td></tr><tr role="row" style="height: 35.4px;"><td class="confluenceTd" style="width: 28.486%; height: 35.4px;">device\_type</td><td class="confluenceTd" style="width: 71.514%; height: 35.4px;">(\*) Protocol that this device will use

</td></tr><tr role="row" style="height: 29.8px;"><td class="confluenceTd" style="width: 28.486%; height: 29.8px;">do</td><td class="confluenceTd" style="width: 71.514%; height: 29.8px;">To run exec commands in config mode</td></tr><tr role="row" style="height: 29.8px;"><td class="confluenceTd" style="width: 28.486%; height: 29.8px;">exit</td><td class="confluenceTd" style="width: 71.514%; height: 29.8px;">Exit from this level (with notification of incomplete config)</td></tr><tr role="row" style="height: 29.8px;"><td class="confluenceTd" style="width: 28.486%; height: 29.8px;">iax</td><td class="confluenceTd" style="width: 71.514%; height: 29.8px;">Change IAX-specific trunk settings</td></tr><tr role="row" style="height: 35.4px;"><td class="confluenceTd" style="width: 28.486%; height: 35.4px;">incoming\_context\_label

</td><td class="confluenceTd" style="width: 71.514%; height: 35.4px;">  
</td></tr><tr role="row" style="height: 29.8px;"><td class="confluenceTd" style="width: 28.486%; height: 29.8px;">no</td><td class="confluenceTd" style="width: 71.514%; height: 29.8px;">Clear settings</td></tr><tr role="row" style="height: 29.8px;"><td class="confluenceTd" style="width: 28.486%; height: 29.8px;">prestart\_media</td><td class="confluenceTd" style="width: 71.514%; height: 29.8px;">  
</td></tr><tr role="row" style="height: 35.4px;"><td class="confluenceTd" style="width: 28.486%; height: 35.4px;">record</td><td class="confluenceTd" style="width: 71.514%; height: 35.4px;">Whether to record all calls to/from this device

</td></tr><tr role="row" style="height: 29.8px;"><td class="confluenceTd" style="width: 28.486%; height: 29.8px;">show</td><td class="confluenceTd" style="width: 71.514%; height: 29.8px;">Show the running-config for the current item</td></tr><tr role="row" style="height: 35.4px;"><td class="confluenceTd" style="width: 28.486%; height: 35.4px;">sip</td><td class="confluenceTd" style="width: 71.514%; height: 35.4px;">Change SIP-specific trunk settings

</td></tr><tr role="row" style="height: 29.8px;"><td class="confluenceTd" style="width: 28.486%; height: 29.8px;">trunk\_handler\_name</td><td class="confluenceTd" style="width: 71.514%; height: 29.8px;">Name of the trunkhandler to use for incoming call processing</td></tr></tbody></table>