[asterisk-bugs] [JIRA] (ASTERISK-27569) Not answering call on Polarity reversal Event

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Wed Jan 10 14:58:39 CST 2018


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

Richard Mudgett edited comment on ASTERISK-27569 at 1/10/18 2:57 PM:
---------------------------------------------------------------------

Please be aware that a lot of the *active* analog handling code is not in chan_dahdi.c but in sig_analog.c.  sig_analog.c was extracted from chan_dahdi.c and unfortunately it was decided that sig_analog would not cover the radio operation.  I've occasionally wanted to remove all that duplicated code since we cannot really support the radio mode anymore and I really doubt the radio feature even works anymore.


was (Author: rmudgett):
Please be aware that a lot of the *active* analog handling code is not in chan_dahdi.c but in sig_analog.c.  sig_analog.c was extracted from chan_dahdi.c and unfortunately it was decided that sig_analog would not cover the radio operation.  I've occasionally wanted to remove all that duplicated code out since we cannot really support the radio mode anymore and I really doubt the radio feature even works anymore.

> Not answering call on Polarity reversal Event
> ---------------------------------------------
>
>                 Key: ASTERISK-27569
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27569
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_dahdi
>    Affects Versions: 15.1.5
>         Environment: Linux
>            Reporter: Pushkar Singh
>            Severity: Minor
>
> It seems that even though after detecting polarity reversal on asterisk, Asterisk does not answer the call.
> On further debugging on the issue it seems that, if "answeronpolarityswitch" is set to "yes" and "callprogress" is set to "no" as soon as call is answered and polarity reversal is detected by asterisk, Asterisk change the call state to UP but actually doesnot sending CONTORL_ANSWER frame to core.
> Below is the code snippet in order to support the above statement:
>  8122                         if (p->answeronpolarityswitch &&
>  8123                                 ((ast_channel_state(ast) == AST_STATE_DIALING) ||
>  8124                                 (ast_channel_state(ast) == AST_STATE_RINGING))) {
>  8125                                 ast_debug(1, "Answering on polarity switch!\n");
>  8126                                 ast_setstate(p->owner, AST_STATE_UP);
>  8127                                 if (p->hanguponpolarityswitch) {



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list