[pjsip] information about PJMEDIA_TONEGEN_LOOP

.: Informatica Milano - www.informatica-milano.com info at informatica-milano.com
Wed Dec 11 03:07:48 EST 2013


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




More information about the pjsip mailing list