Browse code

sbc: b/f: fixed use of setting for unsolicited NOTIFY forwarding

Raphael Coeffic authored on 23/12/2013 13:07:24
Showing 1 changed files
... ...
@@ -119,8 +119,6 @@ SBCCallLeg::SBCCallLeg(const SBCCallProfile& call_profile, AmSipDialog* p_dlg,
119 119
 				     1000);
120 120
     rtp_relay_rate_limit.reset(limit);
121 121
   }
122
-
123
-  subs->allowUnsolicitedNotify(call_profile.allow_subless_notify);
124 122
 }
125 123
 
126 124
 // B leg constructor (from SBCCalleeSession)
... ...
@@ -862,6 +860,8 @@ void SBCCallLeg::onInvite(const AmSipRequest& req)
862 860
   if(a_leg && call_profile.keep_vias)
863 861
     invite_req.hdrs = invite_req.vias + invite_req.hdrs;
864 862
 
863
+  subs->allowUnsolicitedNotify(call_profile.allow_subless_notify);
864
+
865 865
   // call extend call controls
866 866
   InitialInviteHandlerParams params(to, ruri, from, &req, &invite_req);
867 867
   for (vector<ExtendedCCInterface*>::iterator i = cc_ext.begin(); i != cc_ext.end(); ++i) {