Pretty sure it was a LUA issue. I scrapped the instance and rebuilt it and the issue went away. 

I will just chock it up to FusionPBX config fragility. 

On Sat, Feb 10, 2018 at 2:43 PM Geoff Mina <gmina@connectfirst.com> wrote:
Greetings,
I was wondering if anyone knows what the "Locked, Waiting on external entities" message indicates.  

First, I am using a FusionPBX GUI to play with some basic PBX functionality.  The flow of my call is an XML transfer from a public to a private context.  Enabling trusted outside party to dial extensions directly on the Freeswitch host.  

The call comes in on the external SIP profile and transfers to the internal profile.  The softphone rings and I hit "decline" which sends back a 486 Busy Here to FS.  Freeswitch then hangs in a "Waiting on external entities" state until a timeout occurs at which point the inbound call is finally sent to voicemail after an internal 408 timeout.

This is FS 1.6.20 installed from Yum on a CentOS7 box.  Attached is the full log file with SIP tracing enabled.  Here is the relevant snippet where the switch is just sitting for 16 seconds doing nothing.

2018-02-10 21:27:11.132820 [DEBUG] switch_core_state_machine.c:610 (sofia/internal/113@161.97.193.191:51392) State Change CS_REPORTING -> CS_DESTROY
2018-02-10 21:27:11.132820 [DEBUG] switch_core_session.c:1665 Session 87 (sofia/internal/113@161.97.193.191:51392) Locked, Waiting on external entities
2018-02-10 21:27:40.952819 [DEBUG] sofia.c:7084 Channel sofia/internal/113@161.97.193.191:51094 entering state [terminated][408]
2018-02-10 21:27:40.952819 [NOTICE] sofia.c:8273 Hangup sofia/internal/113@161.97.193.191:51094 [CS_CONSUME_MEDIA] [RECOVERY_ON_TIMER_EXPIRE]

Just a point in the right direction as to what may cause this would be appreciated.

Thanks,
Geoff
--

GEOFF MINA
Chief Executive Officer
Connect First / Contact Center Solutions, Built Better.

3101 Iris Ave #200, Boulder, CO 80301
720.335.5924
gmina@connectfirst.com / www.connectfirst.com

 https://docs.google.com/uc?export=download&id=0B5b6KnVfm9lJTlFrQzRVUjJ2ZVE&revid=0B5b6KnVfm9lJUXpUMTFEbGJvaktwN1p5ejM3YTFkdWVWNzBzPQ

 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.