I'm sorry for boring you Juha and others, but I really can't find an
explanation to this.
The only difference in the Basic Scripting is based on the $tu=$ru statement
in the LCR1
I attached you 2 debug files, one with the statement $tu=$ru and one
without...it seems there is some hidden place where $tu is changed...
...I'm developing My last work at the University and this is my worst stop
at the moment.
Please, if I have to pay for support...no problem!
With many thanks
Danilo
route[PSTN] {
# check if PSTN GW IP is defined
xlog("L_WARN", "ENTRO IN PSTN **********************************
\n");
if (strempty($sel(cfg_get.pstn.gw_ip))) {
xlog("SCRIPT: PSTN rotuing enabled but pstn.gw_ip not
defined\n");
return;
}
# route to PSTN dialed numbers starting with '+' or '00'
# (international format)
# - update the condition to match your dialing rules for PSTN
routing
if(!($rU=~"^(\+|0|3|77)[1-9][0-9]{3,20}$")){
return;
}
# only local users allowed to call
if(from_uri!=myself) {
xlog("L_WARN", "external call\n");
sl_send_reply("403", "Not Allowed");
exit;
}
xlog("L_WARN", "tu before call route LCR='$tu' \n");
route(LCR1);
xlog("L_WARN", "PASSO AL GATEWAY STATICO
********************************** \n");
#$ru = "sip:" + $rU + "@" + $sel(cfg_get.pstn.gw_ip);
xlog("L_WARN", "tu after call route LCR='$tu' \n");
xlog("L_WARN", "ESCO DA PSTN **********************************
\n");
route(RELAY);
exit;
xlog("L_WARN", "tu after route RELAY in route PSTN\n");
return;
}
route[LCR1]{
if (!load_gws("1")) {
xlog("L_ERR", "Cannot load gws for $rm <$ru>\n");
send_reply("500", "Server Internal Error - Cannot load
gateways");
exit;
};
if (!next_gw()) {
xlog("L_WARN", "No gateways for $rm <$ru>\n");
send_reply("503", "Service not available - No gateways");
exit;
};
xlog("L_WARN","3 ruri_user_avp='$avp(i:500)'\n");
xlog("L_WARN","3 test ruri_avp='$ru'\n");
xlog("L_WARN","3 test rUri_avp='$rU'\n");
xlog("L_WARN", "3 tu in next_gw call route LCR='$tu'
\n");
>>>> $tu=$ru; <<<<<<
xlog("L_WARN", "4 dd dopo next_gw call route
LCR='$dd' \n");
xlog("L_WARN", "4 du dopo next_gw call route LCR='$du'
\n");
xlog("L_WARN", "4 fd dopo next_gw call route LCR='$fd'
\n");
xlog("L_WARN", "4 fu dopo next_gw call route LCR='$fu'
\n");
xlog("L_WARN", "4 od dopo next_gw call route LCR='$od'
\n");
xlog("L_WARN", "4 rd dopo next_gw call route LCR='$rd'
\n");
xlog("L_WARN", "4 ru dopo next_gw call route LCR='$ru'
\n");
xlog("L_WARN", "4 td dopo next_gw call route LCR='$td'
\n");
xlog("L_WARN", "4 tu dopo next_gw call route LCR='$tu'
\n");
return;
}
Danilo
-----Messaggio originale-----
Da: sr-users-bounces(a)lists.sip-router.org
[mailto:sr-users-bounces@lists.sip-router.org] Per conto di Juha Heinanen
Inviato: lunedì 2 maggio 2011 22:48
A: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -Users
Mailing List
Oggetto: [SR-Users] R: R: R: R: lcr module: strip and tag
Alida - Danilo SMALDONE writes:
If I delete $tu="sip:" + $rU + "@"
+ $od; the call to outbound gateway
fails.
Any suggestion?
sorry, i don't have any suggestions. lcr module does not use To URI for
anything.
-- juha
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users