Hi All
I did try out that example 1.44.
I am getting this error:
Jan 23 08:40:21 [25307] ERROR:core:pv_parse_spec: bad parameters Jan 23 08:40:21 [25307] INFO:carrierroute:carrier_fixup: carrier tree default has id 3 Jan 23 08:40:21 [25307] ERROR:core:pv_parse_spec: bad parameters Jan 23 08:40:21 [25307] ERROR:core:pv_parse_spec: bad parameters Jan 23 08:40:21 [25307] ERROR:carrierroute:avp_name_fixup: Malformed or non AVP definition <crc32> Jan 23 08:40:21 [25307] ERROR:carrierroute:route_fixup: cannot fixup parameter 6 Jan 23 08:40:21 [25307] ERROR:core:fix_actions: fixing failed (code=-1) at cfg line 445 Jan 23 08:40:21 [25307] CRITICAL:core:fix_expr: fix_actions error Jan 23 08:40:21 [25307] ERROR:core:main: failed to fix configuration with err code -1
Using this script:
if(!cr_route("default", "0", "$rU", "$rU", "call_id", "crc32")){ sl_send_reply("403", "Not allowed"); } else { # In case of failure, re-route the request t_on_failure("1"); # Relay the request to the gateway t_relay(); }
-----Original Message----- From: Henning Westerholt [mailto:henning.westerholt@1und1.de] Sent: 2009-01-22 13:35 To: users@lists.kamailio.org Cc: Ali Jawad Subject: Re: [Kamailio-Users] Carrieroute help
On Wednesday 21 January 2009, Ali Jawad wrote:
I was finally able to setup carrierroute on Solaris :). I am using carrierroute in db mode and I did setup two entries with rewritehost in carrierroute and two entries in route_tree with one route being
default.
I am still very new to carrierroute as a sample start I do have two astersisk servers that will act as pstn_gw and I want to split the traffic in half between both servers.
Can anyone please provide sample instructions on what to put into the route{} statement in this scenario and any main ideas about route_tree
and carrierroute ?
Hi Ali,
a simple configuration example can be found in the docs, "Example 1.17. Configuration example - Routing to default tree". Example database content can be found as well, its also explained there. If you set the server loglevel to INFO, cr will give many informations about the routing rules it loaded, and also the routing process.
Cheers,
Henning