[sr-dev] send_fast_notify not always honored

Luis Azedo luis.azedo at factorlusitano.com
Wed Sep 3 12:32:43 CEST 2014


Hi,

in presence module subscribe.c send_fast_notify is not always honored.
by changing this line i got it working. does this make sense ?

thanks

diff --git a/modules/presence/subscribe.c b/modules/presence/subscribe.c
index 3074ca9..f5dd6aa 100644
--- a/modules/presence/subscribe.c
+++ b/modules/presence/subscribe.c
@@ -682,7 +682,7 @@
  }
  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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20140903/6f99f03f/attachment.html>


More information about the sr-dev mailing list