Asterisk force outbound traffic over a specific IP

Hello,

I have an asterisk 1.8.7.0 running on private network and an open sips configured as a load balancer. On the incoming traffic side everything is OK, but when a trunk is called on asterisk it wants to connect to that trunk directly without going through the opensips. Is there a way I can force the asterisk to send the trunk connection through the open sips?

Thanks in advance

Not sure why are you posting in Asterisk General when this is clearly Asterisk Support

Take a look at the option outboundproxy:
asterisk.org/doxygen/trunk/Config_sip.html