​
I have the following 

A core PBX that controls call flows and selects an end target.
The core PBX hairpins the calls through a Freeswitch instance that for example records the calls.
The targets use REFER messages to transfer calls between each other & third parties.

Is it possible to configure the service freeswitch instance to proxy the REFER messages back to the core PBX and not convert them into an INVITE?
So that the message flow looks like the attached picture.

The Refer message needs to be proxied in order to tear down the hairpin as the calls are transferred.

Thanks Gareth

Inline images 1



SD Edit source for image
http://sdedit.sourceforge.net/index.html
-----------
alice:Actor "Alice"
core:core[rp] "core"
service:service[rp] "service"
t1:t1[rp] "target 1"
t2:t2[rp] "target 2"


alice:core.Invite(12345567)
core:service.Invite(12345567)
service:core.Invite(12345567)
core:t1.Invite(12345567)

t1:core.200 ok
core:service.200 ok
service:core.200 ok
core:alice.200 ok

t1:core.Refer(56789)
core:service.Refer(56789)
service:core.Refer(56789)
core:service.Invite(56789)
service:core.Invite(56789)
core:t2.Invite(56789)
--------------