Hey Jeff,
Thanks heaps for that, worked like a dream. Here's what we have done:
Create a custom app called "divert" with the following (where 5300 and 5301 are call groups aliases):
exten=>*1000,1,SET(GLOBAL(REDIRECT)=5300)
exten=>*1000,2,Playback(call-forwarding)
exten=>*1000,3,Playback(cancelled)
exten=>*1001,1,SET(GLOBAL(REDIRECT)=5301)
exten=>*1001,2,Playback(call-forwarding)
exten=>*1001,3,Playback(activated)
exten=>s,1,agi(selintra,OutCluster,${REDIRECT})
exten=>s,2,Hangup
Point both open and closed trunk settings to this custom app.
Add the following to extensions.conf header
REDIRECT=5300
Note: The setting does not survive a commit or restart.
Rgds, Lloyd