[asterisk-bugs] [Asterisk 0016081]: [patch] utils.c:938 ast_carefulwrite: Timed out trying to write causes corruption to astdb
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Dec 15 15:32:43 CST 2009
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=16081
======================================================================
Reported By: aragon
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 16081
Category: Resources/res_agi
Reproducibility: have not tried
Severity: major
Priority: normal
Status: acknowledged
Target Version: Potential Blocker
Asterisk Version: SVN
JIRA: SWP-286
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2009-10-15 10:02 CDT
Last Modified: 2009-12-15 15:32 CST
======================================================================
Summary: [patch] utils.c:938 ast_carefulwrite: Timed out
trying to write causes corruption to astdb
Description:
Agent addmember to local extensions causes the agent to be logged as
non-existent channels when ast_carefulwrite times out during login.
[Oct 15 10:40:07] NOTICE[29962]: utils.c:938 ast_carefulwrite: Timed out
trying to write
[Oct 15 10:40:07] NOTICE[29962]: utils.c:938 ast_carefulwrite: Timed out
trying to write
Here is an example of the corruption where the same local extension is
logged twice. The "outgoing" agent cannot logoff unless I manually remove
from astdb. The local agent can logoff but since the outgoing cannot calls
entering queue fail to reach agents and the local channel cannot log back
in.
Local/3345 at queuefifteen-outgoing/n (dynamic) (Invalid) has taken no calls
yet
Local/3345 at queuefifteen-agent/n (dynamic) (Not in use) has taken 2
calls (last was
1915 secs ago)
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0014843 1 in 3 incoming zap PRI calls do no hea...
related to 0015609 [patch] WARNING[23025]: channel.c:952 _...
======================================================================
----------------------------------------------------------------------
(0115295) aragon (reporter) - 2009-12-15 15:32
https://issues.asterisk.org/view.php?id=16081#c115295
----------------------------------------------------------------------
I beleive the problem is in the background application
[Dec 15 16:27:30] WARNING[17320] file.c: Failed to write frame
[Dec 15 16:27:30] DEBUG[17320] channel.c: Set channel Zap/17-1 to write
format ulaw
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Extension ÿ, priority 0 returned
normally even though call was hung up
[Dec 15 16:27:30] DEBUG[17320] channel.c: Soft-Hanging up channel
'Zap/17-1'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Launching 'Goto'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Expression result is '0'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Expression result is '2'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Launching 'GotoIf'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Launching 'ResetCDR'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is '"private"
<5555555555>'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is '5555555555'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is '4350'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is 'zap-incoming'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is 'Zap/17-1'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is '(null)'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is 'BackGround'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is 'custom/0002'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is '2009-12-15
16:27:26'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is '2009-12-15
16:27:26'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is '2009-12-15
16:27:30'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is '4'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is '4'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is 'ANSWERED'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is 'DOCUMENTATION'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is '_NONE_'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is
'1260912446.4587'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Function result is '4350'
[Dec 15 16:27:30] DEBUG[17320] cdr_addon_mysql.c: cdr_mysql: inserting a
CDR record.
[Dec 15 16:27:30] DEBUG[17320] cdr_addon_mysql.c: cdr_mysql: SQL command
as follows: INSERT INTO cdr_pre
(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid,userfield)
VALUES ('2009-12-15 16:27:26','\"private\"
<5555555555>','5555555555','4350','zap-incoming',
'Zap/17-1','','BackGround','custom/0002',4,4,'ANSWERED',3,'_NONE_','1260912446.4587','4350')
[Dec 15 16:27:30] DEBUG[17320] cdr_radius.c: Unable to create RADIUS
record. CDR not recorded!
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Launching 'NoCDR'
[Dec 15 16:27:30] DEBUG[17320] pbx.c: Launching 'System'
Issue History
Date Modified Username Field Change
======================================================================
2009-12-15 15:32 aragon Note Added: 0115295
======================================================================
More information about the asterisk-bugs
mailing list