Do we need a gain control in iaxmodem?

st41ker
2006-12-25
2013-04-05
  • st41ker
    st41ker
    2006-12-25

    I'll show here a simple picture showing U for what purpose WE need a gain control in THE modem.
    Hylafax -> iaxmodem1 -> (*) - app_rxfax.
    It doesn't work, cause app_rxfax has no idea about FaxTone....it's too light to hear.
    Thus, between all of parties getting involved into such a mess (I mean fax receiving) I need some amplifier. Can it be an iaxmodem? I think it must be.

    Best regards,st41ker

     
    • Lee Howard
      Lee Howard
      2006-12-25

      Why do you believe that increasing the transmit gain on iaxmodem would help?  How do you know that the audio is too faint?

      What codec do you have iaxmodem using?

       
      • st41ker
        st41ker
        2006-12-25

        >Why do you believe that increasing the transmit gain on iaxmodem would help? How do you know that >the audio is too faint?
        As I said the problem is in app_rxfax, it's too sensitive to voice gain. When transmitting fax to another IAXmodem everything is fine. U know that that app is very-very dumb&^%, so i thought that IAXmodem can became more flexible than it is now.

        >What codec do you have iaxmodem using?
        slin

         
        • Lee Howard
          Lee Howard
          2006-12-26

          Please try using uLaw and see if that makes a difference.

          I've seen other people with problems of iaxmodem audio being too-faint.  However, the curious thing is that the audio coming from iaxmodem itself is not faint.  Something else is quieting the audio, and I'm suspicious that maybe it is Asterisk when handling slinear.

           
          • st41ker
            st41ker
            2006-12-27

            >Please try using uLaw and see if that makes a difference.
            I've tried both 711's. Buttttt...

            >I've seen other people with problems of iaxmodem audio being too-faint. However, the curious thing >is that the audio coming from iaxmodem itself is not faint. Something else is quieting the audio, >and I'm suspicious that maybe it is Asterisk when handling slinear.
            ....i have "transcode_via_sln = yes" in asterisk.conf ...it can be an option.

            Thnx, but I think that THE modem will be more "interresting" with "amplifier" only for that reason i've openned a discussion.

            Best regards, st41ker.

             
            • Lee Howard
              Lee Howard
              2006-12-27

              I do understand that you have resolved to a solution of creating an audio amplifier from within iaxmodem.  Please realize that I, too, must become convinced of this.  So, please entertain some more intrigue.

              Please show me the HylaFAX session log and also the rxfax log when you send a fax from HylaFAX/iaxmodem to the rxfax app.

              Thanks.

               
              • st41ker
                st41ker
                2006-12-27

                Asterisk

                DEBUG[23180] app_rxfax.c: =======================================================

                [Dec 27 18:28:30] DEBUG[23180] app_rxfax.c: Fax receive not successful - result (60) Disconnected a
                fter permitted retries.
                [Dec 27 18:28:30] DEBUG[23180] app_rxfax.c: =======================================================
                =======================

                Peace of Hylafax logs

                Дек 27 18:29:08.92: [24528]: MODEM TIMEOUT: reading line from modem
                Дек 27 18:29:08.92: [24528]: MODEM <Timeout>
                Дек 27 18:29:08.92: [24528]: Failure to receive silence.
                Дек 27 18:29:08.92: [24528]: Error sending T.30 prologue frames
                Дек 27 18:29:08.92: [24528]: SEND training at v.27ter 4800 bit/s
                Дек 27 18:29:08.92: [24528]: <-- [9:AT+FRS=7\r]
                Дек 27 18:29:08.94: [24528]: --> [2:OK]
                Дек 27 18:29:08.94: [24528]: <-- [9:AT+FTH=3\r]
                Дек 27 18:29:08.96: [24528]: --> [7:CONNECT]
                Дек 27 18:29:08.96: [24528]: <-- HDLC<23:FF C0 C2 B6 F6 C6 86 E6 A6 B2 04 04 04 04 04 04 04 04 04 0
                4 04 04 04>
                Дек 27 18:29:08.96: [24528]: <-- data [23]
                Дек 27 18:29:08.96: [24528]: <-- data [2]
                Дек 27 18:29:10.50: [24528]: --> [7:CONNECT]
                Дек 27 18:29:10.50: [24528]: <-- HDLC<7:FF C8 C1 00 52 1F 22>
                Дек 27 18:29:10.50: [24528]: <-- data [7]
                Дек 27 18:29:10.50: [24528]: <-- data [2]
                Дек 27 18:29:10.90: [24528]: --> [2:OK]
                Дек 27 18:29:10.90: [24528]: <-- [9:AT+FTS=7\r]
                Дек 27 18:29:11.00: [24528]: --> [2:OK]
                Дек 27 18:29:11.00: [24528]: MODEM set XON/XOFF/FLUSH: input interpreted, output disabled
                Дек 27 18:29:11.00: [24528]: <-- [10:AT+FTM=48\r]
                Дек 27 18:29:11.02: [24528]: --> [7:CONNECT]
                Дек 27 18:29:11.02: [24528]: DELAY 400 ms
                Дек 27 18:29:11.42: [24528]: <-- data [900]
                Дек 27 18:29:11.42: [24528]: <-- data [2]
                Дек 27 18:29:13.30: [24528]: --> [2:OK]
                Дек 27 18:29:13.30: [24528]: MODEM set XON/XOFF/DRAIN: input ignored, output disabled
                Дек 27 18:29:13.30: [24528]: <-- [9:AT+FRH=3\r]
                Дек 27 18:29:16.40: [24528]: --> [0:]
                Дек 27 18:29:16.40: [24528]: MODEM <Empty line>
                Дек 27 18:29:16.40: [24528]: MODEM TIMEOUT: waiting for v.21 carrier
                Дек 27 18:29:16.40: [24528]: <-- data [1]
                Дек 27 18:29:16.40: [24528]: --> [2:OK]
                Дек 27 18:29:16.40: [24528]: DELAY 1500 ms
                Дек 27 18:29:17.90: [24528]: SEND training at v.27ter fallback mode 2400 bit/s
                Дек 27 18:29:17.90: [24528]: <-- [9:AT+FRS=7\r]
                Дек 27 18:29:47.90: [24528]: MODEM TIMEOUT: reading line from modem
                Дек 27 18:29:47.90: [24528]: MODEM <Timeout>
                Дек 27 18:29:47.90: [24528]: Failure to receive silence.
                Дек 27 18:29:47.90: [24528]: Error sending T.30 prologue frames
                Дек 27 18:29:47.90: [24528]: TRAINING failed
                Дек 27 18:29:47.90: [24528]: <-- [9:AT+FTH=3\r]
                Дек 27 18:29:47.91: [24528]: --> [2:OK]
                Дек 27 18:29:47.91: [24528]: MODEM input buffering enabled
                Дек 27 18:29:47.91: [24528]: <-- [5:ATH0\r]
                Дек 27 18:29:48.03: [24528]: --> [2:OK]
                Дек 27 18:29:48.03: [24528]: MODEM set DTR OFF
                Дек 27 18:29:48.03: [24528]: MODEM set baud rate: 0 baud (flow control unchanged)
                Дек 27 18:29:48.03: [24528]: MODEM set baud rate: 0 baud (flow control unchanged)
                Дек 27 18:29:48.03: [24528]: STATE CHANGE: SENDING -> MODEMWAIT (timeout 5)
                Дек 27 18:29:48.03: [24528]: SESSION END

                 
                • Lee Howard
                  Lee Howard
                  2006-12-27

                  You snipped the session log, and so I really need you to put the whole thing here.