[Freeswitch-svn] [commit] r11022 - freeswitch/trunk/src/mod/endpoints/mod_sofia

FreeSWITCH SVN brian at freeswitch.org
Wed Dec 31 08:23:25 PST 2008


Author: brian
Date: Wed Dec 31 11:23:24 2008
New Revision: 11022

Log:
add date header to 200OK on register

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	Wed Dec 31 11:23:24 2008
@@ -1064,6 +1064,8 @@
 
 	if (regtype == REG_REGISTER) {
 		char exp_param[128] = "";
+		char date[80] = "";
+
 		s_event = NULL;
 
 		if (exptime) {
@@ -1086,7 +1088,12 @@
 			}
 		}
 		
-		nua_respond(nh, SIP_200_OK, SIPTAG_CONTACT(sip->sip_contact), TAG_IF(path_val, SIPTAG_PATH_STR(path_val)), NUTAG_WITH_THIS(nua), TAG_END());
+		switch_rfc822_date(date, switch_timestamp_now());
+		nua_respond(nh, SIP_200_OK, SIPTAG_CONTACT(sip->sip_contact),
+					TAG_IF(path_val, SIPTAG_PATH_STR(path_val)),
+					NUTAG_WITH_THIS(nua),
+					SIPTAG_DATE_STR(date),
+					TAG_END());
 
 		if (s_event) {
 			switch_event_fire(&s_event);



More information about the Freeswitch-svn mailing list