This is an example of using the SIP test agent modules that are being developed for NetBeans to deploy and debug the ClickToDial sample. You can read through a description of the ClickToDial sample
to get more information about the sample application.
The code for ClickToDial is available for download here
.
I am using Sailfin build 14
, NetBeans 6.0 (the Web and Java EE bundle)
and release 0.1 of the Test Agent
.
This tutorial assumes that you have successfully:
- Installed Sailfin
- Installed NB 6.0
- Downloaded the ClickToDial sample
- Install the Test Agent
- Download the modules that implement the test agent
- Install these modules into NetBeans 6.0
- Prepare the server
- Register the Sailfin domain in the IDE
- Start the domain in "Debug mode"
- Verify that there is a JDBC Resource named jdbc/sample registered with the server
- Open the ClickToDial project in the IDE
- Use the "Undeploy and Deploy" item from The ClickToDial project's right click menu to deploy the code to the domain.
- Open your browser and access http;//localhost:8080/ClickToDial
- Press the login button
- Register Alice
- Click the Test Agent tool in the Build bar
This Test Agent will be Alice's "phone".
- Press the New Request button in the Test Agent window
- Press the Send button
- Reload the page in the browser
Alice still doesn't have a SIP URI!
- Open the source to clicktodial.sip.RegistrarServlet in the IDE and set a breakpoint in the doRegister method
- Attach to the server
- Switch back to the Test Agent tab and press the 'Send Message' button
- Step through the doRegister method and discover that the REGISTER method needs to have an Expires header
- Switch back to the Test Agent tab and presse the New Request button. Add an Expires header to the message and press Send.
- Step through the doRegister method again and see that expire has a value > 0!
- Switch back to the browser and reload the page.
Now Alice's "phone" (the test agent) is registered.
- Register Bob
- Log out as Alice and login as Bob.
- Switch back to the IDE and press the Test Agent tool, to open a second test agent tab.
- Double click on the new tab to make the window "full screen".
- Change the Listening Port to 6061 and press the Apply button.
- Double click the tab again to reduce the back to its original size.
- Press the New request button and change all reference to Alice to Bob.
Add an Expires header to this message and Send it.
- Reload the page in the browser.
Bob's "phone" is registered, and he can click the Call link.
 |
This page (revision-18) was last changed on
02-Jan-08 21:34 PM, -0800
by VinceKraemer.
This page was created on
17-Dec-07 11:32 AM, -0800 by VinceKraemer.
More info...
| Version |
Date |
Author |
Size |
Changes ... |
|
18
|
02-Jan-08 21:34 PM, -0800
|
VinceKraemer |
4504 |
to previous
|
|
17
|
18-Dec-07 15:16 PM, -0800
|
VinceKraemer |
4504 |
to previous
|
to last
|
|
16
|
18-Dec-07 15:09 PM, -0800
|
VinceKraemer |
4389 |
to previous
|
to last
|
|
15
|
18-Dec-07 15:08 PM, -0800
|
VinceKraemer |
4391 |
to previous
|
to last
|
|
14
|
18-Dec-07 15:00 PM, -0800
|
VinceKraemer |
4292 |
to previous
|
to last
|
|
13
|
18-Dec-07 14:55 PM, -0800
|
VinceKraemer |
8855 |
to previous
|
to last
|
|
12
|
18-Dec-07 14:50 PM, -0800
|
VinceKraemer |
8556 |
to previous
|
to last
|
|
11
|
18-Dec-07 14:38 PM, -0800
|
VinceKraemer |
7966 |
to previous
|
to last
|
|
10
|
18-Dec-07 14:31 PM, -0800
|
VinceKraemer |
7514 |
to previous
|
to last
|
|
9
|
18-Dec-07 14:16 PM, -0800
|
VinceKraemer |
7092 |
to previous
|
to last
|
|
8
|
18-Dec-07 14:05 PM, -0800
|
VinceKraemer |
6741 |
to previous
|
to last
|
|
7
|
18-Dec-07 14:04 PM, -0800
|
VinceKraemer |
6764 |
to previous
|
to last
|
|
6
|
18-Dec-07 14:02 PM, -0800
|
VinceKraemer |
6600 |
to previous
|
to last
|
|
5
|
18-Dec-07 10:33 AM, -0800
|
VinceKraemer |
6530 |
to previous
|
to last
|
|
4
|
17-Dec-07 12:07 PM, -0800
|
VinceKraemer |
5204 |
to previous
|
to last
|
|
3
|
17-Dec-07 11:43 AM, -0800
|
VinceKraemer |
5868 |
to previous
|
to last
|
|
2
|
17-Dec-07 11:35 AM, -0800
|
VinceKraemer |
5638 |
to previous
|
to last
|
|
1
|
17-Dec-07 11:32 AM, -0800
|
VinceKraemer |
13080 |
to last
|