[asterisk-bugs] [Asterisk 0018178]: Asterisk manager redirect results no cdr
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Nov 1 14:42:55 CDT 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=18178
======================================================================
Reported By: wiseguy
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18178
Category: Applications/app_cdr
Reproducibility: always
Severity: major
Priority: normal
Status: feedback
Asterisk Version: 1.6.2.13
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-10-21 02:21 CDT
Last Modified: 2010-11-01 14:42 CDT
======================================================================
Summary: Asterisk manager redirect results no cdr
Description:
Hello,
I am using latest asterisk (tried on 1.6.2.11, 1.6.2.13) on latest Debian
version (5.0.6). When I initiate redirect action via Asterisk manager
interface and the call is sucessful no cdr record is generated. If call
states busy or no answer cdr record is generated. Below is my
extensions.conf:
[sip]
exten => _X.,1,AGI(pre-answer.php)
exten => _X.,n,Answer()
exten => _X.,n,Background(pantera)
exten => _X.,n,Wait(120)
exten => _X.,n,Hangup
[out]
exten => 501,1,Dial(SIP/37052045465/861131985)
exten => 501,n,Hangup
Asterisk console output (verbosity 10):
-- Executing [37052045465 at sip:1] AGI("SIP/37052045465-00000023",
"pre-answer.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/pre-answer.php
-- <SIP/37052045465-00000023>AGI Script pre-answer.php completed,
returning 0
-- Executing [37052045465 at sip:2] Answer("SIP/37052045465-00000023",
"") in new stack
-- Executing [37052045465 at sip:3]
BackGround("SIP/37052045465-00000023", "pantera") in new stack
-- <SIP/37052045465-00000023> Playing 'pantera.gsm' (language 'en')
== Manager 'fv' logged on from 127.0.0.1
== Spawn extension (out, 501, 1) exited non-zero on
'SIP/37052045465-00000023'
-- Executing [501 at out:1] Dial("SIP/37052045465-00000023",
"SIP/37052045465/861131985") in new stack
== Using SIP RTP CoS mark 5
-- Called 37052045465/861131985
== Manager 'fv' logged off from 127.0.0.1
-- SIP/37052045465-00000024 is ringing
-- SIP/37052045465-00000024 is making progress passing it to
SIP/37052045465-00000023
-- Got SIP response 486 "Busy" back from 87.110.233.1
-- SIP/37052045465-00000024 is busy
== Everyone is busy/congested at this time (1:1/0/0)
-- Executing [501 at out:2] Hangup("SIP/37052045465-00000023", "") in new
stack
== Spawn extension (out, 501, 2) exited non-zero on
'SIP/37052045465-00000023'
-- Executing [h at out:1] AGI("SIP/37052045465-00000023",
"telos-hangup.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/telos-hangup.php
-- <SIP/37052045465-00000023>AGI Script telos-hangup.php completed,
returning 0
== Using SIP RTP CoS mark 5
-- Executing [37052045465 at sip:1] AGI("SIP/37052045465-00000025",
"pre-answer.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/pre-answer.php
-- <SIP/37052045465-00000025>AGI Script pre-answer.php completed,
returning 0
-- Executing [37052045465 at sip:2] Answer("SIP/37052045465-00000025",
"") in new stack
-- Executing [37052045465 at sip:3]
BackGround("SIP/37052045465-00000025", "pantera") in new stack
-- <SIP/37052045465-00000025> Playing 'pantera.gsm' (language 'en')
== Manager 'fv' logged on from 127.0.0.1
== Spawn extension (out, 501, 1) exited non-zero on
'SIP/37052045465-00000025'
-- Executing [501 at out:1] Dial("SIP/37052045465-00000025",
"SIP/37052045465/861131985") in new stack
== Using SIP RTP CoS mark 5
-- Called 37052045465/861131985
== Manager 'fv' logged off from 127.0.0.1
-- SIP/37052045465-00000026 is ringing
-- SIP/37052045465-00000026 is making progress passing it to
SIP/37052045465-00000025
-- SIP/37052045465-00000026 answered SIP/37052045465-00000025
== Spawn extension (out, 501, 1) exited non-zero on
'SIP/37052045465-00000025'
-- Executing [h at out:1] AGI("SIP/37052045465-00000025",
"telos-hangup.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/telos-hangup.php
-- <SIP/37052045465-00000025>AGI Script telos-hangup.php completed,
returning 0
MySQL cdr, returns only one record:
*************************** 1. row ***************************
calldate: 2010-10-21 10:17:06
clid:
src: 37052045462
dst: 501
dcontext: out
channel: SIP/37052045465-00000023
dstchannel: SIP/37052045465-00000024
lastapp: Hangup
lastdata:
duration: 12
billsec: 11
disposition: BUSY
amaflags: 3
accountcode:
userfield:
uniqueid: 1287645426.35
======================================================================
----------------------------------------------------------------------
(0128522) wiseguy (reporter) - 2010-11-01 14:42
https://issues.asterisk.org/view.php?id=18178#c128522
----------------------------------------------------------------------
:~# cat /etc/asterisk/cdr.conf |grep -v ";"
[general]
enable=yes
unanswered = yes
endbeforehexten=no
Issue History
Date Modified Username Field Change
======================================================================
2010-11-01 14:42 wiseguy Note Added: 0128522
======================================================================
More information about the asterisk-bugs
mailing list