Menu

CPU load Asterisk and IAXmodem

Help
bakira
2008-06-28
2013-04-05
  • bakira

    bakira - 2008-06-28

    Dear friends

    I am newbie in Asterisk Hylafax and IAXmodem and I have experience of the following problem
    When i try to send fax using IAXmodem, Asterisk proccess burn the CPU 100% and everything is become unstable
    When I try a "ps aux" there is a "rasterisk" proccess

    This happend 1 minnute after modem handshake

    I am using all the latest software
    Fedora 9
    IAXmodem 1.1.0
    Hylafax+ 5.2.5
    Asterisk 1.4.21

    The same happend with Fedora 8

    Any ideas??

    P.S. Please forgive my bad English... (!!)

     
    • Lee Howard

      Lee Howard - 2008-06-28

      What does the Asterisk CLI say at the burn-out time?

       
      • bakira

        bakira - 2008-06-29

        Nothing at all.. I can make SIP calls  but i cant use ZAP chanels because off congestion...
        I have a dual Xeon system and i forgot to tell you I use also latest Zaptel software (v 1.4.11)

         
        • Lee Howard

          Lee Howard - 2008-06-29

          So it's the asterisk process that eating up CPU, but there's nothing on the CLI (have you tried 'iax2 debug'?) and if you stop the iaxmodems then the CPU load goes away?

           
          • bakira

            bakira - 2008-06-29

            Dear friend

            I killed iaxmodem but asterisk proccess continues with 100% CPU
            Folowing the debug output of iax2 on my Asterisk system

            Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW   
               Timestamp: 00003ms  SCall: 09808  DCall: 00000 [127.0.0.1:5001]
               VERSION         : 2
               CALLING NUMBER  :
               CALLING NAME    : IAXmodem
               FORMAT          : 64
               CAPABILITY      : 76
               USERNAME        : ttyIAX01
               CALLED NUMBER   : 2106666550
               DNID            : 2106666550
            pbx*CLI>
            Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: AUTHREQ
               Timestamp: 00003ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
               AUTHMETHODS     : 3
               CHALLENGE       : 118401519
               USERNAME        : ttyIAX01

            Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: AUTHREP
               Timestamp: 00003ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
               MD5 RESULT      : 08bf45779ea92514ab4e37b33fcb755f

                -- Accepting AUTHENTICATED call from 127.0.0.1:
                   > requested format = slin,
                   > requested prefs = (),
                   > actual format = ulaw,
                   > host prefs = (),
                   > priority = mine
                -- Executing [2106666550@FAXOUT:1] Dial("IAX2/ttyIAX01-6231", "ZAP/g1/2106666550") in new stack
                -- Requested transfer capability: 0x00 - SPEECH
                -- Called g1/2106666550
            Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: ACCEPT
               Timestamp: 00006ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
               FORMAT          : 4

            Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK   
               Timestamp: 00006ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
            Tx-Frame Retry[000] -- OSeqno: 002 ISeqno: 002 Type: VOICE   Subclass: 4
               Timestamp: 00040ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
            Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 003 Type: IAX     Subclass: ACK   
               Timestamp: 00040ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
            Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 003 Type: IAX     Subclass: PING  
               Timestamp: 02000ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
            Tx-Frame Retry[000] -- OSeqno: 003 ISeqno: 003 Type: IAX     Subclass: PONG  
               Timestamp: 02000ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
               RR_JITTER       : 0
               RR_LOSS         : 0
               RR_PKTS         : 1
               RR_DELAY        : 40
               RR_DROPPED      : 0
               RR_OUTOFORDER   : 0

            Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno: 004 Type: IAX     Subclass: ACK   
               Timestamp: 02000ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
                -- Zap/1-1 is proceeding passing it to IAX2/ttyIAX01-6231
            Tx-Frame Retry[000] -- OSeqno: 004 ISeqno: 003 Type: CONTROL Subclass: PROCDNG
               Timestamp: 04043ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
                -- Zap/1-1 is ringing
            Tx-Frame Retry[000] -- OSeqno: 005 ISeqno: 003 Type: CONTROL Subclass: RINGING
               Timestamp: 04443ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
            Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno: 006 Type: IAX     Subclass: ACK   
               Timestamp: 04443ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
                -- Zap/1-1 answered IAX2/ttyIAX01-6231
            Tx-Frame Retry[000] -- OSeqno: 006 ISeqno: 003 Type: CONTROL Subclass: (255?)
               Timestamp: 06763ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
            Tx-Frame Retry[000] -- OSeqno: 007 ISeqno: 003 Type: CONTROL Subclass: ANSWER
               Timestamp: 06766ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
            Tx-Frame Retry[000] -- OSeqno: 008 ISeqno: 003 Type: CONTROL Subclass: (20?)
               Timestamp: 06769ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
            Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno: 008 Type: IAX     Subclass: ACK   
               Timestamp: 06766ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
            Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno: 009 Type: VOICE   Subclass: 4
               Timestamp: 06800ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
            Tx-Frame Retry[-01] -- OSeqno: 009 ISeqno: 004 Type: IAX     Subclass: ACK   
               Timestamp: 06800ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
            Tx-Frame Retry[000] -- OSeqno: 009 ISeqno: 004 Type: IAX     Subclass: LAGRQ 
               Timestamp: 10018ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
            Rx-Frame Retry[ No] -- OSeqno: 004 ISeqno: 010 Type: IAX     Subclass: ACK   
               Timestamp: 10018ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
            Rx-Frame Retry[ No] -- OSeqno: 004 ISeqno: 010 Type: IAX     Subclass: LAGRP 
               Timestamp: 10018ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
            Tx-Frame Retry[-01] -- OSeqno: 010 ISeqno: 005 Type: IAX     Subclass: ACK   
               Timestamp: 10018ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]

            Rx-Frame Retry[ No] -- OSeqno: 005 ISeqno: 010 Type: IAX     Subclass: PING  
               Timestamp: 12008ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
            Tx-Frame Retry[000] -- OSeqno: 010 ISeqno: 006 Type: IAX     Subclass: PONG  
               Timestamp: 12008ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
               RR_JITTER       : 0
               RR_LOSS         : 0
               RR_PKTS         : 1
               RR_DELAY        : 40
               RR_DROPPED      : 0
               RR_OUTOFORDER   : 0

            Rx-Frame Retry[ No] -- OSeqno: 006 ISeqno: 011 Type: IAX     Subclass: ACK   
               Timestamp: 12008ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]

            pbx*CLI>
            Tx-Frame Retry[000] -- OSeqno: 011 ISeqno: 006 Type: IAX     Subclass: LAGRQ 
               Timestamp: 20017ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
            Rx-Frame Retry[ No] -- OSeqno: 006 ISeqno: 012 Type: IAX     Subclass: ACK   
            Rx-Frame Retry[ No] -- OSeqno: 006 ISeqno: 012 Type: IAX     Subclass: LAGRP 
               Timestamp: 20017ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
               Timestamp: 20017ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
            Tx-Frame Retry[-01] -- OSeqno: 012 ISeqno: 007 Type: IAX     Subclass: ACK   
               Timestamp: 20017ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
            Tx-Frame Retry[000] -- OSeqno: 012 ISeqno: 007 Type: IAX     Subclass: PING  
               Timestamp: 21017ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
            Rx-Frame Retry[ No] -- OSeqno: 007 ISeqno: 013 Type: IAX     Subclass: ACK   
               Timestamp: 21017ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
            Rx-Frame Retry[ No] -- OSeqno: 007 ISeqno: 013 Type: IAX     Subclass: PONG  
               Timestamp: 21017ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
               RR_JITTER       : 0
               RR_LOSS         : 0
               RR_PKTS         : 1
               RR_DELAY        : 40
               RR_DROPPED      : 0
               RR_OUTOFORDER   : 0
            pbx*CLI>
            Tx-Frame Retry[-01] -- OSeqno: 013 ISeqno: 008 Type: IAX     Subclass: ACK   
               Timestamp: 21017ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
            Rx-Frame Retry[ No] -- OSeqno: 008 ISeqno: 013 Type: IAX     Subclass: PING  
               Timestamp: 22009ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
            Tx-Frame Retry[000] -- OSeqno: 013 ISeqno: 009 Type: IAX     Subclass: PONG  
               Timestamp: 22009ms  SCall: 06231  DCall: 09808 [127.0.0.1:5001]
               RR_JITTER       : 0
               RR_LOSS         : 0
               RR_PKTS         : 1
               RR_DELAY        : 40
               RR_DROPPED      : 0
               RR_OUTOFORDER   : 0

            Rx-Frame Retry[ No] -- OSeqno: 009 ISeqno: 014 Type: IAX     Subclass: ACK   
               Timestamp: 22009ms  SCall: 09808  DCall: 06231 [127.0.0.1:5001]
                -- Remote UNIX connection
                -- Remote UNIX connection disconnected
                -- Saved useragent "Grandstream GXP2000 1.1.6.16" for peer 760
                -- Saved useragent "Grandstream GXP2000 1.1.6.16" for peer 727
                -- Channel 0/1, span 1 got hangup request, cause 16
                -- Saved useragent "elmegIP290/3.61" for peer 526
                -- Channel 0/1, span 1 got hangup, cause 16

             
          • bakira

            bakira - 2008-06-29

            Dear Lee

            I think the problem is with Zaptel libraries
            I tried to send faxes througt ISDN and PSTN lines using DIGIUM cards (TE120p and TDM24XX)
            With both of them I had the same problem. Hi CPU load of Asterisk proccess and fax transmit failure (cutted pages or pages with noise)

            But I tried to send fax between 2 IAX peers (ttyIAX01 and ttyIAX02) and IAXmodem is working perfect with out any problem

            I use the latest Zaptel lib (v1.4.11)

             
            • Lee Howard

              Lee Howard - 2008-06-30

              This is something that you probably want to bring up on support.digium.com, then.  Thanks.

               

Log in to post a comment.