FS-9671 fix wrong cseq in notify Expires 0
This commit is contained in:
parent
a49182c0f4
commit
4c45f529f8
|
@ -3686,6 +3686,8 @@ void sofia_presence_handle_sip_i_subscribe(int status,
|
||||||
char buf[1025] = "";
|
char buf[1025] = "";
|
||||||
char *orig_to_user = NULL;
|
char *orig_to_user = NULL;
|
||||||
char *p;
|
char *p;
|
||||||
|
uint32_t callsequence;
|
||||||
|
sip_cseq_t * cseq;
|
||||||
|
|
||||||
if (!sip) {
|
if (!sip) {
|
||||||
return;
|
return;
|
||||||
|
@ -4110,9 +4112,12 @@ void sofia_presence_handle_sip_i_subscribe(int status,
|
||||||
|
|
||||||
if (zstr(full_agent) || (*full_agent != 'z' && *full_agent != 'Z')) {
|
if (zstr(full_agent) || (*full_agent != 'z' && *full_agent != 'Z')) {
|
||||||
/* supress endless loop bug with zoiper */
|
/* supress endless loop bug with zoiper */
|
||||||
|
callsequence = sofia_presence_get_cseq(profile);
|
||||||
|
cseq = sip_cseq_create(nh->nh_home, callsequence, SIP_METHOD_NOTIFY);
|
||||||
nua_notify(nh,
|
nua_notify(nh,
|
||||||
SIPTAG_EXPIRES_STR("0"),
|
SIPTAG_EXPIRES_STR("0"),
|
||||||
SIPTAG_SUBSCRIPTION_STATE_STR(sstr),
|
SIPTAG_SUBSCRIPTION_STATE_STR(sstr),
|
||||||
|
SIPTAG_CSEQ(cseq),
|
||||||
TAG_END());
|
TAG_END());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4170,11 +4175,13 @@ void sofia_presence_handle_sip_i_subscribe(int status,
|
||||||
if ((p = strchr(full_call_info, ';'))) {
|
if ((p = strchr(full_call_info, ';'))) {
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
|
callsequence = sofia_presence_get_cseq(profile);
|
||||||
|
cseq = sip_cseq_create(nh->nh_home, callsequence, SIP_METHOD_NOTIFY);
|
||||||
nua_notify(nh,
|
nua_notify(nh,
|
||||||
SIPTAG_FROM(sip->sip_to),
|
SIPTAG_FROM(sip->sip_to),
|
||||||
SIPTAG_TO(sip->sip_from),
|
SIPTAG_TO(sip->sip_from),
|
||||||
SIPTAG_EXPIRES_STR(exp_delta_str),
|
SIPTAG_EXPIRES_STR(exp_delta_str),
|
||||||
|
SIPTAG_CSEQ(cseq),
|
||||||
SIPTAG_SUBSCRIPTION_STATE_STR(sstr),
|
SIPTAG_SUBSCRIPTION_STATE_STR(sstr),
|
||||||
SIPTAG_EVENT_STR("line-seize"), TAG_IF(full_call_info, SIPTAG_CALL_INFO_STR(full_call_info)), TAG_END());
|
SIPTAG_EVENT_STR("line-seize"), TAG_IF(full_call_info, SIPTAG_CALL_INFO_STR(full_call_info)), TAG_END());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue