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

Author: Andrew Mortensen <[email protected]>
Committer: Andrew Mortensen <[email protected]>
Date:   Thu Dec 13 16:10:31 2012 -0500

sca: fix regression omitting call-info NOTIFYs on INVITE 200 reply.

- Restore call-info NOTIFY with appearance-state=active when callee answers.
- Reported by Robert Boisvert.

---

 modules/sca/sca_call_info.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/modules/sca/sca_call_info.c b/modules/sca/sca_call_info.c
index 593f286..d717eb1 100644
--- a/modules/sca/sca_call_info.c
+++ b/modules/sca/sca_call_info.c
@@ -1266,6 +1266,14 @@ done:
        pkg_free( app_uri_aor.s );
     }
 
+    if ( rc == 1 ) {
+       if ( sca_notify_call_info_subscribers( sca, from_aor ) < 0 ) {
+           LM_ERR( "Failed to call-info NOTIFY %.*s subscribers on "
+                   "200 OK reply to INVITE", STR_FMT( from_aor ));
+           rc = -1;
+       }
+    }
+
     return( rc );
 }
 


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

Reply via email to