mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
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:
parent
748c1dc126
commit
0b8ec49dd8
@ -1064,6 +1064,8 @@ uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_hand
|
|||||||
|
|
||||||
if (regtype == REG_REGISTER) {
|
if (regtype == REG_REGISTER) {
|
||||||
char exp_param[128] = "";
|
char exp_param[128] = "";
|
||||||
|
char date[80] = "";
|
||||||
|
|
||||||
s_event = NULL;
|
s_event = NULL;
|
||||||
|
|
||||||
if (exptime) {
|
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) {
|
if (s_event) {
|
||||||
switch_event_fire(&s_event);
|
switch_event_fire(&s_event);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user