Author: sayer
Date: 2008-12-08 18:57:29 +0100 (Mon, 08 Dec 2008)
New Revision: 1179
Modified:
trunk/apps/examples/serviceline/ServiceLine.cpp
trunk/apps/examples/serviceline/ServiceLine.h
Log:
reinvite support
Modified: trunk/apps/examples/serviceline/ServiceLine.cpp
===================================================================
--- trunk/apps/examples/serviceline/ServiceLine.cpp 2008-12-08 17:54:09 UTC
(rev 1178)
+++ trunk/apps/examples/serviceline/ServiceLine.cpp 2008-12-08 17:57:29 UTC
(rev 1179)
@@ -119,6 +119,7 @@
ServiceLineCallerDialog::ServiceLineCallerDialog(const string& filename)
: filename(filename),
playlist(this),
+ started(false),
AmB2ABCallerSession()
{
}
@@ -126,7 +127,12 @@
void ServiceLineCallerDialog::onSessionStart(const AmSipRequest& req)
{
- AmB2ABCallerSession::onSessionStart(req);
+ if (started) {
+ // reinvite
+ AmB2ABCallerSession::onSessionStart(req);
+ return;
+ }
+ started = true;
if(wav_file.open(filename,AmAudioFile::Read))
throw string("AnnouncementDialog::onSessionStart: Cannot open file\n");
Modified: trunk/apps/examples/serviceline/ServiceLine.h
===================================================================
--- trunk/apps/examples/serviceline/ServiceLine.h 2008-12-08 17:54:09 UTC
(rev 1178)
+++ trunk/apps/examples/serviceline/ServiceLine.h 2008-12-08 17:57:29 UTC
(rev 1179)
@@ -69,6 +69,8 @@
string callee_addr;
string callee_uri;
+
+ bool started;
public:
ServiceLineCallerDialog(const string& filename);
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev