Package org.asteriskjava.iax.audio.javasound

Examples of org.asteriskjava.iax.audio.javasound.AudioInterface


     * with a received ACCEPT.
     *
     * @param format The audio format
     */
    void setAudioFormat(Integer format) {
        AudioInterface base = _peer.getAudioFace();
        _audio = base.getByFormat(format);
        if (_audio != null) {
            _format = _audio.getFormatBit();
            Log.debug("using audio format = " + _format);
        } else {
            Log.warn("cant set audio format " + format);
View Full Code Here


     * @see #ack()
     */
    private void sendAcceptOrRej() {
        int match = 0;
        Boolean will = null;
        AudioInterface a = _call.getAudioFace();
        //int can = a.supportedCodecs().intValue();
        String cause = "Congestion";
        String ourprefs = a.codecPrefString();
        byte[] theirprefs = _iep.codec_prefs;
        if (theirprefs == null) {
            // fake them using capability
            Log.debug("no codec IE");
            Integer cap = _iep.capability;
View Full Code Here

        InfoElement ie = new InfoElement();
        ie.calledNo = calledNo;
        ie.callingNo = callingNo;
        ie.callingName = callingName;
        ie.username = username;
        AudioInterface a = _call.getAudioFace();
        int format = a.supportedCodecs().intValue();
        ie.format = VoiceFrame.GSM_BIT;
        ie.version = Integer.valueOf(2);
        ie.codec_prefs = a.codecPrefString().getBytes();
        ie.capability = Integer.valueOf(format);
        //       ie.putIaxVar("foobar","724024");
        Log.debug("Sending initial NEW");
        sendMe(ie);
    }
View Full Code Here

TOP

Related Classes of org.asteriskjava.iax.audio.javasound.AudioInterface

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.