<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Helvetica;color: #000000;font-size: 10pt;">
Hi all,<br>
<br>
I am trying to add a ring all function to my kamailio system. When a user calls a two digit extension, system will load corresponding userlist to avp and fork them in parallel. But I tried tens of way to accomplish but no luck. Does anyone have any idea about
 my problem or a neat way to create a ring group? <br>
<br>
Here is my config.<br>
I added this right before lookup("location") directive. I succesfully capture two digits uris and send them to RING_GROUPS route.<br>
<br>
<font face="Courier New">    if (uri=~"^sip:[1-9][0-9]{1}@") {<br>
        route(RING_GROUPS);<br>
    }</font><br>
<br>
My RING_GROUPS route is like that:<br>
<font face="Courier New"><br>
route[RING_GROUPS] {<br>
    avp_db_load("$ruri","$avp(s:member)/avp_ring_groups");<br>
<br>
    while($avp(s:member)) {<br>
        append_branch("$avp(s:member)", "0.5");<br>
        avp_delete("$avp(s:member)");<br>
    }<br>
<br>
    t_load_contacts();<br>
    t_next_contacts();<br>
    t_on_failure("PARALLEL");<br>
    t_relay();<br>
    break;<br>
}<br>
failure_route["PARALLEL"]<br>
{<br>
    if (!t_next_contacts()) {<br>
        exit;<br>
    }<br>
    t_on_failure("PARALLEL");<br>
    t_relay();<br>
}</font><br>
<br>
My avp_ring_groups table looks like this<br>
<br>
<font face="Courier New">+----+------+----------+--------------------+-----------+------+-----------------------------------+---------------------+<br>
| id | uuid | username | domain             | attribute | type | value                             | last_modified       |<br>
+----+------+----------+--------------------+-----------+------+-----------------------------------+---------------------+<br>
|  1 |      | 10       | netinternet.com.tr | member    |    0 | sip:1001@netinternet.com.tr       | 2013-08-16 17:50:40 |<br>
|  2 |      | 10       | netinternet.com.tr | member    |    0 | sip:1002@netinternet.com.tr       | 2013-08-17 23:51:38 |<br>
+----+------+----------+--------------------+-----------+------+-----------------------------------+---------------------+</font><br>
<br>
<br>
I got these error messages when I call 10@netinternet.com.tr :<br>
<br>
Aug 18 11:46:49 proxy /usr/local/sbin/kamailio[15736]: WARNING: <core> [rvalue.c:1012]: rval_get_int(): automatic string to int conversion for "sip:1002@netinternet.com.tr" failed<br>
Aug 18 11:46:49 proxy /usr/local/sbin/kamailio[15736]: WARNING: <core> [rvalue.c:1916]: rval_expr_eval_int(): rval expression conversion to int failed (794,22-794,22)<br>
Aug 18 11:46:49 proxy /usr/local/sbin/kamailio[15736]: ERROR: tm [t_lookup.c:1347]: new_t(): ERROR: new_t: uri invalid<br>
Aug 18 11:46:49 proxy /usr/local/sbin/kamailio[15736]: ERROR: tm [t_lookup.c:1494]: t_newtran(): ERROR: t_newtran: new_t failed<br>
Aug 18 11:46:49 proxy /usr/local/sbin/kamailio[15736]: ERROR: pv [pv_core.c:307]: pv_get_ruri_attr(): failed to parse the R-URI<br>
<br>
<br>
<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font size="1" color="#1F497D" face="Arial,sans-serif"><span style="font-size:8pt"><b>Volkan Oransoy</b></span></font><font size="1" color="#1F497D" face="Arial,sans-serif"><span style="font-size:8pt"> |
 CTO</span></font><font size="1" color="#1F497D" face="Arial,sans-serif"><span style="font-size:8pt"><br>
Netinternet Bilgisayar Telekomunikasyon San. ve Tic. Ltd. Sti.</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font size="1" color="#1F497D" face="Arial,sans-serif"><span style="font-size:8pt">Pamukkale Üniversitesi Teknoloji Geliştirme Bölgesi Denizli </span></font><font size="1" color="#1F497D" face="Arial,sans-serif"><span style="font-size:8pt"> /
 TURKEY</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font size="1" color="#1F497D" face="Arial,sans-serif"><span style="font-size:8pt">Phone: +90 258 215 50 55 / Fax: +90 258 215 50 71</span></font><font size="1" color="#1F497D" face="Arial,sans-serif"><span style="font-size:8pt"><br>
</span></font></span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>