Summary: | ASTERISK-22940: AGI - 'h' Extension Runs When FAX Is Detected, Not At Hangup | ||
Reporter: | David Cunningham (dcunningham) | Labels: | |
Date Opened: | 2013-12-04 23:27:32.000-0600 | Date Closed: | 2014-01-21 09:16:19.000-0600 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Resources/res_agi |
Versions: | 1.8.8.2 | Frequency of Occurrence | Frequent |
Related Issues: | |||
Environment: | CentOS release 6.5 64 bit | Attachments: | ( 0) h-after-fax.txt.gz |
Description: | When a fax is detected (faxdetect=yes in sip.conf) the 'h' extension is run immediately, just before the 'fax' extension is run. The 'h' extension is then NOT run after the 'fax' extension finishes. So it's being called at the wrong time.
Please see attached trace and follow the call with channel "SIP/pn1-00000193". You'll see the fax being detected here: [2013-12-04 10:16:09] DEBUG[13541] chan_sip.c: Fax CNG detected on SIP/pn1-00000193 then the 'h' extension: [2013-12-04 10:16:09] VERBOSE[13541] res_agi.c: <SIP/pn1-00000193>AGI Tx >> agi_extension: h then the 'fax' extension: [2013-12-04 10:16:11] VERBOSE[13541] res_agi.c: <SIP/pn1-00000193>AGI Tx >> agi_extension: fax then the call finishes, but the 'h' extension is not then run: [2013-12-04 10:16:59] DEBUG[13541] channel.c: Hanging up channel 'SIP/pn1-00000193' Here's the extensions.conf entry: [from-external] exten => _., 1, AGI(agi://127.0.0.1/product?stype=external) exten => h, 1, AGI(agi://127.0.0.1/end) exten => t, 1, Hangup | ||
Comments: | By: David Cunningham (dcunningham) 2013-12-04 23:29:45.404-0600 Trace attached. By: Rusty Newton (rnewton) 2013-12-10 17:06:29.326-0600 Yeah that seems unexpected. {noformat} [2013-12-04 10:16:09] DEBUG[13541] chan_sip.c: Fax CNG detected on SIP/pn1-00000193 [2013-12-04 10:16:09] VERBOSE[13541] chan_sip.c: == Redirecting 'SIP/pn1-00000193' to fax extension due to CNG detection [2013-12-04 10:16:09] DEBUG[13541] channel.c: Soft-Hanging up channel 'SIP/pn1-00000193' [2013-12-04 10:16:09] DEBUG[13541] channel.c: Didn't get a frame from channel: SIP/pn1-00000193 [2013-12-04 10:16:09] DEBUG[13541] channel.c: Bridge stops bridging channels SIP/pn1-00000193 and Local/11112233@product-phone-da10;1 [2013-12-04 10:16:09] DEBUG[13544] res_rtp_asterisk.c: Setting the marker bit due to a source update [2013-12-04 10:16:09] DEBUG[13541] pbx.c: Launching 'AGI' [2013-12-04 10:16:09] VERBOSE[13541] pbx.c: -- Executing [h@from-external:1] AGI("SIP/pn1-00000193", "agi://127.0.0.1/end") in new stack {noformat} Can you attach the same log, but including "sip set debug on" and "fax set debug on" ? Also, would it be trivial for you to test in latest SVN of 1.8? By: David Cunningham (dcunningham) 2013-12-10 21:51:53.716-0600 Thanks Rusty, I will try to get these. By: Rusty Newton (rnewton) 2014-01-03 18:34:37.156-0600 David, I'm curious if you were able to get the additional debug. We'll need that to move forward. If it will be a long while, we can close out the issue and re-open when you are able to work on it. By: Rusty Newton (rnewton) 2014-01-21 09:16:14.291-0600 Suspended due to lack of activity. Please request a bug marshal in #asterisk-bugs on the IRC network irc.freenode.net to reopen the issue should you have the additional information requested. Further information can be found at http://www.asterisk.org/developers/bug-guidelines |