From 04fe5722a0c8a86a565dcb97498dd58df8b3f439 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Tue, 1 Sep 2009 00:36:33 +0000 Subject: [PATCH] enabling echo app also for outgoing calls (useful for testing) git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1487 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/plug-in/echo/Echo.cpp | 6 ++++++ core/plug-in/echo/Echo.h | 1 + 2 files changed, 7 insertions(+) diff --git a/core/plug-in/echo/Echo.cpp b/core/plug-in/echo/Echo.cpp index 0429c3a1..21a6a294 100644 --- a/core/plug-in/echo/Echo.cpp +++ b/core/plug-in/echo/Echo.cpp @@ -108,6 +108,12 @@ void EchoDialog::onSessionStart(const AmSipRequest& req) setInOut(&echo,&echo); } +void EchoDialog::onSessionStart(const AmSipReply& req) +{ + rtp_str.setPlayoutType(playout_type); + setInOut(&echo,&echo); +} + void EchoDialog::onBye(const AmSipRequest& req) { setStopped(); diff --git a/core/plug-in/echo/Echo.h b/core/plug-in/echo/Echo.h index a8670235..26b68baf 100644 --- a/core/plug-in/echo/Echo.h +++ b/core/plug-in/echo/Echo.h @@ -56,6 +56,7 @@ public: ~EchoDialog(); void onSessionStart(const AmSipRequest& req); + void onSessionStart(const AmSipReply& rep); void onBye(const AmSipRequest& req); void onDtmf(int event, int duration); };