You can't change header twice.
Use https://www.kamailio.org/docs/modules/5.8.x/modules/dispatcher.html#dispatcher.f.ds_select
Then you'll be able to check returned value via PV and adjust your script to change RURI just once whenever it needs.
Hello,__________________________________________________________I encountered a problem that ds_select_domain function does not save URI parameters.I found workaround:if (!ds_select_domain( "1", 4, 3 )) {
send_reply("502", "Bad Gateway");
exit;
}
if (!strempty($(ou{uri.params}))) {
$ru = $ru+";"+$(ou{uri.params});
}But this can lead to duplicates if the URI in the dispatcher list contains the same parameter.Is there any other reliable way to keep original URI parameters while using the dispatcher?Thanks
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!