AmCmd Struct Reference

represents a command received from AmCtrlInterface Structure to store the parameters. More...

#include <AmCmd.h>


Public Member Functions

string getHeader (const string &hdr_name) const
bool stripHeader (const string &hdr_name)
bool findHeader (const string &hdr_name, size_t &pos1, size_t &pos2, size_t &hdr_start) const
void addHeader (const string &hdr)

Data Fields

string cmd
string method
string user
string domain
string dstip
string port
string r_uri
string from_uri
string from
string to
string callid
string from_tag
string to_tag
int cseq
string key
string route
string next_hop
string hdrs


Detailed Description

represents a command received from AmCtrlInterface Structure to store the parameters.


Member Function Documentation

void AmCmd::addHeader ( const string &  hdr  ) 

add a header. Caution: this does not check for duplicates.

bool AmCmd::findHeader ( const string &  hdr_name,
size_t &  pos1,
size_t &  pos2,
size_t &  hdr_start 
) const

find a header, if found, value is between pos1 and pos2 and hdr start is the start of the header

Returns:
true if found

bool AmCmd::stripHeader ( const string &  hdr_name  ) 

remove a header

Returns:
whether header existed


Field Documentation

string AmCmd::hdrs

Additional headers

string AmCmd::key

Incoming request only: transaction number needed by Ser's 't_reply'

Pre-calculated next hop for Ser's 't_uac_dlg'.

string AmCmd::route

Pre-calculated route set for SIP 'Route:' header.


The documentation for this struct 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