Dahdi Answer a Call On ringing State.

Home » Asterisk Users » Dahdi Answer a Call On ringing State.
Asterisk Users 7 Comments

Hi,

I have setup Dahdi with Sangoma FXO A200 card and asterisk 1.8 , everything
seems fine and working perfectly incoing/outgoing.

but one major issue is, when i made an out call from dahdi trunks and when
a number is in ringing state it gives me an answer state.

so i cannot develop any custom application which can use a screening macro
because when a cellphone is in ringing state
call is answered by dahdi channel so it will start executing dial plan
which causes an issue.

let me know if there is any parameter from which i can set in
chan_dahdi.conf and check if it worked or not.

Note: I am from INDIA and line is from BSNL

thanks
Dhaval

7 thoughts on - Dahdi Answer a Call On ringing State.

  • Hi Richard,

    i update a new version of asterisk to 1.8.9.1 and checked the issue are
    still same and my call
    getting answer while it is in ringing.

    here is brief details for finding root cause.

    Dahdi -Version: 2.4.1.2 Echo Canceller: OSLEC[channels]

    File : chan_dahdi.conf

    context=from-pstn
    signalling=fxs_ks
    rxwink=300 ; Atlas seems to use long (250ms) winks
    usecallerid=yes
    hidecallerid=no
    usecallerid=yes
    callerid=asreceived
    cidstart=polarity_in
    cidsignalling=dtmf
    callwaiting=yes
    usecallingpres=yes
    callwaitingcallerid=yes
    threewaycalling=yes
    transfer=yes
    canpark=yes
    cancallforward=yes
    callreturn=yes
    callprogress=yes
    echocancel=yes
    echocancelwhenbridged=no
    faxdetect=incoming
    echotraining=800
    rxgain=0.0
    txgain=0.0
    callgroup=1
    pickupgroup=1
    relaxdtmf=yes
    pulsedial=yes

    ;Uncomment these lines if you have problems with the disconection of your
    analog lines
    busydetect=yes
    busycount=3
    immediate=no
    answeronpolarityswitch=yes
    polarityonanswerdelay=1000

    group=0
    channel => 1

    group=1
    channel => 2

    group=0
    channel => 3

    group=0
    channel => 4

    Let me know your thoughts on this

    thanks
    Dhaval

  • FXO ports are considered Answered as soon as dialing completes. This is the way analog FXO ports work. Use PRI or SIP if you need correct Answer supervision.

  • Hi Eric,

    but in this case dialing is not completed ring is still going on, so it
    should not answered

    thanks
    Dhaval