On 12/11/2013 04:31 AM, Keith wrote:
Hi,
I am using force_send_socket as I have two interfaces. It works fine but at the moment I am hard coding the IP address. I want to use a variable instead, I have tried the following:
force_send_socket($sel(cfg_get.kamailio.bindip);
But kamailio doesn't start and complains about the format.
force_send_socket() is an old core function that does not accept variables. Try write to $fs instead:
$fs = "udp:$sel(cfg_get.kamailio.bindip):5060";
-- Alex