[asterisk-bugs] [JIRA] Updated: (ASTERISK-20484) Code Cleanup in app_alarmreceiver caused new issue where event are processed before receiving all digits

Jean-Philippe Lord (JIRA) noreply at issues.asterisk.org
Mon Oct 1 21:39:27 CDT 2012


     [ https://issues.asterisk.org/jira/browse/ASTERISK-20484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Philippe Lord updated ASTERISK-20484:
------------------------------------------

    Attachment: app_alarmreceiver.c

Hello Kaloyan, 

I have done some more testing and it appears the new version from ASTERISK-20157 is causing an issue (with the workaround or with the attached patch)

I have a local panel attached to an ATA that dials into asterisk, codec ulaw. Tones are captured no issue.

However I also have a remote panel with an ATA, codec ulaw. Tones are not recognized when this panel dials. I get the following on the console:

  == AlarmReceiver: Incomplete string: , trying again...
       > AlarmReceiver: Sending 1400Hz 100ms burst (ACK)
       > AlarmReceiver: Sending 2300Hz 100ms burst (ACK)
       > AlarmReceiver: DTMF Digit Timeout on IAX2/matrix-6020
  == AlarmReceiver: Incomplete string: , trying again...
       > AlarmReceiver: Sending 1400Hz 100ms burst (ACK)
       > AlarmReceiver: Sending 2300Hz 100ms burst (ACK)
       > AlarmReceiver: DTMF Digit Timeout on IAX2/matrix-6020
  == AlarmReceiver: Incomplete string: , trying again...
       > AlarmReceiver: Sending 1400Hz 100ms burst (ACK)
       > AlarmReceiver: Sending 2300Hz 100ms burst (ACK)
       > AlarmReceiver: DTMF Digit Timeout on IAX2/matrix-6020
  == AlarmReceiver: Incomplete string: , trying again...
       > AlarmReceiver: Sending 1400Hz 100ms burst (ACK)
       > AlarmReceiver: Sending 2300Hz 100ms burst (ACK)
       > AlarmReceiver: DTMF Digit Timeout on IAX2/matrix-6020
  == AlarmReceiver: Incomplete string: , trying again...
       > AlarmReceiver: Sending 1400Hz 100ms burst (ACK)
       > AlarmReceiver: Sending 2300Hz 100ms burst (ACK)
       > AlarmReceiver: App exiting...

To further pinpoint the issue, I took revision 362635 from SVN and did a simple change to it to simply disable the send_tone_burst function and use astetisk built in functions (attached is this modified version) and for some reasons, both the local panel and remote panel work properly and tones are captures 1st try.

I am not sure what the issue may be. I can run other tests if you can help.

Thanks again.

> Code Cleanup in app_alarmreceiver caused new issue where event are processed before receiving all digits
> --------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-20484
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20484
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_alarmreceiver
>    Affects Versions: SVN
>            Reporter: Jean-Philippe Lord
>            Assignee: Pedro Kiefer
>         Attachments: app_alarmreceiver.c, ASTERISK-20484_v1.diff
>
>
> Issue caused since ASTERISK-20157
> event are processed before receiving all digits
>  == AlarmReceiver: Received Event 010
>  == AlarmReceiver: Bad DTMF character ý == AlarmReceiver: Nonzero checksum
>  == AlarmReceiver: Received Event 100
>  == AlarmReceiver: Bad DTMF character ý == AlarmReceiver: Nonzero checksum
>  == AlarmReceiver: Received Event 0C2
>  == AlarmReceiver: Bad DTMF character ý == AlarmReceiver: Nonzero checksum
>  == AlarmReceiver: Received Event 299

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list