소스 검색

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 년 전
부모
커밋
4fe0cf5ae8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;