[asterisk-bugs] [JIRA] (ASTERISK-22940) AGI - 'h' Extension Runs When FAX Is Detected, Not At Hangup

Rusty Newton (JIRA) noreply at issues.asterisk.org
Tue Dec 10 17:07:04 CST 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-22940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=212811#comment-212811 ] 

Rusty Newton commented on ASTERISK-22940:
-----------------------------------------

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 at 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 at 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" ?
                
> AGI - 'h' Extension Runs When FAX Is Detected, Not At Hangup
> ------------------------------------------------------------
>
>                 Key: ASTERISK-22940
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22940
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_agi
>    Affects Versions: 1.8.8.2
>         Environment: CentOS release 6.5 64 bit
>            Reporter: David Cunningham
>         Attachments: h-after-fax.txt.gz
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list