|
|
|
@ -844,7 +844,8 @@ int mm7_get_envelope(MSoapMsg_t *m,
|
|
|
|
|
}
|
|
|
|
|
if (uaprof) {
|
|
|
|
|
Octstr *s = http_header_value(m->envelope, octstr_imm("UACapabilities"));
|
|
|
|
|
if (uaprof_tstamp) *uaprof_tstamp = -1;
|
|
|
|
|
if (uaprof_tstamp)
|
|
|
|
|
*uaprof_tstamp = -1;
|
|
|
|
|
if (s) {
|
|
|
|
|
char *s1 = octstr_get_cstr(s);
|
|
|
|
|
char *s2 = strrchr(s1, ',');
|
|
|
|
@ -854,6 +855,13 @@ int mm7_get_envelope(MSoapMsg_t *m,
|
|
|
|
|
octstr_delete(s, s2-s1, octstr_len(s));
|
|
|
|
|
}
|
|
|
|
|
*uaprof = s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (uaprof_tstamp && *uaprof_tstamp <= 0) { /* Use Date field */
|
|
|
|
|
Octstr *s = http_header_value(m->envelope, octstr_imm("Date"));
|
|
|
|
|
if (s && uaprof_tstamp)
|
|
|
|
|
*uaprof_tstamp = date_parse_http(s);
|
|
|
|
|
octstr_destroy(s);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|