Configuring basic functions
After creating a POTS voice entity, you need to configure basic functions of the POTS voice entity.
Configuration guidelines
When you configure basic functions, follow these guidelines:
Two communication parties can communicate correctly only if they share some identical codec algorithms. Therefore, when you configure the compression command, make sure that the devices on both sides share identical codec algorithms. Otherwise, the call will fail.
Support for the codec algorithms varies with cards and the part related to the upper layer (voice entity) is independent of hardware. Therefore, the upper layer only verifies the maximum range for each codec. It is up to the DSP to determine whether the value within this range is valid according to the hardware type. If yes, the upper layer sends the value. If not, the default value for the codec is adopted. If you find that a configured packetization period does not take effect, first check whether the value configured for the card and codec is valid.
Configuration procedure
To configure basic functions of the POTS voice entity:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter voice view. | voice-setup | N/A |
3. Enter voice dial program view. | dial-program | N/A |
4. Create a POTS voice entity and enter POTS voice entity view. | entity entity-number pots | N/A |
5. Specify the codecs and their priority levels for the POTS voice entity. | compression { 1st-level | 2nd-level | 3rd-level | 4th-level } { g711alaw | g711ulaw | g723r53 | g723r63 | g726r16 | g726r24 | g726r32 | g726r40 | g729a | g729br8 | g729r8 } | Optional. By default, the codec with the first priority is g729r8, that with the second priority is g711alaw, that with the third priority is g711ulaw, and that with the fourth priority is g723r53. Only the following interface cards support the g726 codec:
|
6. Configure the voice packetization period for different codecs. | payload-size { g711 | g723 | g726r16 | g726r24 | g726r32 | g726r40 | g729 } time-length | Optional. The default is 20 milliseconds for a G.711 codec, and 30 milliseconds for G.723, G.726, and G.729 codecs. |
7. Configure voice entity description. | description string | Optional. No description by default. |
8. Change the management state of the voice entity from up to down. | shutdown | Optional. By default, the management state of the voice entity is up. |