[OpenSIPS-Users] alias network interface issue
Чалков Артём
achalkov at ya.ru
Fri Feb 20 12:47:29 CET 2015
Hi all!
I use opensips on vmachine with 4 network interfaces: 2 real interfaces (ip x.x.1.2 external and x.x.10.2 internal) and 2 alias interfaces (ip x.x.1.3 external and x.x.20.2 internal).
Opensips configured to send local traffic from ip x.x.20.2, ip x.x.10.2 is a service interface:
listen = udp:x.x.20.2:5060
listen = udp:x.x.1.3:5060
listen = udp:x.x.1.3:60000
listen = tcp:x.x.20.2:5060
listen = tcp:x.x.1.3:5060
bin_listen = ip x.x.10.2:5061
While some opensips modules trying to send some data to local network from x.x.20.2 (tm, drouting etc), opensips returns errors:
ERROR:tm:t_uac: no corresponding socket for af 2
ERROR:drouting:dr_prob_handler: unable to execute dialog
ERROR:core:get_out_socket: no socket found
In routing script i seen same situation until i began use force_send_socket(x.x.20.2:5060) to manually route traffic through right interface. With this function data sends correctly.
Can i do somesting to force correct socket for modules (like tm and drouting)?
More information about the Users
mailing list