Summary:ASTERISK-04969: IAX peer from database results in auto-congestion
Reporter:Dana Olson (dolson)Labels:
Date Opened:2005-09-01 22:47:13Date Closed:2011-06-07 14:10:18
Versions:Frequency of
Environment:Attachments:( 0) trace.txt
Description:Whenever I use my IAX provider from a database table, I can't complete a call. Here is what happens:

   -- Called iaxout/17054759639
   -- IAX2/iaxout-4 is circuit-busy
Sep  1 23:36:47 NOTICE[24473]: chan_iax2.c:2742 auto_congest: Auto-congesting call due to slow response
   -- Hungup 'IAX2/iaxout-4'
 == Everyone is busy/congested at this time (1:0/1/0)
 == Auto fallthrough, channel 'Zap/1-1' status is 'CONGESTION'

It works fine if I configure the IAX peer in iax.conf, or if I specify the user:pass@host in the dialplan in the Dial string. I have double-checked with my IAX provider, and they are not seeing the dial come across to their Asterisk.


From my iax table in my database, this is the account (specifics are changed):

name iaxout
username MyUsername
type peer
secret MyPassword
host MyIAXHost.com
qualify yes
disallow all
allow gsm

The same thing in the iax.conf file, which works, is this:

Comments:By: Michael Jerris (mikej) 2005-09-02 06:48:15

Please get with a bug marshall in #asterisk-bugs on irc to look at this.

By: Kevin P. Fleming (kpfleming) 2005-09-02 15:41:58

Please provide a call trace with 'iax2 debug' and 'set debug 10' enabled so we can see what is happening.

By: Dana Olson (dolson) 2005-09-03 03:29:53

MikeJ, I've asked a couple times on IRC throughout the day, but everyone's busy or away.

kpfleming, here is the trace file.

By: Kevin P. Fleming (kpfleming) 2005-09-13 18:43:49

I suspect you have a 'port' column in your database table, which contains zero (0) for this peer. Asterisk is attempting to send the packets to port zero on the correct IP address, which of course fails. You will need to put '4569' into this column for any peers you want loaded from the database that are not going to register with your server.