Always ANSWERED with analog lines?

Discussion in 'General' started by eltano, Jan 24, 2011.

  1. eltano

    Joined:
    Jan 24, 2011
    Messages:
    2
    Likes Received:
    0
    Hello everybody.

    I've been using Elastix 2.0 and I managed to run it without major troubles, but there is an issue that's pulling my hair off.

    When I make a call from an analog line to another analog line, the status always turns to ANSWERED after 3 seconds, no matter what really happens.

    Googling, I've found an old post in asterisk-users mailing list here, that is states clearly:
    Is that all? Is there anything I can do to get real metrics of my outgoing call through analog lines or I just must live with this?

    I'm on Elastix 2.0.4-7, DAHDI Version: 2.4.0 and using a Yeastar TDM400 that Asterisk shows as a 'Wildcard S400P Prototype Board 5' whe you do a 'dahdi show version' in Asterisk's CLI.

    Thank you very much for your time.
    Daniel
     
  2. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    That depends on where you are, if your telco provider provides it then:

    answeronpolarityswitch=yes
    hanguponpolarityswitch=yes


    in /etc/asterisk/chan_dahdi.conf

    It generally doesn't work on US land-lines but check with your provider, you never know your luck in Mendoza (nice wine :) ).
     
  3. eltano

    Joined:
    Jan 24, 2011
    Messages:
    2
    Likes Received:
    0
    Thank you very much for you reply, dicko.

    I've already tried with polarity detection but it didn´t work. I always get the answer 3 seconds after the call, like in this log:

    Code:
    [Jan 25 10:19:38] VERBOSE[17012] pbx.c:     -- Executing [s@macro-dialout-trunk:19] Dial("SIP/1050-0000019c", "DAHDI/2/48320000,300,") in new stack
    [Jan 25 10:19:38] VERBOSE[17012] app_dial.c:     -- Called 2/48320000
    [Jan 25 10:19:41] VERBOSE[17012] app_dial.c:     -- DAHDI/2-1 answered SIP/1050-0000019c
    
    In fact, when I set both answer and hangup on polarity reversal, the hangup is detected even before the busy tone, which is good, but calls to cell phone lines always fail. But this is another problem, and I´ll surely start another thread to ask for help with that.

    Also tried with 'callprogress=yes' and a lot of combinations in chan_dahdi.conf with no luck.

    By the way, I´m not actually in Mendoza, but yes, we have great wines over there!

    Thanks again. ;)
    Daniel
     

Share This Page