mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-29 13:43:07 +00:00
logging improvement
This commit is contained in:
parent
3acd1cc86a
commit
cd6f4fbff9
@ -268,8 +268,6 @@ switch_status_t mg_prc_descriptors(megaco_profile_t* mg_profile, MgMgcoCommand *
|
|||||||
MgMgcoLocalDesc *local;
|
MgMgcoLocalDesc *local;
|
||||||
MgMgcoRemoteDesc* remote;
|
MgMgcoRemoteDesc* remote;
|
||||||
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,"cmd->cmdType.val[%d]\n",cmd->cmdType.val);
|
|
||||||
|
|
||||||
switch (cmd->cmdType.val)
|
switch (cmd->cmdType.val)
|
||||||
{
|
{
|
||||||
case CH_CMD_TYPE_IND:
|
case CH_CMD_TYPE_IND:
|
||||||
@ -675,7 +673,7 @@ switch_status_t handle_mg_add_cmd(megaco_profile_t* mg_profile, MgMgcoCommand *i
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO," Allocated Termination[%p] with term name[%s]\n", (void*)term, term->name);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO," Allocated RTP Termination[%p] with term name[%s]\n", (void*)term, term->name);
|
||||||
|
|
||||||
is_rtp = 0x01;
|
is_rtp = 0x01;
|
||||||
|
|
||||||
@ -692,14 +690,14 @@ switch_status_t handle_mg_add_cmd(megaco_profile_t* mg_profile, MgMgcoCommand *i
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO," Allocated Termination[%p] with term name[%s]\n", (void*)term, term->name);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO," Allocated Physical Termination[%p] with term name[%s]\n", (void*)term, term->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/********************************************************************/
|
/********************************************************************/
|
||||||
/* check if termination already is in call */
|
/* check if termination already is in call */
|
||||||
|
|
||||||
if(term->context){
|
if(term->context){
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO," Termination[%p : %s] "
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR," Termination[%p : %s] "
|
||||||
"already in context[%p -%d]..rejecting ADD \n",
|
"already in context[%p -%d]..rejecting ADD \n",
|
||||||
(void*)term, term->name, (void*)term->context,term->context->context_id);
|
(void*)term, term->name, (void*)term->context,term->context->context_id);
|
||||||
mg_util_set_err_string(&errTxt, " Term already is in call ");
|
mg_util_set_err_string(&errTxt, " Term already is in call ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user