[Kamailio-Users] ENUM with ERROR:rr:w_record_route: Double attempt to record-route

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 27 18:54:13 CET 2009


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 at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>
>   

-- 
Daniel-Constantin Mierla
SIP Router Masterclass - Kamailio (OpenSER) Training
http://www.asipto.com/index.php/sip-router-masterclass/




More information about the Users mailing list