Hi Thanks for the update this is what I found
Jan 23 10:43:42 [25404] DBG:core:grep_sock_info: checking if port 443 matches port 443 Jan 23 10:43:42 [25404] DBG:carrierroute:get_route_tree_by_id: searching in carrier default, id 1 Jan 23 10:43:42 [25404] DBG:carrierroute:get_route_tree_by_id: tree default, domain default : 0 Jan 23 10:43:42 [25404] ERROR:carrierroute:cr_do_route: desired routing domain doesn't exist, prefix 009613041705, carrier 1, domain 1
-----Original Message----- From: Henning Westerholt [mailto:henning.westerholt@1und1.de] Sent: 2009-01-23 12:18 To: Ali Jawad Cc: users@lists.kamailio.org Subject: Re: [Kamailio-Users] Carrieroute help
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