Hi All
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 ?
Thanks.
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
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
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 ?
Thanks
-----Original Message----- From: users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] On Behalf Of Ali Jawad Sent: 2009-01-23 10:42 To: Henning Westerholt; users@lists.kamailio.org Subject: Re: [Kamailio-Users] Carrieroute help
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
_______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
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
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
On Friday 23 January 2009, Ali Jawad wrote:
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
Hi Ali,
you get this error when the target you specified in the config is not found in the routing tree. Do you've a domain 'default' in your database table?
Cheers,
Henning
Hi I was able to overcome this after I re-read the config and I got a more clear idea about how to route_tree relates to carrierroute...now I am getting this error
INFO:carrierroute:cr_do_route: rewrite_uri_recursor doesn't complete, uri 009613041705, carrier 5, domain 0
-----Original Message----- From: Henning Westerholt [mailto:henning.westerholt@1und1.de] Sent: 2009-01-23 14:14 To: Ali Jawad Cc: users@lists.kamailio.org Subject: Re: [Kamailio-Users] Carrieroute help
On Friday 23 January 2009, Ali Jawad wrote:
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
Hi Ali,
you get this error when the target you specified in the config is not found in the routing tree. Do you've a domain 'default' in your database table?
Cheers,
Henning