class MgCreateConnection : public MgCommand

this object represents a create connection message received by the gateway

Inheritance:


Public Methods

MgCommand* copy()
make a copy of the MgCommand of the appropriate type
MgcpBearerInformation getBearerInformation()
string getCallId()
Find out the call id
string getConnectionMode()
get the connection mode of the connection
MgcpCommand* getDataPtr()
Get pointer to object holding data. This function is used internally by the stack. users of the stack should never call it.
string getDigitMap()
string getEndpointId()
Get endpoint that created the notification
Sptr <MgEvent> getItemDetectEvents(int index)
get the i'th DetectEvent in this message
Sptr <MgRequestedEvent> getItemRequestedEvents(int index)
get the i'th event in this message
Sptr <MgEvent> getItemSignalRequests(int index)
get the i'th signal in this message
MgcpConnectionOptions getLocalConnectionOptions()
int getNumDetectEvents()
get the number of DetectEvents in this message
int getNumRequestedEvents()
get the number of requested events in this message
int getNumSignalRequests()
get the number of signalled events in this message
SdpSession getRemoteConnectionDescriptor()
Get protocol informaiton for remote side of connection
string getRequestIdentifier()
get the request identifier given in a previous message
string getResponseAck()
this function will be handled automatically in future versionsby the stack. users of the stack should never call it.
MgcpResponseCode getResponseCode()
get the response code
int getTransactionId()
MgCommandType getType()
Get the type of the command
MgCreateConnection(MgcpCommand* x)
this function is used by the stack
MgCreateConnection()
MgCreateConnection(const MgCreateConnection& x)
create a connection on the given endpoint. Set the callID and mode
bool setConnectionId(const string& parameter)
specify the connection id
void setEmptyResponseAck()
a provisional response was sent out earlier
bool setLocalConnectionDescriptor(const SdpSession& parameter)
set the Local connection descriptor
bool setResponseCode(const MgcpResponseCode& code)
set the response error code
bool setResponseString(string response)
set the description of any response error
void setTransactionId(int x)

Public

get who the notification is being sent to
set a empty response ack parameter for final response if

Private Fields

Sptr data
Holds the data for this command

Inherited from MgCommand:

Public Methods

MgcpCommand* getResponsePtr()
Sptr getResponseSptr()
void setResponsePtr(MgcpResponse* p)
void setResponseSptr(const Sptr& p)

Protected Fields

Sptr responseMsg

Documentation

this object represents a create connection message received by the gateway
MgCreateConnection(const MgCreateConnection& x)
create a connection on the given endpoint. Set the callID and mode

MgCreateConnection(MgcpCommand* x)
this function is used by the stack. Stack users should never call it, as it will probably disappear by the next version.

MgCreateConnection()

MgCommand* copy()
make a copy of the MgCommand of the appropriate type

MgCommandType getType()
Get the type of the command

string getEndpointId()
Get endpoint that created the notification

int getTransactionId()

void setTransactionId(int x)

string getResponseAck()
this function will be handled automatically in future versionsby the stack. users of the stack should never call it.

set a empty response ack parameter for final response if

void setEmptyResponseAck()
a provisional response was sent out earlier

MgcpBearerInformation getBearerInformation()

string getCallId()
Find out the call id

string getRequestIdentifier()
get the request identifier given in a previous message

MgcpConnectionOptions getLocalConnectionOptions()

string getConnectionMode()
get the connection mode of the connection

int getNumRequestedEvents()
get the number of requested events in this message

Sptr <MgRequestedEvent> getItemRequestedEvents(int index)
get the i'th event in this message

int getNumSignalRequests()
get the number of signalled events in this message

Sptr <MgEvent> getItemSignalRequests(int index)
get the i'th signal in this message

get who the notification is being sent to

string getDigitMap()

int getNumDetectEvents()
get the number of DetectEvents in this message

Sptr <MgEvent> getItemDetectEvents(int index)
get the i'th DetectEvent in this message

SdpSession getRemoteConnectionDescriptor()
Get protocol informaiton for remote side of connection

bool setConnectionId(const string& parameter)
specify the connection id

bool setLocalConnectionDescriptor(const SdpSession& parameter)
set the Local connection descriptor

bool setResponseCode(const MgcpResponseCode& code)
set the response error code

MgcpResponseCode getResponseCode()
get the response code

bool setResponseString(string response)
set the description of any response error

MgcpCommand* getDataPtr()
Get pointer to object holding data. This function is used internally by the stack. users of the stack should never call it.

Sptr data
Holds the data for this command


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++