SIP Forwarding Proxy Application
A forwarding proxy forwards a SIP request to a single SIP address and returns the responses to the sender. Basic forwarding proxies are best handled in the MSPL message filter. This description shows the object model for the forwarding behavior.
SIP Forwarding Proxy Behavior
The following diagram illustrates the basic flow of a forwarding proxy.
When a message is dispatched to the application by the MSPL script, aobject is returned to the method inside the application designated by the call. Attached to this object is a new object, which contains the object as the property.
The Request forwarding process starts by initiating a single branch with a call to . After that, call , passing in the cloned Request.
Responses are handled asynchronously through thedelegate. The event is triggered when a response for a sent Request is received, and the corresponding object is returned as the property.
To proxy the response, call ResponseReceivedEventArgs.Response., passing in
When responses have been received for the forwarded request, the object space containing the ServerTransaction and its sole branch will be automatically disposed of by the server agent, unless the ServerTransaction.Close() method on ServerTransaction has been specifically overridden and contains post-transaction directives.