When call hits call-direction extension, it's always empty and thus set as "local". I've tried to find out the reason but I'm not sure I got this right. I found out that FS sets the variable "direction", so I inserted another extension before "call-direction":
inline=true is probably not needed. Am I missing something here? What else should set the call_direction variable?
Code:
<extension name="call-direction-main" continue="true" uuid="1356c4c2-76fc-4985-a04e-16870968291b">
<condition field="" expression="">
<action application="set" data="call_direction=${direction}" inline="true"/>
</condition>
</extension>
inline=true is probably not needed. Am I missing something here? What else should set the call_direction variable?