[sr-dev] git:master: presence: take in consideration send_fast_notify when sending empty NOTIFY

Daniel-Constantin Mierla miconda at gmail.com
Mon Sep 8 14:15:43 CEST 2014


Module: sip-router
Branch: master
Commit: 5bffcf8bdc83628aea4f5e3cda06b20ce88f659f
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5bffcf8bdc83628aea4f5e3cda06b20ce88f659f

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Mon Sep  8 14:14:17 2014 +0200

presence: take in consideration send_fast_notify when sending empty NOTIFY

- patch by Luis Azedo <luis.azedo at factorlusitano.com>

---

 modules/presence/subscribe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/presence/subscribe.c b/modules/presence/subscribe.c
index a873cb6..9c9b9ac 100644
--- a/modules/presence/subscribe.c
+++ b/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;




More information about the sr-dev mailing list