[asterisk-bugs] [Asterisk 0016861]: Unable to create channel of type 'IAX2' (cause 20 - Unknown)

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Feb 18 07:56:18 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16861 
====================================================================== 
Reported By:                r1
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16861
Category:                   Channels/chan_iax2
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-02-18 04:08 CST
Last Modified:              2010-02-18 07:56 CST
====================================================================== 
Summary:                    Unable to create channel of type 'IAX2' (cause 20 -
Unknown)
Description: 
Good day!
i have realtime scheme on postgresql for iax and sip peers
dial to sip peers  -is ok
dial to iax peers  - random is bad

if rtcachefriends=no, all is bad

But if in iax.conf 
 rtcachefriends=yes
asterisk will cache data in the local and the problem disappears

this bug is relevant in all SVN versions, all tarball versions(1.2 and
up)


====================================================================== 

---------------------------------------------------------------------- 
 (0118215) r1 (reporter) - 2010-02-18 07:56
 https://issues.asterisk.org/view.php?id=16861#c118215 
---------------------------------------------------------------------- 
Supplement. While not regseconds field equal to zero -  calls are possible


this is full sql log
Now i'm only connecting. nothing rings

begin login

010-02-18 14:07:56 IRKT LOG: ???????: SELECT * FROM users_conf WHERE name
= '20009' AND host = 'dynamic'
2010-02-18 14:07:56 IRKT LOG: ???????: UPDATE users_conf SET ipaddr =
'0.0.0.0', port = '0', regseconds = '0' WHERE name = '20009'
2010-02-18 14:07:56 IRKT LOG: ???????: SELECT * FROM users_conf WHERE
ipaddr = '127.0.0.1' AND port = '43789'
2010-02-18 14:07:56 IRKT LOG: ???????: SELECT * FROM users_conf WHERE name
= '20009' AND host = 'dynamic'
2010-02-18 14:07:56 IRKT LOG: ???????: UPDATE users_conf SET ipaddr =
'0.0.0.0', port = '0', regseconds = '0' WHERE name = '20009'
2010-02-18 14:07:56 IRKT LOG: ???????: SELECT * FROM users_conf WHERE name
= '20009' AND host = 'dynamic'
2010-02-18 14:07:56 IRKT LOG: ???????: UPDATE users_conf SET ipaddr =
'0.0.0.0', port = '0', regseconds = '0' WHERE name = '20009'
2010-02-18 14:07:56 IRKT LOG: ???????: SELECT * FROM users_conf WHERE name
= '20009' AND host = 'dynamic'
2010-02-18 14:07:56 IRKT LOG: ???????: UPDATE users_conf SET ipaddr =
'0.0.0.0', port = '0', regseconds = '0' WHERE name = '20009'
2010-02-18 14:07:56 IRKT LOG: ???????: UPDATE users_conf SET ipaddr =
'0.0.0.0', port = '0', regseconds = '0' WHERE name = '20009'

end login


something...

2010-02-18 14:08:15 IRKT LOG: ???????: SELECT * FROM users_conf WHERE
ipaddr = '127.0.0.1' AND port = '43789'
2010-02-18 14:08:15 IRKT LOG: ???????: SELECT * FROM users_conf WHERE
ipaddr = '127.0.0.1' AND port = '59305'

something...

2010-02-18 14:08:35 IRKT LOG: ???????: SELECT * FROM users_conf WHERE
ipaddr = '127.0.0.1' AND port = '43789'
2010-02-18 14:08:35 IRKT LOG: ???????: SELECT * FROM users_conf WHERE
ipaddr = '127.0.0.1' AND port = '59305'
2010-02-18 14:08:38 IRKT LOG: ???????: SELECT * FROM users_conf WHERE name
= '20001'
2010-02-18 14:08:38 IRKT LOG: ???????: SELECT * FROM users_conf WHERE name
= '20001' AND host = 'dynamic'
2010-02-18 14:08:38 IRKT LOG: ???????: SELECT * FROM users_conf WHERE name
= '20001'
2010-02-18 14:08:38 IRKT LOG: ???????: SELECT * FROM users_conf WHERE name
= '20001' AND host = 'dynamic'
2010-02-18 14:08:38 IRKT LOG: ???????: SELECT * FROM users_conf WHERE name
= '20001'
2010-02-18 14:08:38 IRKT LOG: ???????: SELECT * FROM users_conf WHERE name
= '20001' AND host = 'dynamic' 

Ops. what is this?
2010-02-18 14:08:51 IRKT LOG: ???????: UPDATE users_conf SET ipaddr =
'127.0.0.1', port = '43789', regseconds = '0' WHERE name = '20009'

after this, calling to 20009 impossible. Field regseconds = 0 while Peer
20009 is  registered 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-02-18 07:56 r1             Note Added: 0118215                          
======================================================================




More information about the asterisk-bugs mailing list