Summary:ASTERISK-14145: sometimes : dial_exec_full: Unable to create channel of type 'IAX2' (cause 20 - Unknown)
Reporter:Maziar navahan (maziar)Labels:
Date Opened:2009-05-16 00:24:56Date Closed:2011-06-07 14:00:36
Versions:Frequency of
Environment:Attachments:( 0) extconfig.conf
( 1) fullerror1
( 2) iax.conf
( 3) messageserror1

i frequently i see this error after 5  to 20  try then many time ok and some times
see this error :

cli :
[May 16 09:35:53] WARNING[7523]: app_dial.c:1518 dial_exec_full: Unable to create channel of type 'IAX2' (cause 20 - Unknown)
 == Everyone is busy/congested at this time (1:0/0/1)
   -- Executing [501@default:3] Hangup("IAX2/", "") in new stack
 == Spawn extension (default, 501, 3) exited non-zero on 'IAX2/'
   -- Hungup 'IAX2/'

i use realtime for iax & sip

i have problem with
qualify=yes and no


iax.conf :
disallow=lpc10 ; Icky sound quality...  Mr. Roboto.

qualify=yes ; Make sure this peer is alive
qualifyfreqok = 15000 ; how frequently to ping the peer when
; everything seems to be ok, in milliseconds
qualifyfreqnotok = 10000 ; how frequently to ping the peer when it's
; either LAGGED or UNAVAILABLE, in milliseconds
;jitterbuffer=no ; Turn off jitter buffer for this peer


; function: ${ENV(VARIABLE)}
CONSOLE=Console/dsp ; Console interface for demo
IAXINFO=guest ; IAXtel username/password
TRUNK=DAHDI/G2 ; Trunk interface

exten => _1xx,1,NoOp()
exten => _1xx,n,Dial(SIP/${EXTEN},10)
exten => _1xx,n,Hangup()

exten => _5xx,1,NoOp()
exten => _5xx,n,Dial(IAX2/${EXTEN},10)
exten => _5xx,n,Hangup()

include => demo

iax ara data sample :
type: friend
notransfer: no
auth : md5
context : default
host : dynamic
qualify : test both yes and no
disallow : all
allow : gsm

Comments:By: Joshua C. Colp (jcolp) 2009-05-18 09:12:24

Please upload a *complete* console log with debug going to console in logger.conf and "core set debug 2" executed on the CLI. An iax2 show peer <peer name> load would also be useful. Since you are using realtime information on the module you are using for it would also be useful.

By: Maziar navahan (maziar) 2009-05-20 02:01:58

please note i have only problem with use iax in real time

also i have not any problem with sip in real time & note iax without real time in current config. then seems problem in iax in realtime mode

table on postgres :

 "name" character(20),
 ipaddr character(22),
 port integer,
 regseconds integer,
 username character varying(30),
 "type" character varying(6) NOT NULL,
 secret character varying(50),
 md5secret character varying(32),
 dbsecret character varying(100),
 notransfer character varying(10),
 inkeys character varying(100),
 outkey character varying(100),
 auth character varying(100),
 accountcode character varying(100),
 amaflags character varying(100),
 callerid character varying(100),
 context character varying(100),
 defaultip character varying(15),
 host character varying(31) NOT NULL DEFAULT 'dynamic'::character varying,
 "language" character(5),
 mailbox character varying(50),
 deny character varying(95),
 permit character varying(95),
 qualify character varying(4),
 disallow character varying(100),
 allow character varying(100),
 nid serial NOT NULL,
 CONSTRAINT iax_index01 UNIQUE (name)
ALTER TABLE iax OWNER TO asterisk;

By: Leif Madsen (lmadsen) 2009-07-13 10:02:01

Assigned to dvossel to determine if there is an issue here that needs to be resolved. If not, please close. Thanks!

By: David Vossel (dvossel) 2009-07-14 13:53:56

Unable to create channel of type 'IAX2' (cause 20 - Unknown)

This error is probably caused by the IAX2 peer not existing.  I've used IAX2 realtime lately and have had no issues.  Feel free to re-open this issue if you are still having trouble and can provide 'iax2 show peer <peer name> load' output.

By: Maziar navahan (maziar) 2009-07-14 23:01:49

i frequently see this problem with many of different peers software in win & Linux
then i think this can not produced by client  app

By: David Vossel (dvossel) 2009-07-15 10:04:17

I don't know what your iax client has to do with this.

Please provide 'iax2 show peer <peer name> load' output on the peer that is failing.

By: Maziar navahan (maziar) 2009-07-25 10:54:29

* Name       : 500
 Secret       : <Set>
 Context      : SFInternalL1
 Parking lot  :
 Mailbox      :
 Dynamic      : Yes
 Callerid     : "" <500>
 Expire       : -1
 ACL          : No
 Addr->IP     : (Unspecified) Port 0
 Defaddr->IP  : Port 0
 Username     : 500
 Codecs       : 0x2 (gsm)
 Codec Order  : (gsm)
 Status       : Unmonitored
 Qualify      : every 60000ms when OK, every 10000ms when UNREACHABLE (sample smoothing Off)

By: Maziar navahan (maziar) 2009-07-25 10:55:21

in asterisk 1.6.1 also this :
pbx.c:4384 ast_context_remove_extension_callerid2: Cannot find extension 500 in root_table in context iaxregistrations

By: David Vossel (dvossel) 2009-08-19 16:55:22

Alright, I'm trying to get this straight.  You are able to dial an IAX peer when the entry is in your iax.conf file, but not when you've taken it out and replaced it with a realtime entry.

Lets try to isolate what the difference in the two entries could be if there is one.  Can you provide 'iax2 show peer <peername> output for both the working iax.conf entry, and then for the not working realtime entry.

By: Russell Bryant (russell) 2009-09-10 22:43:05

Feel free to reopen if you can provide the requested information