[Kamailio-Users] Carrieroute help

Henning Westerholt henning.westerholt at 1und1.de
Fri Jan 23 11:17:36 CET 2009


On Friday 23 January 2009, Ali Jawad wrote:
> As an update I did fix the error by using
>
> cr_route("default", "0", "$rU", "$rU", "call_id")
> instead of
> cr_route("default", "0", "$rU", "$rU", "call_id", "crc32")
>
> I got one entry in route_tree with id 1 and name default
> I got another entry in carrierroute table with id 1, domain =
> default,prefix=00
>
> I am using
>
>     if(!cr_route("default", "00", "$rU", "$rU", "call_id")){
>
>        sl_send_reply("403", "Not allowed");
>      }
>
> I am always getting 403: Note allowed.
>
> Well I only want to match based on prefix..no rU or otherwise
> needed..somethign I missed here ?

Hi Ali,

the first '$ru' is for the prefix match, the second for the rewrite user, as 
described in the docs. :-) You should get a error in the logs, that gives 
more informations why the routing did not complete.

Cheers,

Henning




More information about the sr-users mailing list