Hi everyone,
I have a question about the dispatcher and rr-module: I thought about the following setup: OpenSER with the dispatcher on one machine which does loadbalancing (and maybe later Failover) and several SIP-Proxies behind the dispatcher. The SIP-Proxies should be easily exchangeable so the loose-routing should be done via the dispatcher-Server. I have the following setup in mind (simplyfied, in my juvenile carelessness):
Dispatcher (IP:62.153.141.6) route{ # Round robin: Every Request to another Server. ds_select_dst("1", "4"); forward(uri:host, uri:port); }
SIP-Proxy: route { ################################################################################################################## # Loose-Routing ############################################################################################################### if (loose_route()) { if (!t_relay()) { log(1, "Not possible to relay\n"); # Fehler melden sl_reply_error(); return; } }; # if (loose_route()) {
################################################################################################################## # Record-Route ############################################################################################################### record_route_preset("62.153.141.6:5060"); }
Unfortunately this Setup does not work like i thought... :-( The messages seem to be looping between Dispatcher and SIP-Proxy. Any hints what i could do or how i could solve this dilemma? Has anyone (i guess so) tried anything like this before? Can anyone point me to working example configs? I need to do the record_route_preset() on the selected SIP-Proxy, because i set a user-specific From-Line with the UAC-Module, which stores it's data in the Record-Route-Header. I need to do record routing for accounting and i do not want to do accounting on the dispatcher...
Thanks in advance,
Carsten