瀏覽代碼

presence: take in consideration send_fast_notify when sending empty NOTIFY

- patch by Luis Azedo <[email protected]>
Daniel-Constantin Mierla 11 年之前
父節點
當前提交
5bffcf8bdc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/presence/subscribe.c

+ 1 - 1
modules/presence/subscribe.c

@@ -690,7 +690,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;