Hello Eyas, 
you could bind directly the network interface

example: 
listen=udp:eth0:5060
listen=udp:eth1:5060





Il giorno mer 17 apr 2019 alle ore 17:30 eyas barhouk <eyas37@hotmail.com> ha scritto:
hello dears 

i'm trying to build kamailio & asterisk with the following :

  • Kamailio will listen to All the interfaces :
       listen=udp:0.0.0.0:5050
        listen=udp:0.0.0.0:5060
 
  • it will add the record header as in the following part : 
        if (!isflagset(FLT_RR)) record_route();
        setflag(FLT_RR);

when the sip message get from kamailio to asterisk the record route header will be like "<sip:0.0.0.0:5060;....etc.>"

So is there any way to make the Via and  record route headers has a  specific IP  instead of (0.0.0.0) i mean Something like "record_route("$Ri")".

thanks & regards 



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users