Re: [SR-Users] Kamailio know which Interface Packet would route out

2016-07-13 Thread SamyGo
Thanks Loic, Yes, thats correct Kernel decides the interface to take. That is why I want to figure out if we have any way to foresee that decision ! I got to know a new thing: onsend_route: http://www.kamailio.org/dokuwiki/doku.php/features:new-in-3.0.x#onsend_route I will try and make use of thi

Re: [SR-Users] Kamailio know which Interface Packet would route out

2016-07-13 Thread Loic Chabert
Hi, Interface selection is done by kernel when routing lookup is done, no ? If you have the same destination and multiple interface to reach it, kernel will chose the best one (according metric values). If you want to force trafic to go through an interface, interface must be attached to different

[SR-Users] Kamailio know which Interface Packet would route out

2016-07-12 Thread SamyGo
Hi, Question: Is there a function in kamailio to get the interface/listen IP kamailio would use to route a packet out for a domain / ip ? Example: $avp(interface_ip) = find_interface_for_request("192.168.12.123"); And it gives me the Kamailio's Listen address that would be used for sending call