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 <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Mon Sep  8 14:14:17 2014 +0200

presence: take in consideration send_fast_notify when sending empty NOTIFY

- patch by Luis Azedo <[email protected]>

---

 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;


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to