No, I never call route(0)
But I removed the record_route() from the ENUM zone and the error
disappeared... and the calls are working fine.
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; }
Thanks
regards
Joao Pereira
Daniel-Constantin Mierla wrote:
On 03/27/2009 08:10 PM, Joao Gomes Pereira wrote:
Yes, I had also record_routing in the main
routing:
# record routing
if (!is_method("REGISTER|MESSAGE"))
record_route();
I erased it and the error disappeared.
isn't this going to be necessary in other situations?
you better keep the
record_route() -- check why is called two times.
you have somewhere call of route(0)?
Daniel
Thanks
regards
Joao Pereira
Daniel-Constantin Mierla wrote:
Hello,
the error says that you call two times in your config record_route()
function. Check your config routing logic and see the cases when
record_route() is executed.
Cheers,
Daniel
On 03/27/2009 07:05 PM, Joao Gomes Pereira wrote:
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
_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users(a)lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
--
StarTel - A Rede Livre
Joao Gomes Pereira
www.startel.pt
+351 304500650
sip: gomespereira(a)startel.pt