主题:[原创]求助:请高手指教
请高手指教:以下代码用什么语言实现的,谢谢^_^
创建和发送H.248事务响应
void processRequest(MegacoTcb *tcb, const
MegacoTransaction *transaction, void *data)
{
MegacoTransactionReply transReply;
size_t i;
/* Construct transaction reply */
MegacoTransactionReplyConstruct(&transReply, transaction);
for(i=0; i<MegacoTransactionGetNumActions(transaction);
++i)
{
const MegacoAction *action =
MegacoTransactionGetAction(transaction, i);
MegacoActionReply actionReply;
size_t j;
/* Construct action reply for each action */
MegacoActionReplyConstruct(&actionReply, action);
for(j=0; j<MegacoActionGetNumCommands(action); ++j)
{
const MegacoCommand *command =
MegacoActionGetCommand(action, j);
MegacoCommandReply commandReply;
/* Construct command reply for each command */
MegacoCommandReplyConstruct(&commandReply, command);
/* Add descriptors to command reply as necessary */
/* ... */
/* Add command reply to action reply */
MegacoActionReplyAddReply(&actionReply, &commandReply);
/* Destruct command reply */
MegacoCommandReplyDestruct(&commandReply);
"ServiceChange = ROOT {\n"
"Services { Method = Restart } } } }";
if(MegacoTransactionConstructParse(&transaction, text,
NULL) != NULL)
{
MegacoEntitySendRequest(&remoteEntity, &transaction,
processReply, userData);
MegacoTransactionDestruct(&transaction);
}
"ServiceChange = ROOT {\n"
"Services { Method = Restart } } } }";
if(MegacoTransactionConstructParse(&transaction, text,
NULL) != NULL)
{
MegacoEntitySendRequest(&remoteEntity, &transaction,
processReply, userData);
MegacoTransactionDestruct(&transaction);
}
创建和发送H.248事务响应
void processRequest(MegacoTcb *tcb, const
MegacoTransaction *transaction, void *data)
{
MegacoTransactionReply transReply;
size_t i;
/* Construct transaction reply */
MegacoTransactionReplyConstruct(&transReply, transaction);
for(i=0; i<MegacoTransactionGetNumActions(transaction);
++i)
{
const MegacoAction *action =
MegacoTransactionGetAction(transaction, i);
MegacoActionReply actionReply;
size_t j;
/* Construct action reply for each action */
MegacoActionReplyConstruct(&actionReply, action);
for(j=0; j<MegacoActionGetNumCommands(action); ++j)
{
const MegacoCommand *command =
MegacoActionGetCommand(action, j);
MegacoCommandReply commandReply;
/* Construct command reply for each command */
MegacoCommandReplyConstruct(&commandReply, command);
/* Add descriptors to command reply as necessary */
/* ... */
/* Add command reply to action reply */
MegacoActionReplyAddReply(&actionReply, &commandReply);
/* Destruct command reply */
MegacoCommandReplyDestruct(&commandReply);
"ServiceChange = ROOT {\n"
"Services { Method = Restart } } } }";
if(MegacoTransactionConstructParse(&transaction, text,
NULL) != NULL)
{
MegacoEntitySendRequest(&remoteEntity, &transaction,
processReply, userData);
MegacoTransactionDestruct(&transaction);
}
"ServiceChange = ROOT {\n"
"Services { Method = Restart } } } }";
if(MegacoTransactionConstructParse(&transaction, text,
NULL) != NULL)
{
MegacoEntitySendRequest(&remoteEntity, &transaction,
processReply, userData);
MegacoTransactionDestruct(&transaction);
}