reinvite support

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1179 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 18 years ago
parent ddd375363b
commit 552c36d705

@ -119,6 +119,7 @@ AmSession* ServiceLineFactory::onInvite(const AmSipRequest& req)
ServiceLineCallerDialog::ServiceLineCallerDialog(const string& filename)
: filename(filename),
playlist(this),
started(false),
AmB2ABCallerSession()
{
}
@ -126,7 +127,12 @@ ServiceLineCallerDialog::ServiceLineCallerDialog(const string& filename)
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");

@ -69,6 +69,8 @@ class ServiceLineCallerDialog: public AmB2ABCallerSession
string callee_addr;
string callee_uri;
bool started;
public:
ServiceLineCallerDialog(const string& filename);

Loading…
Cancel
Save