]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis: Hangup channel for Local channel No such extension error
authoragupta <abhay@avissol.com>
Fri, 3 May 2019 15:49:31 +0000 (21:19 +0530)
committerJoshua Colp <jcolp@digium.com>
Mon, 6 May 2019 10:26:55 +0000 (07:26 -0300)
commit9a0fa514433eed4d8681abb7f0fae92071dba435
tree5bffe3b92d9db2198c96dadcf5b35ac97f408cd2
parent8357ab7e9af37545ba89842996219bbf3a3973f0
stasis: Hangup channel for Local channel No such extension error

When we use early bridge with create and dial from stasis using Local channel
and the dialplan does not any entry the it is returned from core_local.c with
No such extension .

In such case asterisk locks up till the channel is not hangup with the error
Exceptionally long voice queue length

* Found that in such case app_control_dial fails on ast_call method and
  return -1
* Since it is called from stasis_app_send_command_async and return -1 does
  not cause resources to be freed and since no PBX exist it is not able to
  read from channel causing exceptionally long queue
* After putting this code found that the channel was releasing immediately
  and resources were freed.

ASTERISK-28399
Reported by: Abhay Gupta
Tested by: Abhay Gupta

Change-Id: I0a55c923fc6995559f808d63b9488762b4489318
res/stasis/control.c