Hello to all.
Every time I do an ENUM call, this error appears... but the call is
placed anyway:
[16783]: LOG: route 1 sip:351210329169@"MY_IP"/<null>
[16783]: LOG: ENUM:
E164.org query EXISTS :)
[16783]: ERROR:rr:w_record_route: Double attempt to record-route
[16788]: ACC: transaction answered: timestamp=1238173021;method=INVITE;
.....
Here is my route[1] code:
route[1] {
xlog("LOG: route 1 $ru/$du\n");
if (check_route_param("nat=yes")) {
setbflag(6);
}
if (isflagset(5) || isbflagset(6)) {
route(5);
}
#ENUM area
if (!lookup("location")) {
if (is_method("INVITE")) {
if ( method=="INVITE" && (
uri=~"sip:[1-9][0-9]*@MY_IP" )) {
prefix("+");
if(!enum_query("e164.org.")) {
log(1, "LOG: ENUM:
E164.org query falhou!!! :( \n");
strip(1);
}else{
log(1, "LOG: ENUM:
E164.org query EXISTS :) \n");
if (!method=="REGISTER") record_route();
t_relay();
return;
}
}
}
}
if (is_method("INVITE")) {
xlog("LOG ---> T_ON_REPLY - $rc/$mF\n");
t_on_reply("1");
t_on_failure("1");
}
if (!t_relay()) {
xlog("LOG ---> T_RELAY - $rc/$mF\n");
sl_reply_error();
}
exit;
} # end of route 1
What could be wrong with the configuration?
Thanks
Regards
Joao Pereira