Pārlūkot izejas kodu

presence: take in consideration send_fast_notify when sending empty NOTIFY

- patch by Luis Azedo <[email protected]>

(cherry picked from commit 5bffcf8bdc83628aea4f5e3cda06b20ce88f659f)
(cherry picked from commit 53c60551f1316d846f0cbafc04f8d8772156f7b0)
Daniel-Constantin Mierla 11 gadi atpakaļ
vecāks
revīzija
4fe0cf5ae8
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      modules/presence/subscribe.c

+ 1 - 1
modules/presence/subscribe.c

@@ -682,7 +682,7 @@ int update_subscription(struct sip_msg* msg, subs_t* subs, int to_tag_gen,
 		}
 		else
 		{
-			if(notify(subs, NULL, NULL, 0)< 0)
+			if(send_fast_notify && (notify(subs, NULL, NULL, 0)< 0))
 			{
 				LM_ERR("Could not send notify\n");
 				goto error;