add date header to 200OK on register

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11022 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-12-31 16:23:24 +00:00
parent 748c1dc126
commit 0b8ec49dd8
1 changed files with 8 additions and 1 deletions

View File

@ -1064,6 +1064,8 @@ uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_hand
if (regtype == REG_REGISTER) {
char exp_param[128] = "";
char date[80] = "";
s_event = NULL;
if (exptime) {
@ -1086,7 +1088,12 @@ uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_hand
}
}
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);