* You are viewing Posts Tagged ‘cancel’

Asterisk Dialstatus

The DIALSTATUS channel variable is created when you attempt to connect to another device or endpoint and bridge the call with the Dial Application. It contains the status of the call reflected in one of the following values:

  • CHANUNAVAIL
  • CONGESTION
  • NOANSWER
  • BUSY
  • ANSWER
  • CANCEL
  • DONTCALL – For the Privacy and Screening Modes. Will be set if the called party chooses to send the calling party to the ‘Go Away’ script.
  • TORTURE – For the Privacy and Screening Modes. Will be set if the called party chooses to send the calling party to the ‘torture’ script.
  • INVALIDARGS

 

DIALSTATUS on CANCEL

Hello,

We have a strange situation (asterisk 1.6.2.14), where we get a result for
DIALSTATUS for BUSY and No-ANSWER, but nothing for CANCEL.

This is the (relevant) test dialplan:

need help with IVR dialplan

Hi list

i setup successfull asterisk version 1.4 + opensips,
Opensips is the Registrar Server, Asterisk is the IVR server

the call flow
IP phone —INVITE 1001—-> opensips —–> ASterisk —-INVITE
5001—>opensips —> Busy|cancel|404..—>asterisk—wait 10s to bye —>IP
phone (5000)

my case is:
1/ IP phone(5000) —>Opensips
2/ IVR number : 1001
3/ IP Phone calls 1001 to opensips –> asterisk, ASterisk will play IVR
4/ IP phone press 1, asterisk will Dial(SIP/to_opensips/5001,20)
5/ there are some cases when asterisk send call back to opensips
5.1/ if extension 5001 does not exist, opensips send 404 message back
to asterisk, then asterisk wait 10s to hangup the IP phone 5000
5.2/ if extension 5001is real, opensips send ring ring back to
asterisk, then 5001 does not want to answer call
5.2.1/ the call is time out – then asterisk wait 10s to hangup the IP
phone 5000
5.2.2/ the call is cancel by 5001 – asterisk receives cancel then
asterisk wait 10s to hangup the IP phone 5000
5.2.3/ the Phone 5001 is busy – asterisk receive busy then asterisk
wait 10s to hangup the IP phone 5000
….

how to i force asterisk hangup IP PHONE 5000 when asterisk receives time
out|Cancel|busy from opensips

Thank you
Ha`