<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
can you set debug=3 in kamailio.cfg and then send the syslog
messages for routing a call matching the drouting rule?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 22/04/14 19:12, Maciej Bylica wrote:<br>
</div>
<blockquote
cite="mid:CACynCY7PxC+CajdxY3Wi6YCiYZmLv5JMLYYOWT-NMQROAaZx_g@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><span
style="font-family:arial,sans-serif;font-size:13.333333015441895px;white-space:nowrap">Hello,</span><br>
</div>
<div><span
style="font-family:arial,sans-serif;font-size:13.333333015441895px;white-space:nowrap"><br>
</span></div>
<div>I am working on version: kamailio 4.1.2 (x86_64/linux) and
heaving troubles with drouting module.</div>
<div>The problem i am facing is that kamailio cannot enter
routeid that is provided inside dr_rule table.</div>
<div><br>
</div>
<div>My last try was to use standard script file with placing
following data before t_relay</div>
<div>
<div> if (!do_routing("10")) {</div>
<div> sl_send_reply("403", "No route
for You");</div>
<div> exit;</div>
<div> }</div>
</div>
<div><br>
</div>
<div>additionaly i have added route definition </div>
<div>route[1] {<br>
</div>
<div>
<div> xlog("L_INFO","[INFO] Default route --- fn-$fn,
fu-$fu, fU-$fU, ru-$ru, rU-$rU, sp-$sp, si-$si, tu-$tu,
tU-$tU");</div>
<div> uac_replace_from("<a class="moz-txt-link-freetext" href="sip:$">sip:$</a><a moz-do-not-send="true"
href="mailto:fU@10.10.10.5">fU@10.10.10.5</a>");</div>
<div><br>
</div>
<div>}</div>
</div>
<div><br>
</div>
<div>My DB contains following data:</div>
<div>
<div>+--------+---------+--------+---------+----------+---------+--------+--------------+</div>
<div>| ruleid | groupid | prefix | timerec | priority |
routeid | gwlist | description |</div>
<div>+--------+---------+--------+---------+----------+---------+--------+--------------+</div>
<div>| 1 | 10 | 43 | | 0 | 1
| 1 | test rule |</div>
<div>+--------+---------+--------+---------+----------+---------+--------+--------------+</div>
</div>
<div><br>
</div>
<div>
<div>+------+------+---------------+-------+------------+-------+-------------+</div>
<div>| gwid | type | address | strip | pri_prefix |
attrs | description |</div>
<div>+------+------+---------------+-------+------------+-------+-------------+</div>
<div>| 1 | 10 | 10.10.10.9 | 0 | NULL | NULL |
FirstGW |</div>
<div>+------+------+---------------+-------+------------+-------+-------------+</div>
</div>
<div><br>
</div>
<div>The result is that script is omitting route[1] without any
purpose (xlog is not shown, $fU is not modified).</div>
<div><br>
</div>
<div>Could somebody help me to understand whats going on?</div>
<div>
<br>
</div>
<div>Thanks in advanced,</div>
<div>Mac</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>