Browse code

sbc: new SBCCallLeg constructor

Raphael Coeffic authored on 19/04/2013 12:21:22
Showing 2 changed files
... ...
@@ -215,6 +215,15 @@ SBCCallLeg::SBCCallLeg(SBCCallLeg* caller, AmSipDialog* p_dlg)
215 215
   setLogger(caller->getLogger());
216 216
 }
217 217
 
218
+SBCCallLeg::SBCCallLeg(AmSipDialog* p_dlg)
219
+  : CallLeg(p_dlg),
220
+    m_state(BB_Init),
221
+    auth(NULL),
222
+    cc_timer_id(SBC_TIMER_ID_CALL_TIMERS_START),
223
+    cc_started(false)
224
+{
225
+}
226
+
218 227
 void SBCCallLeg::onStart()
219 228
 {
220 229
   // this should be the first thing called in session's thread
... ...
@@ -123,6 +123,7 @@ class SBCCallLeg : public CallLeg, public CredentialHolder
123 123
 
124 124
   SBCCallLeg(const SBCCallProfile& call_profile, AmSipDialog* dlg=NULL);
125 125
   SBCCallLeg(SBCCallLeg* caller, AmSipDialog* dlg=NULL);
126
+  SBCCallLeg(AmSipDialog* dlg=NULL);
126 127
   ~SBCCallLeg();
127 128
 
128 129
   void process(AmEvent* ev);