Choosing outgoing IP per peer?


#1

My question is this, is it possible to choose the IP asterisk will use to communicate with a specific peer?

I got two Ip’s setup on my Asterisk box, and i would need to be able to choose wich IP it would use based on the peer… (or based on wich IP the incoming SIP messages used… )

I know there’s a bindaddr option, but that’s a global option…
or could i just add that field in my ‘sip_buddies’ MySQL DB ?