WARNING: this is an automatic post retrieved from the Asterisk-Users Mailing List, not an authored post
Mailing-list Collector
December 21, 2011
Asterisk Users
Tags: caller, congestion, dial command, dialled number, DIALSTATUS, dontcall, ExecIf, privacy mode
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:-*