To play ring you must use chan.attach to set tone source in desired call leg (in queue chan).QueueInChannel* c = new QueueInChannel(dest,msg,false);c->initChan();DO_SETUP (attach tone source) ...
Message m("chan.attach");m->addParam("id",c->id());m->addparam("source","tone/ring");Engine::dispatch(m);
Message m("chan.masquerde");m->addParam("message","chan.attach"); m->addParam("id",c->id());m->addparam("source","tone/ring");Engine::dispatch(m);