First, let's take a look at my sip. conf file, as shown below:
- [201]
- User= 201
- Type = friend
- Secret = 1234
- Host = dynamic
- Context = incoming
- [202]
- User= 202
- Type = friend
- Secret = 1234
- Host = dynamic
- Context = incoming
- [1234]
- User= 1234
- Type = friend
- Secret = 1234
- Host = dynamic
- Context = incoming
- [0]
- User = 0
- Type = friend
- Secret = 1234
- Host = dynamic
- Context = incoming
- [1]
- User = 1
- Type = friend
- Secret = 1234
- Host = dynamic
- Context = incoming
- [2]
- User = 2
- Type = friend
- Secret = 1234
- Host = dynamic
- Context = incoming
201,202,123, 0, 1, and four extensions are defined.
OK, enter sip show peers in the CLI.
OK.
Now open X-Lite to set the account as follows:
192.168.1.33 is the address of my asterisk server. After login, there will be a response in the asterisk terminal, as shown below:
The extension 202 is successfully registered.
The following is the interface after the X-lite registration is successful.
Okay. Now enter the SIP show peers in the CLI terminal.
Extension 202 has been launched, and the system has recorded its IP address and port, which are monitored by asterisk.
Now, the experiment is complete.
------------- Click it to enter a word ----------------