Ok,
I tested it several times. The behaviour has been changed. I force a
record_route_preset("$si:5100") for incoming calls from pstn. That works
fine.
The other direction is my problem. If a UA at my external opensips will
make a call, some answers are missing. They are only relayed correctly
if I call the t_relay with an adress (Which happens if I use ds_select
for any package and have only one server in ds_list).
And I am wondering why.
Attached some logs, that show the difference, if I use ds_select only
for !has_totag() or in general.
The relevant parts of my opensips.cfg
if ($si=~"20.20.138.141") {
xlog("L_DBG","========== receive msg from external SIP Router
(trusted) $si\n ==========\n");
if (!has_totag()) {
# initial request
record_route();
}
route(2);
exit;
}
### route[2] Routing to asterisk server
route[2] {
if (!has_totag()){
ds_select_dst("1", "6");
}
if (!t_relay()) {
sl_reply_error();
};
}
BR
Uwe
--
kiste lat: 54.322684, lon: 10.13586
ano_ngrep.tar.gz
Description: GNU Zip compressed data
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
