[sr-dev] git:admorten/sca: modules/sca: seize appearance for SCA callee answering w/ o Call-Info

Andrew Mortensen admorten at isc.upenn.edu
Mon Mar 18 20:06:16 CET 2013


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

Author: Andrew Mortensen <admorten at isc.upenn.edu>
Committer: Andrew Mortensen <admorten at isc.upenn.edu>
Date:   Mon Mar 18 15:03:24 2013 -0400

modules/sca: seize appearance for SCA callee answering w/o Call-Info

- Yealink firmware 7.70.0.130 doesn't include a Call-Info header with
  200 OK response to INVITE.

---

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

diff --git a/modules/sca/sca_appearance.c b/modules/sca/sca_appearance.c
index f613630..5fb180f 100644
--- a/modules/sca/sca_appearance.c
+++ b/modules/sca/sca_appearance.c
@@ -363,6 +363,10 @@ sca_appearance_seize_index_unsafe( sca_mod *scam, str *aor, str *owner_uri,
 	goto done;
     }
 
+    if ( app_idx <= 0 ) {
+        app_idx = sca_appearance_list_next_available_index_unsafe( app_list );
+    }
+
     for ( app = app_list->appearances; app != NULL; app = app->next ) {
 	if ( app->index >= app_idx ) {
 	    break;




More information about the sr-dev mailing list