Hello, First time poster and I am stuck. 

I am using  K as a mid registar to several AST boxes.  The problem I am having is if AST or the END USER DEVICE sends a 302 for some reason I am getting a 500 THEN the 302 to the END USER DEVICE or AST depending which direction the call flow is.

Example 
END USER DEVICE  -> CALLS 700 -> K -> AST 
AST -> 302 -> K -> 500 & 302 -> END USER DEVICE

What I would like to happen is  when K receives the 302 it deals with it directly and it is not handed off to either end. 

I am using a configuration I found online with  some base modifications to dip into the database real time to get the AST box IPS 

Any direction would be helpful. 
Thank you, 
Nathan