[OpenSIPS-Users] dispatcher probing different send sockets
Leon de Rooij
leon at scarlet-internet.nl
Thu Nov 24 10:54:13 CET 2011
Hi all,
I'm using dispatcher to probe several sets but I want to be able to send out the SIP OPTIONS packets from a different socket per set that I'm probing, for example:
listen=udp:1.0.0.2:5060
listen=udp:1.0.0.3:5060
and in dispatcher.list
1 sip:1.0.0.4:5060
2 sip:1.0.0.5:5060
Now I'd like to send probes to 1.0.0.4 originating from 1.0.0.2, but I want probes to 1.0.0.5 to originate from 1.0.0.3.
Is that at all possible ?
I tried not setting the ds_probing_sock and created a local_route to try and force the send socket per destination in the RURI:
local_route {
if (is_method("OPTIONS")) {
if ($rd=="1.0.0.4" && $rp=="5060") {
append_hf("X-Probe: (SET 1) You alive ?\r\n");
force_send_socket(udp:1.0.0.2:5060);
}
if ($rd=="1.0.0.5" && $rp=="5060") {
append_hf("X-Probe: (SET 2) You alive ?\r\n");
force_send_socket(udp:1.0.0.3:5060);
}
}
}
But no luck.. I do see the header appended, but the originating IP is still the same for all SIP OPTIONS...
Anyone tried this before ?
Thanks,
Leon
More information about the Users
mailing list