Now that we have described our first SIP proxy configuration it is time to start up the server and configure two SIP phones so that we can make telephone calls between the two registered clients.
To start SER as a non-daemon process that runs in the foreground you need to open up your favourite terminal, such as a BASH shell.
Then issue the following command:
/usr/local/sbin/ser D E
The D parameter tells SER to not run as a daemon (ie, dont run in the background) while the E parameter tells SER to send any errors to stderr.
SER should start up and say that it is listening for TCP and UDP on the IP address of the computer that you are using. The IP must not be 127.0.0.1 because this IP is your loopback interface and SIP phones will not be able to contact your SIP proxy.
Please note that unless SER is compiled with mode=debug, this may not work on all architectures. SER will just print some basic stuff and then be quiet.
Now that SER is running you should configure two (2) or more SIP phones. A good example of a SIP phone is a Grandstream BT100 because they are inexpensive and work well for basic SIP testing.
When configuring your SIP phones you should use the following settings:
SIP Proxy | IP Address of your SER server |
SIP Port | 5060 |
Outbound Proxy | Leave blank |
User name | Enter a unique numeric value. A good example would be 1000 for the first phone and 1001 for the second. Each phone should have a unique user name, although you can have more than one SIP phone with the same credentials. |
Authentication ID | If your SIP phone has such a field, you can use the same value as the User Name field or just leave it blank. |
Password | You can leave this field blank for now. If you key a value in it will be ignored because out SIP proxy does not perform any authentication at this point. |
You should now be able to boot up your SIP phones and call each other. The numbers you would dial are whatever values you keyed in to the User Name fields. So in our example SIP phone 1000 can dial 1001 and SIP phone 1001 can dial 1000.