If it is necessary to use SIP Domain for the registration, use the following command:
esr(config-sip-profile)# sip-domain registration enable
In this configuration all calls will be directed to SIP proxy server. If it is necessary to specify another direction
for outgoing calls, you should perform the following:
Create a numbering plan, see section Dial plan configuration example.
Next, assign the created dial plan to the SIP profile:
esr(config)# sip profile 1
esr(config-sip-profile)# dialplan pattern firstDialplan
This completes the configuration of a dial plan for SIP profile.
Enable SIP profile:
esr-12v(config-sip-profile)# enable
This completes the baseline configuration of SIP profile:
esr(config-sip-profile)# exit
The next step is to configure subscriber ports:
esr(config)# interface voice-port 1
Specify a subscriber number:
esr(config-voice-port-fxs)# sip user phone 4101
Specify a displayed name:
esr(config-voice-port-fxs)# sip user display-name user-one
Used SIP profile:
esr(config-voice-port-fxs)# profile sip 1
Configure login and password for authentication
esr(config-voice-port-fxs)# authentication name login-4101
esr(config-voice-port-fxs)# authentication password superpassword
This completes the baseline configuration of a subscriber port:
esr(config-voice-port-fxs)# exit