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:
parent
400cfd8c7f
commit
25d0593974
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue