Treating FreePbx as a softswitch

hi all,
i was wondering if its possible to treat the FreePBX as a switch. my scenario is the following :

X Switch ----> FreePbx ----> Y Switch i know how to set an outging route and attach it to a truck but i dont know to route the incoming call… is it related to “set destination” section ??