Review Board 1.7.16


Add no_answer to ARI hangup causes

Review Request #4400 - Created Feb. 3, 2015 and submitted

Ben Merrills
ASTERISK-24745
Reviewers
asterisk-dev
Asterisk
This change adds the new Hangup reason to ARI Channels Hangup, "no_answer".

Currently the only supported hangup reasons are : normal, busy and congestion. 

I've amended 'res/ari/resource_channels.c' to include the new hangup reason, "no_answer" which maps to AST_CAUSE_NOANSWER alias.
I've amended 'rest-api/api-docs/channels.json' to include the new value "no_answer" as part of the swagger definition of Channels/Hangup(Delete).

*Note* I created this against trunk, was unsure what to put in branch field. This could be applied to both 12 and 13 however.

1. The code has been compiled.
2. The compiled version of asterisk was run and a test ari application loaded
3. The Swagger UI exposed the new hangup reason "no_answer" under the accepted values for 'reason' when pointed at the running instance of asterisk
4. A channel was created and passed to the ari application using cmd Stasis
5. The channel was then hangup via ari with a hangup cause of "no_answer"
6. SIP debug was used to confirm the correct cause was being returned by asterisk

----
SIP/2.0 480 Temporarily unavailable
Via: SIP/2.0/UDP 192.168.3.14:5063;branch=z9hG4bK-a17e20bc;received=192.168.3.14
From: "test" <sip:test@192.168.3.201>;tag=66754982239395f0o3
To: <sip:888@192.168.3.201>;tag=as258c3d5c
Call-ID: 36c8966a-1bfa6e28@192.168.3.14
CSeq: 102 INVITE
Server: Asterisk PBX SVN-trunk-r431522M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
----
Review request changed
Updated (Feb. 8, 2015, 9:23 p.m.)
  • changed from pending to submitted
Committed in revision 431638

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.