Commit 6fae7e1b authored by jehan's avatar jehan
Browse files

partial fix for NOTIFY consecutive to SUBSCRIBE

parent 981b55ee
......@@ -102,7 +102,25 @@ static void belle_sip_provider_dispatch_request(belle_sip_provider_t* prov, bell
/*absorbed ACK retransmission, ignore */
}else if (belle_sip_dialog_request_pending(ev.dialog) && strcmp(method,"BYE")!=0){
/* for notify exception
As per RFC 3265;
3.3.4. Dialog creation and termination
If an initial SUBSCRIBE request is not sent on a pre-existing dialog,
the subscriber will wait for a response to the SUBSCRIBE request or a
matching NOTIFY.
If an initial SUBSCRIBE is sent on a pre-existing dialog, a matching
200-class response or successful NOTIFY request merely creates a new
subscription associated with that dialog.
else if (belle_sip_dialog_request_pending(ev.dialog)
&& strcmp(method,"BYE")!=0
&& strcmp(method,"NOTIFY")!=0 /**/){
belle_sip_server_transaction_t *tr=belle_sip_provider_create_server_transaction(prov,req);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment