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@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@default:1] Answer("SIP/2209-00000854", "") in new stack -- Executing [1212@default:2] Dial("SIP/2209-00000854", "SIP/08723310476@voipon") in new stack == Using SIP RTP CoS mark 5 -- Called 08723310476@voipon == Using SIP RTP CoS mark 5 -- Executing [08723310476@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@default:2] NoOp("SIP/77.240.54.13:5063-00000856", "**CONGESTION**") in new stack -- Executing [08723310476@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@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@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@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@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@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@default:9] ExecIf("SIP/77.240.54.13:5063-00000856", "0?noop(Privacy mode, callee rejected the call)") in new stack -- Executing [08723310476@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@default:11] ExecIf("SIP/77.240.54.13:5063-00000856", "0?noop(Error parsing Dial command arguments)") in new stack -- Executing [08723310476@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@default:1] NoOp("SIP/77.240.54.13:5063-00000856", "") in new stack -- Executing [h@default:2] NoOp("SIP/77.240.54.13:5063-00000856", "********19*********") in new stack -- Executing [h@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@default:3] NoOp("SIP/2209-00000854", "**CONGESTION**") in new stack -- Executing [1212@default:4] ExecIf("SIP/2209-00000854", "0?NoOp(Channel unavailable. On SIP, peer may not be registered.)") in new stack -- Executing [1212@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@default:6] ExecIf("SIP/2209-00000854", "0?noop(Call is answered. A successful dial. The caller reached the callee.)") in new stack -- Executing [1212@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@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@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@default:10] ExecIf("SIP/2209-00000854", "0?noop(Privacy mode, callee rejected the call)") in new stack -- Executing [1212@default:11] ExecIf("SIP/2209-00000854", "0?noop(Privacy mode, callee chose to send caller to torture menu)") in new stack -- Executing [1212@default:12] ExecIf("SIP/2209-00000854", "0?noop(Error parsing Dial command arguments)") in new stack -- Executing [1212@default:13] Hangup("SIP/2209-00000854", "") in new stack == Spawn extension (default, 1212, 13) exited non-zero on 'SIP/2209-00000854' -- Executing [h@default:1] NoOp("SIP/2209-00000854", "") in new stack -- Executing [h@default:2] NoOp("SIP/2209-00000854", "********1*********") in new stack -- Executing [h@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
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users