Revision
15140
Author
andrew
Date
2009-10-12 14:09:34 -0500 (Mon, 12 Oct 2009)

Log Message

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

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (15139 => 15140)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	2009-10-12 16:21:39 UTC (rev 15139)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	2009-10-12 19:09:34 UTC (rev 15140)
@@ -3724,6 +3724,7 @@
 						//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);
 					}