]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis/control.c: Set Hangup Cause to No Answer on Dial timeout
authorMike Bradeen <mbradeen@sangoma.com>
Thu, 17 Apr 2025 15:50:21 +0000 (09:50 -0600)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 1 May 2025 12:44:58 +0000 (12:44 +0000)
commitf5d8181eeac52c061a2e0e93687443f7d02ccb56
tree59cedd2cf3a645751ecdb1818c59755d492e9954
parentd6a46d7082bebd6d40208ae79b1c86e951dc2a01
stasis/control.c: Set Hangup Cause to No Answer on Dial timeout

Other Dial operations (dial, app_dial) use Q.850 cause 19 when a dial timeout occurs,
but the Dial command via ARI did not set an explicit reason. This resulted in a
CANCEL with Normal Call Clearing and corresponding ChannelDestroyed.

This change sets the hangup cause to AST_CAUSE_NO_ANSWER to be consistent with the
other operations.

Fixes: #963
UserNote:  A Dial timeout on POST /channels/{channelId}/dial will now result in a
CANCEL and ChannelDestroyed with cause 19 / User alerting, no answer.  Previously
no explicit cause was set, resulting in a cause of 16 / Normal Call Clearing.

(cherry picked from commit c9532225f891a28b5092a2a027ff80097c1e6939)
res/stasis/control.c