Add a log message when the invite has no SDP and 3pcc isn't enabled to aid troubleshooting

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15140 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Andrew Thompson 2009-10-12 19:09:34 +00:00
parent 3fd6e624f0
commit 9d99fe8e89
1 changed files with 1 additions and 0 deletions

View File

@ -3724,6 +3724,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
//Moves into CS_INIT so call moves forward into the dialplan
switch_channel_set_state(channel, CS_INIT);
} else {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "No SDP in INVITE and 3pcc not enabled, hanging up.\n");
switch_channel_set_variable(channel, SWITCH_ENDPOINT_DISPOSITION_VARIABLE, "3PCC DISABLED");
switch_channel_hangup(channel, SWITCH_CAUSE_MANDATORY_IE_MISSING);
}