Added callConnect() to several utility channels to enable tone detection.

git-svn-id: http://voip.null.ro/svn/yate@2110 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2008-07-29 14:28:36 +00:00
parent 400cfd8c7f
commit 25d0593974
5 changed files with 5 additions and 0 deletions

View File

@ -716,6 +716,7 @@ bool AnalyzerDriver::msgExecute(Message& msg, String& dest)
if (ch) {
AnalyzerChan *ac = new AnalyzerChan(dest,true,msg.getValue("window"));
if (ch->connect(ac,msg.getValue("reason"))) {
ac->callConnect(msg);
msg.setParam("peerid",ac->id());
ac->startChannel(msg);
ac->deref();

View File

@ -934,6 +934,7 @@ bool ConferenceDriver::msgExecute(Message& msg, String& dest)
if (ch) {
ConfChan *c = new ConfChan(dest,msg,counted,utility);
if (ch->connect(c)) {
c->callConnect(msg);
msg.setParam("peerid",c->id());
c->deref();
msg.setParam("room",prefix()+dest);

View File

@ -68,6 +68,7 @@ bool DumbDriver::msgExecute(Message& msg, String& dest)
if (dd) {
DumbChannel *c = new DumbChannel(dest,&msg);
if (dd->connect(c)) {
c->callConnect(msg);
msg.setParam("peerid", c->id());
msg.setParam("targetid", c->id());
c->setTargetid(dd->id());

View File

@ -789,6 +789,7 @@ bool ToneGenDriver::msgExecute(Message& msg, String& dest)
if (ch) {
ToneChan *tc = new ToneChan(dest);
if (ch->connect(tc,msg.getValue("reason"))) {
tc->callConnect(msg);
msg.setParam("peerid",tc->id());
tc->deref();
}

View File

@ -1016,6 +1016,7 @@ bool WaveFileDriver::msgExecute(Message& msg, String& dest)
dest.matchString(2).c_str());
WaveChan *c = new WaveChan(dest.matchString(2),meth,maxlen,msg.getBoolValue("autorepeat"),msg.getValue("format"));
if (ch->connect(c,msg.getValue("reason"))) {
c->callConnect(msg);
msg.setParam("peerid",c->id());
c->deref();
return true;