Summary: | ASTERISK-16844: Asterisk manager redirect results no cdr | ||
Reporter: | wiseguy (wiseguy) | Labels: | |
Date Opened: | 2010-10-21 02:21:32 | Date Closed: | 2011-07-27 13:51:32 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Applications/app_cdr |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
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@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@sip:2] Answer("SIP/37052045465-00000023", "") in new stack -- Executing [37052045465@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@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@out:2] Hangup("SIP/37052045465-00000023", "") in new stack == Spawn extension (out, 501, 2) exited non-zero on 'SIP/37052045465-00000023' -- Executing [h@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@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@sip:2] Answer("SIP/37052045465-00000025", "") in new stack -- Executing [37052045465@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@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@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 | ||
Comments: | By: wiseguy (wiseguy) 2010-10-21 10:39:31 Hello, I have received personal message that the bug is not cleary described. I will try to do it once again. Main problem is that if the call is redirected using Manager interface (AMI) and is ANSWERED, CDR record is not present. If the call is BUSY or NO ANSWER, then CDR record is generated. Sorry for my English. Thank you. By: Leif Madsen (lmadsen) 2010-11-01 14:17:43 What does your cdr.conf file look like? By: wiseguy (wiseguy) 2010-11-01 14:42:55 :~# cat /etc/asterisk/cdr.conf |grep -v ";" [general] enable=yes unanswered = yes endbeforehexten=no By: Russell Bryant (russell) 2011-07-27 13:51:26.384-0500 Per the Asterisk maintenance timeline page at http://www.asterisk.org/asterisk-versions maintenance (bug) support for the 1.4 and 1.6.x branches has ended. For continued maintenance support please move to the 1.8 branch which is a long term support (LTS) branch. For more information about branch support, please see https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions If this is still an issue, please open a new issue so it can be re-triaged appropriately. Thanks! |