Menu

How to playtone

Help
2004-04-13
2004-04-14
  • Nauman Malik

    Nauman Malik - 2004-04-13

    Hi, I want to play the tone of Digits. how should i do this and using which function. looking for help.

     
    • Carlos G Mendioroz

      If by "play the tone of digits" you mean play DTMF tones, then dx_dial via Voice.dial(number, null) is what you need. Use a null DXCAP (second argument) for no progress analysis.

      Otherwise, you have to use playtone() with appropiate TNGEN argument.

       
    • Nauman Malik

      Nauman Malik - 2004-04-13

      Thanks carlos, what are the appropriate paremters for TNGEN.

      One more question.
      How should i transfer the dailout call on specific extention after receiving it by the exchange.
      e.g.,
      i want to place the call on some specified number using dailout from program and then after this other side  pick up the call by the exchange and tape plays to input the extention nmber to transfer the call or press 0 for operator.

      Looking for help

       
      • Carlos G Mendioroz

        Take a look at the TNGEN.java. There are constructors for single and dual frequency tones.

        Transfering calls depends a lot on the switch you have in front and the kind of signalling (i.e. protocol) you use.

         
    • Nauman Malik

      Nauman Malik - 2004-04-13

      I want to do it for Analog Channel, our local exahange is standard panasonic. i just want to check how it will works on Analog Channel. an i m using the D/41JCT-LS dailogic card.

       
      • Carlos G Mendioroz

        That would be overdialing a flashhook, destination number and then hanging up.

        You can do the overdial with Voice.dial().
        An ampersand signals dx_dial to do a flashhook, when it can. (It does in the case of an AnalogChannel).

        Call.clear() does the hangup :-)

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.