class MgcCreateConnection : public MgcCommand

message to create a new connection. Is sent to the gateway

Inheritance:


Public Methods

bool addDetectEvents(const MgcRequestedEvent& parameter)
Add list of ents that have been detected
bool addRequestedEvents(const MgcRequestedEvent& parameter)
Add an event that we wish to be notified about
bool addSignalRequests(const MgcSignalEvent& parameter)
Add a signal that we wish the gateway to produce
void clearDetectEvents()
Clear the list of detected events that have been added to this message
void clearRequestedEvents()
Clear list of evnets that have been added to this message
void clearSignalRequests()
Clear the list of signals that have added to this message
bool containEmptyResponseAck()
this final response for createconnection
MgcCommand* copy()
make a copy of the MgCommand of the appropriate type
string getConnectionId()
Get the ID of this 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 getEndpointId()
Get endpoint that created the notification
SdpSession getLocalConnectionDescriptor()
Get the connection protocol information for this endpoint
int getResponseCode()
Get the response error code
string getResponseString()
Get the description of any response error
int getTransactionId()
MgcCommandType getType()
Get the type of the command
MgcCreateConnection(const MgcCreateConnection& x)
MgcCreateConnection()
MgcCreateConnection(const string& endpointID, const string& callId, const string& connectionMode)
create a connection on the given endpoint. Set the callID and mode
MgcCreateConnection(MgcpCommand* x)
Create by coping another message
bool setBearerInformation(const MgcpBearerInformation& parameter)
Set the optional bearer information
bool setDigitMap(const string& parameter)
Specifiy a digimap for the gateway to collect
bool setLocalConnectionOptions(const MgcpConnectionOptions& parameter)
Set locacal connetion paramters
bool setNotifiedEntity(const string& parameter)
Set who should be notified about events
bool setQuarantineHandling(MgcpNotificationHandling handling, MgcpQuarantineTreatment treatment)
Specify how to deal with quarantined events
void setRemoteConnectionDescriptor(const SdpSession& parameter)
Set the information descriping the connection data of the remote side
bool setRequestIdentifier(const string& parameter)
Set the request identifier that will be passed back
void setResponseAck(const string& parameter)
this function will be handled automatically in future versions by the stack
void setResponseCode( MgcpResponseCode code )
set response code to ack the final response with empty k: line
bool setSecondEndpointId(const string& parameter)
Specify the other enpoint of this call
void setTransactionId( int x )

Public

check to see if there is an empty response ack parameter
if there is one, call agent has to send an ack for receiving
this function is used by the stack

Private Fields

Sptr data
Holds the data for this command

Inherited from MgcCommand:

Public Methods

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

Protected Fields

Sptr responseMsg

Documentation

message to create a new connection. Is sent to the gateway
MgcCreateConnection(const string& endpointID, const string& callId, const string& connectionMode)
create a connection on the given endpoint. Set the callID and mode

MgcCreateConnection(const MgcCreateConnection& x)

this function is used by the stack. Stack users should never call it, as it will probably disappear by the next version.

MgcCreateConnection(MgcpCommand* x)
Create by coping another message

MgcCreateConnection()

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

MgcCommandType getType()
Get the type of the command

int getTransactionId()

void setTransactionId( int x )

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

void setResponseAck(const string& parameter)
this function will be handled automatically in future versions by the stack. users of the stack should never call it.

check to see if there is an empty response ack parameter

if there is one, call agent has to send an ack for receiving

bool containEmptyResponseAck()
this final response for createconnection

void setResponseCode( MgcpResponseCode code )
set response code to ack the final response with empty k: line

bool setBearerInformation(const MgcpBearerInformation& parameter)
Set the optional bearer information

bool setRequestIdentifier(const string& parameter)
Set the request identifier that will be passed back

bool setLocalConnectionOptions(const MgcpConnectionOptions& parameter)
Set locacal connetion paramters

bool addRequestedEvents(const MgcRequestedEvent& parameter)
Add an event that we wish to be notified about

void clearRequestedEvents()
Clear list of evnets that have been added to this message

bool addSignalRequests(const MgcSignalEvent& parameter)
Add a signal that we wish the gateway to produce

void clearSignalRequests()
Clear the list of signals that have added to this message

bool setNotifiedEntity(const string& parameter)
Set who should be notified about events

bool setDigitMap(const string& parameter)
Specifiy a digimap for the gateway to collect

bool setSecondEndpointId(const string& parameter)
Specify the other enpoint of this call

bool setQuarantineHandling(MgcpNotificationHandling handling, MgcpQuarantineTreatment treatment)
Specify how to deal with quarantined events

bool addDetectEvents(const MgcRequestedEvent& parameter)
Add list of ents that have been detected

void clearDetectEvents()
Clear the list of detected events that have been added to this message

void setRemoteConnectionDescriptor(const SdpSession& parameter)
Set the information descriping the connection data of the remote side

string getConnectionId()
Get the ID of this connection

SdpSession getLocalConnectionDescriptor()
Get the connection protocol information for this endpoint

int getResponseCode()
Get the response error code

string getResponseString()
Get the description of any response error

string getEndpointId()
Get endpoint that created the notification

Sptr data
Holds the data for this command


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++