The SIP Servlet Tutorial

Running the Click-To-Dial Example

This section describes how to deploy and run the Click-To-Dial Example in NetBeans IDE.

ProcedureDeploying and Running Click-To-Dial in NetBeans IDE

  1. In NetBeans IDE, click Open Project and navigate to sip-tutorial/examples/ClickToDial.

  2. Right-click on the ClickToDial project and select Run.

    This will open a browser to http://localhost:8080/ClickToDial.

ProcedureRegistering Alice's SIP Phone

  1. In your web browser select Alice from the drop-down menu and click Login.

  2. In X-Lite right-click on the phone and select SIP Account Settings.

  3. Click Add.

  4. Enter Alice under Display Name, User Name, and Authorization User Name.

  5. Enter test.com under Domain.

  6. Check Register With Domain and Receive Incoming Calls.

  7. Under Send Outbound Via select Proxy and enter Communications Server IP address:5060. For example, 192.168.0.2:5060.

  8. Click Ok.

ProcedureRegistering Bob's SIP Phone

  1. On a different machine in your web browser go to http://Communications Server IP Address:8080/ClickToDial. For example, http://192.168.0.2:8080/ClickToDial.

  2. Select Bob from the drop-down menu and click Login.

  3. In the second machine's X-Lite right-click on the phone and select SIP Account Settings.

  4. Click Add.

  5. Enter Bob under Display Name, User Name, and Authorization User Name.

  6. Enter test.com under Domain.

  7. Check Register With Domain and Receive Incoming Calls.

  8. Under Send Outbound Via select Proxy and enter Communications Server IP address:5060. For example, 192.168.0.2:5060.

  9. Click Ok.

ProcedurePlacing a Call From Alice To Bob

  1. On Alice's machine, refresh the web browser to see that both Alice and Bob are registered.

  2. Click Call next to Bob's SIP address to place a call to Bob.

  3. In X-Lite click Answer to place the call to Bob.

    X-Lite will initiate a call to Bob's X-Lite instance using Communications Server as a proxy.

  4. On Bob's machine, click Answer to receive the call from Alice.

    Alice and Bob are now connected and may talk.