Hi Laurent, You can either rely on Kamailio to do this using the mhomed=1 core config directive, more particularly described here:
https://www.kamailio.org/wiki/cookbooks/5.1.x/core#mhomed Or you can turn this off, and manually steer outgoing requests by using the $fs PV. It is writable, e.g. listen=udp:x.x.x.x:5060 listen=udp:y.y.y.y:5060 route[RELAY] { ... $fs = 'udp:x.x.x.x:5060'; if(!t_relay()) sl_reply_error(); exit; } If you are moving traffic between interfaces and using Record-Route, be sure to turn this setting on: https://kamailio.org/docs/modules/5.1.x/modules/rr.html#rr.p.enable_double_rr -- Alex On Mon, Apr 23, 2018 at 08:28:27AM +0000, Laurent Schweizer wrote: > > Dear all, > > I have a config with multiple interface( multiple IP in same subnet) and want > to know how I can select the interface used to send a request (UDP). > The best is the possibility to choose for each request the outgoing interface > but if it's not possible I think I can also work with a solution where the > outgoing interface is defined globally ? > I need this because one provider request one IP for inbound call and one IP > for outbound call . > > > Thanks > > Laurent > > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Alex Balashov | Principal | Evariste Systems LLC Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users