[asterisk-users] Why **CONGESTION** not *****NOANSWER****** ?

Eric Wieling EWieling at nyigc.com
Wed Dec 21 07:13:36 CST 2011


"  -- Got SIP response 480 "Temporarily Unavailable" back from 10.10.11.203"  this is why you are getting congestion instead of NOANSWER.   Fix that and add a timeout to your dial and it should work.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of virendra bhati
Sent: Wednesday, December 21, 2011 6:48 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion; Sam Govind
Subject: [asterisk-users] Why **CONGESTION** not *****NOANSWER****** ?

Hi List,

I have a DID number which is routed to my production server. Problem is that when I dial that DID number from my production number then it's gives DIALSTATUS to CONGESTION if I don't pick the calls. As per the asterisk it should reply NO ANSWER.

extensions.conf :-


exten => 08723310476,1,Dial(SIP/2218)
        same => n,NoOp(**${DIALSTATUS}**)
        same => n,ExecIf($['${DIALSTATUS}'='CHANUNAVAIL']?NoOp(Channel unavailable. On SIP, peer may not be registered.))
        same => n,ExecIf($['${DIALSTATUS}'='BUSY']?noop(Busy signal. The dial command reached its number but the number is busy.))
        same => n,ExecIf($['${DIALSTATUS}'='ANSWER']?noop(Call is answered. A successful dial. The caller reached the callee.))
        same => n,ExecIf($['${DIALSTATUS}'='NOANSWER']?noop(No answer. The dial command reached its number, the number rang for too long, then the dial timed out.))
        same => n,ExecIf($['${DIALSTATUS}'='CANCEL']?noop(Call is cancelled. The dial command reached its number but the caller hung up before the callee picked up.))
        same => n,ExecIf($['${DIALSTATUS}'='CONGESTION']?noop(Congestion. This status is usually a sign that the dialled number is not recognised.))
        same => n,ExecIf($['${DIALSTATUS}'='DONTCALL']?noop(Privacy mode, callee rejected the call))
        same => n,ExecIf($['${DIALSTATUS}'='TORTURE']?noop(Privacy mode, callee chose to send caller to torture menu))
        same => n,ExecIf($['${DIALSTATUS}'='INVALIDARGS']?noop(Error parsing Dial command arguments))
        same => n,wait(9)

exten => 1212,1,Answer()
        same => n,Dial(SIP/08723310476 at voipon)
        same => n,NoOp(**${DIALSTATUS}**)
        same => n,ExecIf($['${DIALSTATUS}'='CHANUNAVAIL']?NoOp(Channel unavailable. On SIP, peer may not be registered.))
        same => n,ExecIf($['${DIALSTATUS}'='BUSY']?noop(Busy signal. The dial command reached its number but the number is busy.))
        same => n,ExecIf($['${DIALSTATUS}'='ANSWER']?noop(Call is answered. A successful dial. The caller reached the callee.))
        same => n,ExecIf($['${DIALSTATUS}'='NOANSWER']?noop(No answer. The dial command reached its number, the number rang for too long, then the dial timed out.))
        same => n,ExecIf($['${DIALSTATUS}'='CANCEL']?noop(Call is cancelled. The dial command reached its number but the caller hung up before the callee picked up.))
        same => n,ExecIf($['${DIALSTATUS}'='CONGESTION']?noop(Congestion. This status is usually a sign that the dialled number is not recognised.))
        same => n,ExecIf($['${DIALSTATUS}'='DONTCALL']?noop(Privacy mode, callee rejected the call))
        same => n,ExecIf($['${DIALSTATUS}'='TORTURE']?noop(Privacy mode, callee chose to send caller to torture menu))
        same => n,ExecIf($['${DIALSTATUS}'='INVALIDARGS']?noop(Error parsing Dial command arguments))
        same => n,Hangup()

exten => h,1,NoOp()
        same => n,NoOp(********${HANGUPCAUSE}*********)
        same => n,NoOP(bye Virendra)


asterisk cli:-

    -- Executing [1212 at default:1] Answer("SIP/2209-00000854", "") in new stack
    -- Executing [1212 at default:2] Dial("SIP/2209-00000854", "SIP/08723310476 at voipon") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 08723310476 at voipon
  == Using SIP RTP CoS mark 5
    -- Executing [08723310476 at default:1] Dial("SIP/77.240.54.13:5063-00000856", "SIP/2218") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 2218
    -- SIP/2218-00000857 is ringing
    -- SIP/voipon-00000855 is making progress passing it to SIP/2209-00000854
  -- Got SIP response 480 "Temporarily Unavailable" back from 10.10.11.203
    -- SIP/2218-00000857 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [08723310476 at default:2] NoOp("SIP/77.240.54.13:5063-00000856", "**CONGESTION**") in new stack
    -- Executing [08723310476 at default:3] ExecIf("SIP/77.240.54.13:5063-00000856", "0?NoOp(Channel unavailable. On SIP, peer may not be registered.)") in new stack
    -- Executing [08723310476 at default:4] ExecIf("SIP/77.240.54.13:5063-00000856", "0?noop(Busy signal. The dial command reached its number but the number is busy.)") in new stack
    -- Executing [08723310476 at default:5] ExecIf("SIP/77.240.54.13:5063-00000856", "0?noop(Call is answered. A successful dial. The caller reached the callee.)") in new stack
    -- Executing [08723310476 at default:6] ExecIf("SIP/77.240.54.13:5063-00000856", "0?noop(No answer. The dial command reached its number, the number rang for too long, then the dial timed out.)") in new stack
    -- Executing [08723310476 at default:7] ExecIf("SIP/77.240.54.13:5063-00000856", "0?noop(Call is cancelled. The dial command reached its number but the caller hung up before the callee picked up.)") in new stack
    -- Executing [08723310476 at default:8] ExecIf("SIP/77.240.54.13:5063-00000856", "1?noop(Congestion. This status is usually a sign that the dialled number is not recognised.)") in new stack
    -- Executing [08723310476 at default:9] ExecIf("SIP/77.240.54.13:5063-00000856", "0?noop(Privacy mode, callee rejected the call)") in new stack
    -- Executing [08723310476 at default:10] ExecIf("SIP/77.240.54.13:5063-00000856", "0?noop(Privacy mode, callee chose to send caller to torture menu)") in new stack
    -- Executing [08723310476 at default:11] ExecIf("SIP/77.240.54.13:5063-00000856", "0?noop(Error parsing Dial command arguments)") in new stack
    -- Executing [08723310476 at default:12] Wait("SIP/77.240.54.13:5063-00000856", "9") in new stack
    -- Auto fallthrough, channel 'SIP/77.240.54.13:5063-00000856' status is 'CONGESTION'
    -- Executing [h at default:1] NoOp("SIP/77.240.54.13:5063-00000856", "") in new stack
    -- Executing [h at default:2] NoOp("SIP/77.240.54.13:5063-00000856", "********19*********") in new stack
    -- Executing [h at default:3] NoOp("SIP/77.240.54.13:5063-00000856", "bye Virendra") in new stack
    -- SIP/voipon-00000855 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [1212 at default:3] NoOp("SIP/2209-00000854", "**CONGESTION**") in new stack
    -- Executing [1212 at default:4] ExecIf("SIP/2209-00000854", "0?NoOp(Channel unavailable. On SIP, peer may not be registered.)") in new stack
    -- Executing [1212 at default:5] ExecIf("SIP/2209-00000854", "0?noop(Busy signal. The dial command reached its number but the number is busy.)") in new stack
    -- Executing [1212 at default:6] ExecIf("SIP/2209-00000854", "0?noop(Call is answered. A successful dial. The caller reached the callee.)") in new stack
    -- Executing [1212 at default:7] ExecIf("SIP/2209-00000854", "0?noop(No answer. The dial command reached its number, the number rang for too long, then the dial timed out.)") in new stack
    -- Executing [1212 at default:8] ExecIf("SIP/2209-00000854", "0?noop(Call is cancelled. The dial command reached its number but the caller hung up before the callee picked up.)") in new stack
    -- Executing [1212 at default:9] ExecIf("SIP/2209-00000854", "1?noop(Congestion. This status is usually a sign that the dialled number is not recognised.)") in new stack
    -- Executing [1212 at default:10] ExecIf("SIP/2209-00000854", "0?noop(Privacy mode, callee rejected the call)") in new stack
    -- Executing [1212 at default:11] ExecIf("SIP/2209-00000854", "0?noop(Privacy mode, callee chose to send caller to torture menu)") in new stack
    -- Executing [1212 at default:12] ExecIf("SIP/2209-00000854", "0?noop(Error parsing Dial command arguments)") in new stack
    -- Executing [1212 at default:13] Hangup("SIP/2209-00000854", "") in new stack
  == Spawn extension (default, 1212, 13) exited non-zero on 'SIP/2209-00000854'
    -- Executing [h at default:1] NoOp("SIP/2209-00000854", "") in new stack
    -- Executing [h at default:2] NoOp("SIP/2209-00000854", "********1*********") in new stack
    -- Executing [h at default:3] NoOp("SIP/2209-00000854", "bye Virendra") in new stack


Even I hangup the call or answer the call and don't pick the call I always get the same responce at asterisk.

 
-- 


Thanks and regards

 Virendra Bhati
+91-8885268942
Software Engineer





More information about the asterisk-users mailing list