Browse code

c/f:examples: updated call_gen to API change

Stefan Sayer authored on 26/02/2014 16:23:57
Showing 3 changed files
... ...
@@ -481,8 +481,8 @@ void CallGenDialog::onBye(const AmSipRequest& req) {
481 481
   setStopped();
482 482
 }
483 483
 
484
-void CallGenDialog::onSipReply(const AmSipReply& reply, AmSipDialog::Status old_dlg_status) {
485
-  AmSession::onSipReply(reply, old_dlg_status);
484
+void CallGenDialog::onSipReply(const AmSipRequest& req, const AmSipReply& reply, AmBasicSipDialog::Status old_dlg_status) {
485
+  AmSession::onSipReply(req, reply, old_dlg_status);
486 486
   if ((old_dlg_status < AmSipDialog::Connected) &&
487 487
       dlg->getStatus() == AmSipDialog::Disconnected) {
488 488
     DBG("SIP dialog status change: < Connected -> Disconnected, stopping call\n");
... ...
@@ -153,7 +153,7 @@ public:
153 153
   void onSessionStart();
154 154
   void onBye(const AmSipRequest& req);
155 155
   void process(AmEvent* event);
156
-  void onSipReply(const AmSipReply& reply, AmSipDialog::Status old_dlg_status);
156
+  void onSipReply(const AmSipRequest& req, const AmSipReply& reply, AmBasicSipDialog::Status old_dlg_status);
157 157
 
158 158
 };
159 159
 
... ...
@@ -1,3 +1,3 @@
1
-play_file=../apps/call_gen/wav/default.wav
2
-digits_dir=../apps/call_gen/wav/
3
-from_host=callgen.example.net
4 1
\ No newline at end of file
2
+play_file=../apps/examples/call_gen/wav/default.wav
3
+digits_dir=../apps/examples/call_gen/wav/
4
+from_host=callgen.example.net