<div dir="ltr">Dear Sir,<br><br>i tried to use the below function:<br><br>if (!cr_route(&quot;$avp(s:carrier)&quot;, &quot;$avp(s:domain)&quot;, &quot;$rU&quot;, &quot;$rU&quot;,&quot;call_id&quot;, &quot;$avp(s:host)&quot;)) {<br>
<br>during restart I did not get any error...When trying to make a call i got the following error:<br><br>Jan 24 11:41:36 [12948] ERROR:tm:t_newtran: transaction already in process 0xb60c6770<br><br>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<br>
<br>Regards<br><br><div class="gmail_quote">On Sat, Jan 24, 2009 at 11:17 AM, michel freiha <span dir="ltr">&lt;<a href="mailto:michofr@gmail.com">michofr@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Hi all,<br><br>I have a problem with carrierroute module...I have configured it as follow in my config file:<br><br>loadmodule &quot;carrierroute.so&quot;<br>######Carrier Route<br>modparam(&quot;carrierroute&quot;, &quot;db_url&quot;, &quot;mysql://opensips:123456@MYSQL_IP/opensips&quot;)<br>

modparam(&quot;carrierroute&quot;, &quot;config_source&quot;, &quot;db&quot;)<br><br>In the route function i have created the following function:<br>if (!cr_route(&quot;default&quot;, &quot;0&quot;, &quot;$rU&quot;, &quot;$rU&quot;, &quot;call_id&quot;)) {<br>

&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;403&quot;, &quot;Not allowed&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp; } else {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # In cas of failure, re-route the request<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_on_failure(&quot;1&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Relay the request to the gateway<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_relay();<br>&nbsp;&nbsp; }<br>When trying to restart kamailio server I got a the below error:<br>Jan 24 11:10:22 [12841] DBG:core:fix_actions: fixing sl_reply_error, line 381<br>Jan 24 11:10:22 [12841] DBG:core:fix_actions: fixing cr_route, line 390<br>

Jan 24 11:10:22 [12841] ERROR:core:pv_parse_spec: bad parameters<br>Jan 24 11:10:22 [12841] INFO:carrierroute:carrier_fixup: carrier tree default has id 3<br><br>Regards<br></div>
</blockquote></div><br></div>