Class SIP::B2buaController
In: sipper/b2bua_controller.rb
Parent: SIP::BaseController

Methods

Public Instance methods

Creates the b2bua request based on the original request. Also creates the peer session if it does not already exist.

Creates a b2bua response based on an original response. If there is no peer session then this fails.

Gets or creates a peer b2bua leg (session). The session passed in as the argument becomes the anchor leg which is the main leg.

Marks this b2bua as transparent which allows the relaying of requests and responses between legs without any controller involvement.

Invalidates this b2bua sessions.

While linking the two sessions to create a b2bua the first argument is treated as the main or anchor leg.

if there exists a peer session then we transparently send the request as a b2bua if transparent flag is on.

if there exists a peer session then we transparently pass the response as a b2bua if transparent flag is true

Transparently passes / relays the request given a peer session exists.

Transparently passes / relays the response given a peer session exists.

Unlinking removes the b2bua association.

[Validate]