AmB2BSession Class Reference

Base class for Sessions in B2BUA mode. More...

#include <AmB2BSession.h>

Inheritance diagram for AmB2BSession:

AmSession AmThread AmEventQueue AmEventHandler AmSipDialogEventHandler AmB2BCalleeSession AmB2BCallerSession

Protected Member Functions

void clear_other ()
virtual void relayEvent (AmEvent *ev)
void relaySip (const AmSipRequest &req)
void relaySip (const AmSipRequest &orig, const AmSipReply &reply)
void terminateLeg ()
virtual void terminateOtherLeg ()
void onSipRequest (const AmSipRequest &req)
void onSipReply (const AmSipReply &reply)
void process (AmEvent *event)
virtual void onB2BEvent (B2BEvent *ev)
virtual void onOtherBye (const AmSipRequest &req)
virtual void onOtherReply (const AmSipReply &reply)
 AmB2BSession (const string &other_local_tag)

Protected Attributes

string other_id
bool sip_relay_only
TransMap relayed_req
map< int, AmSipRequestrecvd_req

Detailed Description

Base class for Sessions in B2BUA mode.

It has two legs: Callee- and caller-leg.


Member Function Documentation

void AmB2BSession::onB2BEvent ( B2BEvent ev  )  [protected, virtual]

B2BEvent handler

Reimplemented in AmB2BCallerSession, and AmB2BCalleeSession.

void AmB2BSession::onOtherReply ( const AmSipReply reply  )  [protected, virtual]

INVITE from other leg has been replied

void AmB2BSession::onSipRequest ( const AmSipRequest req  )  [protected, virtual]

See also:
AmSession

Reimplemented from AmSession.

void AmB2BSession::process ( AmEvent event  )  [protected, virtual]

See also:
AmEventQueue

Reimplemented from AmSession.

void AmB2BSession::relayEvent ( AmEvent ev  )  [protected, virtual]

Relay one event to the other side.

void AmB2BSession::terminateLeg (  )  [protected]

Terminate our leg and forget the other.

Reimplemented in AmB2BCallerSession.

void AmB2BSession::terminateOtherLeg (  )  [protected, virtual]

Terminate the other leg and forget it.

Reimplemented in AmB2BCallerSession.


Field Documentation

string AmB2BSession::other_id [protected]

local tag of the other leg

map<int,AmSipRequest> AmB2BSession::recvd_req [protected]

Requests received for relaying

TransMap AmB2BSession::relayed_req [protected]

Requests which have been relayed (sent)

bool AmB2BSession::sip_relay_only [protected]

Tell if the session should process SIP request itself or only relay them.


The documentation for this class was generated from the following files:
Generated on Thu Mar 8 00:12:46 2007 for Sems by  doxygen 1.4.7
Home |  Recent changes |  Search |  Glossary |  Sitemap |  Login