You are right, but: 1. Even though my configuration is not complete, shouldnt sems ,at least send the packet to the outside world? I am giving it a normal next_hop ip address and it reports an error , it doesnt even send the packet throught the socket. Since I have also another ethernet interface on the box, bound to a private IP, when I made sems listen to that IP, the packet was indeed sent, although no answers will be received if I dont follow your suggestions. But the point is that there seems to be a problem sending packets through the wire when sems is setup to listen on localhost even if this listening socket doesnt have anything to do with the client socket SEMS opens to send new pacckets to outside. Am I missing something here?
2. My box has 2 ethernet ifaces. One with a routable Internet address and one with a private IP. I trying to setup my kamailio + sems in a way that every incoming call will come in through kamailio which listens on the public iface, then it will be sent to sbc application of sems for topology hiding, rtp relay etc and then SEMS will create the B leg and talk to outside world. What I also want in this scenario is the following restrictions: kamailio should talk to SEMS only through private ip or localhost. and SEMS should open sockets to outside world using the public ip address. This means that the UAS part of sems-sbc must listen on a private ip(or localhost) and the UAC side of sems/sbc must be creating sockets on public interface to send its packets. But it seems that sems always binds its client sockets to the sip_ip address in sems.conf, which in my case is the private ip, and this causes it to send packets to outside using private source address. So, is there any way I can specify the interface on which client sockets / outgoing packets of sems initiated calls will be sent through? Does all this make sense? Thanks. On Wed, May 15, 2013 at 7:55 PM, Juha Heinanen <[email protected]> wrote: > Vassilis Radis writes: > > > Kamailio is bound to the public IP and SEMS to 127.0.0.1 > > I am only using SBC profile. In sems.conf I have > > > > sip_ip: 127.0.0.1:5757 > > media_ip: <public_ip_of_the_box> > > if sems is supposed to send the request directly to the outside world, > then perhaps you should define sems a public sip_ip. other option is to > use your kamailio as sems outbound proxy and let it forward the request > to the outside world. > > -- juha >
_______________________________________________ Sems mailing list [email protected] http://lists.iptel.org/mailman/listinfo/sems
