[Freeswitch-svn] [commit] r6562 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
mikej at freeswitch.org
Fri Dec 7 09:31:48 EST 2007
Author: mikej
Date: Fri Dec 7 09:31:48 2007
New Revision: 6562
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
Log:
add info responses (MODENDP-56)
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Fri Dec 7 09:31:48 2007
@@ -1755,6 +1755,8 @@
from->a_display ? " " : "",
URL_PRINT_ARGS(from->a_url),
sip->sip_payload->pl_data);
+ /* Send 415 Unsupported Media response */
+ nua_respond(nh, SIP_415_UNSUPPORTED_MEDIA, NUTAG_WITH_THIS(nua), TAG_END());
return;
}
@@ -1782,6 +1784,9 @@
/* print debug info */
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "INFO DTMF(%s)\n", dtmf_digit);
+ /* Send 200 OK response */
+ nua_respond(nh, SIP_200_OK, NUTAG_WITH_THIS(nua), TAG_END());
+
return;
}
More information about the Freeswitch-svn
mailing list