public final class Proxy
extends java.lang.Object
Acting as a proxy is a very common thing in SIP and this basic naive proxy example shows you how to implement your own SIP proxy.
To test it out, run it and then use SIPp to send some traffic through. The setup will look like this:
+---------+ +------------+ +---------+ | UAC | --- INVITE --> | Proxy | --- INVITE --> | UAS | | (SIPp) | <-- 200 OK --- | (our code) | <-- 200 OK --- | (SIPp) | +---------+ +------------+ +---------+
Our Proxy will sit in between the UAC and the UAS relaying SIP messages between those two endpoints. Of course, the UAC and UAS can be any SIP capable software/device out there but in order to test this example, using SIPp is the simplest option, which also will allow us to performance test our Proxy.
Basic mini sip stack for acting as an UAS. Run it and then use e.g. SIPp (http://sipp.sourceforge.net) to test it out like so:
| Constructor and Description |
|---|
Proxy() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
Copyright © 2015. All Rights Reserved.