<div dir="ltr">Hi Eric,<br><br>thanks not getting correct response. <br><br>But if default time is 60 then why I will declared ? It's my though and I don't declared on dial.<br><br><br><br><div class="gmail_quote">
On Wed, Dec 21, 2011 at 6:43 PM, Eric Wieling <span dir="ltr"><<a href="mailto:EWieling@nyigc.com">EWieling@nyigc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
" -- 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.<br>
<div><div></div><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of virendra bhati<br>
Sent: Wednesday, December 21, 2011 6:48 AM<br>
To: Asterisk Users Mailing List - Non-Commercial Discussion; Sam Govind<br>
Subject: [asterisk-users] Why **CONGESTION** not *****NOANSWER****** ?<br>
<br>
Hi List,<br>
<br>
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.<br>
<br>
extensions.conf :-<br>
<br>
<br>
exten => <a href="tel:08723310476" value="+918723310476">08723310476</a>,1,Dial(SIP/2218)<br>
same => n,NoOp(**${DIALSTATUS}**)<br>
same => n,ExecIf($['${DIALSTATUS}'='CHANUNAVAIL']?NoOp(Channel unavailable. On SIP, peer may not be registered.))<br>
same => n,ExecIf($['${DIALSTATUS}'='BUSY']?noop(Busy signal. The dial command reached its number but the number is busy.))<br>
same => n,ExecIf($['${DIALSTATUS}'='ANSWER']?noop(Call is answered. A successful dial. The caller reached the callee.))<br>
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.))<br>
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.))<br>
same => n,ExecIf($['${DIALSTATUS}'='CONGESTION']?noop(Congestion. This status is usually a sign that the dialled number is not recognised.))<br>
same => n,ExecIf($['${DIALSTATUS}'='DONTCALL']?noop(Privacy mode, callee rejected the call))<br>
same => n,ExecIf($['${DIALSTATUS}'='TORTURE']?noop(Privacy mode, callee chose to send caller to torture menu))<br>
same => n,ExecIf($['${DIALSTATUS}'='INVALIDARGS']?noop(Error parsing Dial command arguments))<br>
same => n,wait(9)<br>
<br>
exten => 1212,1,Answer()<br>
same => n,Dial(SIP/<a href="tel:08723310476" value="+918723310476">08723310476</a>@voipon)<br>
same => n,NoOp(**${DIALSTATUS}**)<br>
same => n,ExecIf($['${DIALSTATUS}'='CHANUNAVAIL']?NoOp(Channel unavailable. On SIP, peer may not be registered.))<br>
same => n,ExecIf($['${DIALSTATUS}'='BUSY']?noop(Busy signal. The dial command reached its number but the number is busy.))<br>
same => n,ExecIf($['${DIALSTATUS}'='ANSWER']?noop(Call is answered. A successful dial. The caller reached the callee.))<br>
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.))<br>
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.))<br>
same => n,ExecIf($['${DIALSTATUS}'='CONGESTION']?noop(Congestion. This status is usually a sign that the dialled number is not recognised.))<br>
same => n,ExecIf($['${DIALSTATUS}'='DONTCALL']?noop(Privacy mode, callee rejected the call))<br>
same => n,ExecIf($['${DIALSTATUS}'='TORTURE']?noop(Privacy mode, callee chose to send caller to torture menu))<br>
same => n,ExecIf($['${DIALSTATUS}'='INVALIDARGS']?noop(Error parsing Dial command arguments))<br>
same => n,Hangup()<br>
<br>
exten => h,1,NoOp()<br>
same => n,NoOp(********${HANGUPCAUSE}*********)<br>
same => n,NoOP(bye Virendra)<br>
<br>
<br>
asterisk cli:-<br>
<br>
-- Executing [1212@default:1] Answer("SIP/2209-00000854", "") in new stack<br>
-- Executing [1212@default:2] Dial("SIP/2209-00000854", "SIP/<a href="tel:08723310476" value="+918723310476">08723310476</a>@voipon") in new stack<br>
== Using SIP RTP CoS mark 5<br>
-- Called <a href="tel:08723310476" value="+918723310476">08723310476</a>@voipon<br>
== Using SIP RTP CoS mark 5<br>
-- Executing <a href="tel:%5B08723310476" value="+918723310476">[08723310476</a>@default:1] Dial("SIP/77.240.54.13:5063-00000856", "SIP/2218") in new stack<br>
== Using SIP RTP CoS mark 5<br>
-- Called 2218<br>
-- SIP/2218-00000857 is ringing<br>
-- SIP/voipon-00000855 is making progress passing it to SIP/2209-00000854<br>
-- Got SIP response 480 "Temporarily Unavailable" back from 10.10.11.203<br>
-- SIP/2218-00000857 is circuit-busy<br>
== Everyone is busy/congested at this time (1:0/1/0)<br>
-- Executing <a href="tel:%5B08723310476" value="+918723310476">[08723310476</a>@default:2] NoOp("SIP/77.240.54.13:5063-00000856", "**CONGESTION**") in new stack<br>
-- Executing <a href="tel:%5B08723310476" value="+918723310476">[08723310476</a>@default:3] ExecIf("SIP/77.240.54.13:5063-00000856", "0?NoOp(Channel unavailable. On SIP, peer may not be registered.)") in new stack<br>
-- Executing <a href="tel:%5B08723310476" value="+918723310476">[08723310476</a>@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<br>
-- Executing <a href="tel:%5B08723310476" value="+918723310476">[08723310476</a>@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<br>
-- Executing <a href="tel:%5B08723310476" value="+918723310476">[08723310476</a>@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<br>
-- Executing <a href="tel:%5B08723310476" value="+918723310476">[08723310476</a>@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<br>
-- Executing <a href="tel:%5B08723310476" value="+918723310476">[08723310476</a>@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<br>
-- Executing <a href="tel:%5B08723310476" value="+918723310476">[08723310476</a>@default:9] ExecIf("SIP/77.240.54.13:5063-00000856", "0?noop(Privacy mode, callee rejected the call)") in new stack<br>
-- Executing <a href="tel:%5B08723310476" value="+918723310476">[08723310476</a>@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<br>
-- Executing <a href="tel:%5B08723310476" value="+918723310476">[08723310476</a>@default:11] ExecIf("SIP/77.240.54.13:5063-00000856", "0?noop(Error parsing Dial command arguments)") in new stack<br>
-- Executing <a href="tel:%5B08723310476" value="+918723310476">[08723310476</a>@default:12] Wait("SIP/77.240.54.13:5063-00000856", "9") in new stack<br>
-- Auto fallthrough, channel 'SIP/77.240.54.13:5063-00000856' status is 'CONGESTION'<br>
-- Executing [h@default:1] NoOp("SIP/77.240.54.13:5063-00000856", "") in new stack<br>
-- Executing [h@default:2] NoOp("SIP/77.240.54.13:5063-00000856", "********19*********") in new stack<br>
-- Executing [h@default:3] NoOp("SIP/77.240.54.13:5063-00000856", "bye Virendra") in new stack<br>
-- SIP/voipon-00000855 is circuit-busy<br>
== Everyone is busy/congested at this time (1:0/1/0)<br>
-- Executing [1212@default:3] NoOp("SIP/2209-00000854", "**CONGESTION**") in new stack<br>
-- Executing [1212@default:4] ExecIf("SIP/2209-00000854", "0?NoOp(Channel unavailable. On SIP, peer may not be registered.)") in new stack<br>
-- 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<br>
-- Executing [1212@default:6] ExecIf("SIP/2209-00000854", "0?noop(Call is answered. A successful dial. The caller reached the callee.)") in new stack<br>
-- 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<br>
-- 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<br>
-- 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<br>
-- Executing [1212@default:10] ExecIf("SIP/2209-00000854", "0?noop(Privacy mode, callee rejected the call)") in new stack<br>
-- Executing [1212@default:11] ExecIf("SIP/2209-00000854", "0?noop(Privacy mode, callee chose to send caller to torture menu)") in new stack<br>
-- Executing [1212@default:12] ExecIf("SIP/2209-00000854", "0?noop(Error parsing Dial command arguments)") in new stack<br>
-- Executing [1212@default:13] Hangup("SIP/2209-00000854", "") in new stack<br>
== Spawn extension (default, 1212, 13) exited non-zero on 'SIP/2209-00000854'<br>
-- Executing [h@default:1] NoOp("SIP/2209-00000854", "") in new stack<br>
-- Executing [h@default:2] NoOp("SIP/2209-00000854", "********1*********") in new stack<br>
-- Executing [h@default:3] NoOp("SIP/2209-00000854", "bye Virendra") in new stack<br>
<br>
<br>
Even I hangup the call or answer the call and don't pick the call I always get the same responce at asterisk.<br>
<br>
<br>
--<br>
<br>
<br>
Thanks and regards<br>
<br>
Virendra Bhati<br>
<a href="tel:%2B91-8885268942" value="+918885268942">+91-8885268942</a><br>
Software Engineer<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><br>Thanks and regards<br><br> Virendra Bhati<br>+91-8885268942<br>Software Engineer<br></div><br>
</div>