[asterisk-bugs] [JIRA] (ASTERISK-25911) chan_iax2: IAX Max Retries occasionally

Andreas Krüger (JIRA) noreply at issues.asterisk.org
Wed Apr 13 08:00:56 CDT 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=230225#comment-230225 ] 

Andreas Krüger commented on ASTERISK-25911:
-------------------------------------------

SQL Entries from iaxfriends:

{code}
*************************** 2. row ***************************
                     id: 22
                   name: odn1-voip-cluster02-upstream01
                   type: friend
               username: odn1-voip-cluster02-upstream01
                mailbox: NULL
                 secret: ***********
               dbsecret: NULL
                context: fromupstream
             regcontext: NULL
              regserver: odn1-voip-cluster02-upstream01
                   host: 185.60.160.132
               hostname: 4a72066682feb9cc1c14daf3800d70ba-voip-aws-eu.publicdns.zone
               local_ip: 185.60.160.132
                 ipaddr: 185.60.160.132
                   port: 4569
              defaultip: NULL
          sourceaddress: NULL
                   mask: 255.255.255.255
               regexten: NULL
             regseconds: 0
            accountcode: NULL
           mohinterpret: NULL
             mohsuggest: NULL
                 inkeys: IAXTrunk
                outkeys: IAXTrunk
               language: NULL
               callerid: NULL
             cid_number: NULL
                sendani: NULL
               fullname: NULL
                  trunk: yes
                   auth: NULL
             maxauthreq: NULL
       requirecalltoken: NULL
             encryption: yes
               transfer: mediaonly
           jitterbuffer: yes
      forcejitterbuffer: NULL
               disallow: all
                  allow: ulaw,alaw
          codecpriority: NULL
                qualify: yes
       qualifysmoothing: NULL
          qualifyfreqok: 60000
       qualifyfreqnotok: 10000
               timezone: Europe/Oslo
                   adsi: NULL
               amaflags: NULL
                 setvar: NULL
                  login: NULL
                 permit: NULL
                   deny: NULL
         provision_date: 2016-02-10 15:17:10
provision_last_response: 2016-04-13 14:58:07
           manager_user: manager
       manager_password: ***********
               ari_user: manager
           ari_password: ***********
              available: 1
    available_last_seen: 2016-04-13 14:58:14
   available_last_check: 2016-04-13 14:58:14
            is_upstream: 1
               restarts: 10
*************************** 3. row ***************************
                     id: 25
                   name: odn1-voip-cluster02-asterisk01
                   type: friend
               username: odn1-voip-cluster02-asterisk01
                mailbox: NULL
                 secret: ***********
               dbsecret: NULL
                context: fromasterisk
             regcontext: NULL
              regserver: odn1-voip-cluster02-asterisk01
                   host: 185.60.160.134
               hostname: 2b37a1ede9657d1a1adac9a420d493d3-voip-aws-eu.publicdns.zone
               local_ip: 185.60.160.134
                 ipaddr: 185.60.160.134
                   port: 4569
              defaultip: NULL
          sourceaddress: NULL
                   mask: 255.255.255.255
               regexten: NULL
             regseconds: 0
            accountcode: NULL
           mohinterpret: NULL
             mohsuggest: NULL
                 inkeys: IAXTrunk
                outkeys: IAXTrunk
               language: NULL
               callerid: NULL
             cid_number: NULL
                sendani: NULL
               fullname: NULL
                  trunk: yes
                   auth: NULL
             maxauthreq: NULL
       requirecalltoken: NULL
             encryption: yes
               transfer: mediaonly
           jitterbuffer: yes
      forcejitterbuffer: NULL
               disallow: all
                  allow: ulaw,alaw
          codecpriority: NULL
                qualify: yes
       qualifysmoothing: NULL
          qualifyfreqok: 60000
       qualifyfreqnotok: 10000
               timezone: Europe/Oslo
                   adsi: NULL
               amaflags: NULL
                 setvar: NULL
                  login: NULL
                 permit: NULL
                   deny: NULL
         provision_date: 2016-02-10 15:45:55
provision_last_response: 2016-04-13 14:58:06
           manager_user: manager
       manager_password: ***********
               ari_user: manager
           ari_password: ***********
              available: 1
    available_last_seen: 2016-04-13 14:58:15
   available_last_check: 2016-04-13 14:58:15
            is_upstream: 0
               restarts: 11
{code}

> chan_iax2: IAX Max Retries occasionally
> ---------------------------------------
>
>                 Key: ASTERISK-25911
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25911
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_iax2
>    Affects Versions: 13.7.2
>         Environment: Ubuntu server
>            Reporter: Andreas Krüger
>            Assignee: Unassigned
>         Attachments: debug_log_25911_odn1-voip-cluster02-asterisk01, debug_log_25911_odn1-voip-cluster02-upstream01, iax.conf, upload (1).png
>
>
> Hi there,
> We ran into a problem, when there is some, but not high, load on some of our asterisk servers, we suddenly see an IAX max retries error in the console.
> When this happens, everything stops to work and we cannot get asterisk to work again unless we restart the service (not the server).
> I tried to start asterisk trough GDB, but since asterisk never crashes, there is nothing to show in gdb about the problem.
> I've also sat up a monitoring tool to check for network glitches and neither this has happened.
> I've also tried to increase the max retries in chan_iax2.c and recompile asterisk, as I've read on some forums that it should resolve the issue, but this is neither the case.
> {code}
> sed -i "s/static int max_retries = 4;/static int max_retries = 12;/" channels/chan_iax2.c
> {code}
> I've attached the output from the console we see. This messages just keeps popping up and seems not to end. This could for me look like theres some cleanup not working in chan_iax2.c when the max retries happens. The error we're facing happens on this line:
> https://github.com/asterisk/asterisk/blob/13.7/channels/chan_iax2.c#L3572
> I could use some advice to debug this problem further and resolve it, because when this error happens, Asterisk does not work at all until it's get restarted.
> The problem is not persistent and I have a hard time to reproduce it. But we see it when the load increases. Doing 10k calls within 7 hour seems to make it happen.
> I looked into the code, and see that it uses a reference to a callno, which for me looks like a counter that increases ? - Could we maybe see some sort of race condition or maybe the callno runs out of scope?



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list