| 50 | |
| 51 | Congratulations - now you should have a running P2PNS installation. With this setup you could connect a second SIP UA to the same local proxy and start a call between the two UAs. |
| 52 | |
| 53 | Of course a peer-to-peer network with a single node is not very interesting ;-) You have to alternatives to add additional overlay nodes: |
| 54 | |
| 55 | === Emulation of additional nodes by using the tun interface (needs root privileges) === |
| 56 | |
| 57 | 5a. Adapt !OverSim-20080919/Simulations/realworld/setup-realdht to your environment (username and LD_LIBRARY_PATH). If you removed the bootstrapIP paramter from realdhtapp.ini in step 5 restore the old "10.6.0.1" setting. |
| 58 | |
| 59 | 6a. Start !OverSim, enter your password and click on the "FAST" button for both !OverSim processes: |
| 60 | {{{ |
| 61 | cd ~/sim/OverSim/Simulations/realworld |
| 62 | ./setup-realdht |
| 63 | }}} |
| 64 | |
| 65 | In this configuration there is a second !OverSim process emulating 10 additional overlay nodes. |
| 66 | |
| 67 | === Adding additional overlay nodes (you need multiple machines for this) === |
| 68 | |
| 69 | 9. Install OverSim and OpenSER on a second machine. |
| 70 | |
| 71 | 10. Now change realdhtapp.ini on the second machine: |
| 72 | {{{ |
| 73 | - Replace the run number (''Run'' and ''default-run'') by a unique number for each node |
| 74 | (Otherwise all nodes will have the same nodeID!) |
| 75 | - Set bootstrapIP to the IP of the first overlay node |
| 76 | |
| 77 | 11. Start OverSim and OpenSER on the second machine (see steps 6 and 7). |
| 78 | |