information about PJMEDIA_TONEGEN_LOOP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everybody!

I'm trying this code for generate a waiting call tone in loop. But it 
don't hear nothing.
What i'm wrong?


  public synchronized int startPjMediaWaitingTone() {
             int status = ensureDialtoneGen();
             if (status != pjsua.PJ_SUCCESS) {
                 return status;
             }
             stopSending();
             pjmedia_tone_desc[] tone = new pjmedia_tone_desc[1];
             tone[0] = new pjmedia_tone_desc();
             tone[0].setVolume((short) 0);
             tone[0].setOn_msec((short) 100);
             tone[0].setOff_msec((short) 200);
             tone[0].setFreq1((short)440);
             tone[0].setFreq2((short)350);
             pjsua.pjmedia_tonegen_play(dialtoneGen, 1, tone, 
pjsuaConstants.PJMEDIA_TONEGEN_LOOP);
             return status;
         }

Thank you!

-- 

Informatica Milano di Joas Scicchitano
Via Vincenzo Monti 30 - Sesto San Giovanni (MI)
Tel./Cell: 338.11.87.999
Orari di apertura:
Dal Luned? al Venerd?
08.45 / 12.30 - 14.00 / 17.15




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux