Dear Sir,
i tried to use the below function:
if (!cr_route("$avp(s:carrier)", "$avp(s:domain)", "$rU", "$rU","call_id", "$avp(s:host)")) {
during restart I did not get any error...When trying to make a call i got the following error:
Jan 24 11:41:36 [12948] ERROR:tm:t_newtran: transaction already in process 0xb60c6770
I guess there a a function that has been define 2 times...How to know which one?I tried to find t_relay but no luck
Regards
On Sat, Jan 24, 2009 at 11:17 AM, michel freiha michofr@gmail.com wrote:
Hi all,
I have a problem with carrierroute module...I have configured it as follow in my config file:
loadmodule "carrierroute.so" ######Carrier Route modparam("carrierroute", "db_url", "mysql://opensips:123456@MYSQL_IP /opensips") modparam("carrierroute", "config_source", "db")
In the route function i have created the following function: if (!cr_route("default", "0", "$rU", "$rU", "call_id")) { sl_send_reply("403", "Not allowed"); } else { # In cas of failure, re-route the request t_on_failure("1"); # Relay the request to the gateway t_relay(); } When trying to restart kamailio server I got a the below error: Jan 24 11:10:22 [12841] DBG:core:fix_actions: fixing sl_reply_error, line 381 Jan 24 11:10:22 [12841] DBG:core:fix_actions: fixing cr_route, line 390 Jan 24 11:10:22 [12841] ERROR:core:pv_parse_spec: bad parameters Jan 24 11:10:22 [12841] INFO:carrierroute:carrier_fixup: carrier tree default has id 3
Regards