<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
</head>
<body ocsi="0" fpstyle="1" bgcolor="#FFFFFF">
<div style="direction: ltr;font-family: Helvetica;color: #000000;font-size: 10pt;">
Hi Daniel,<br>
<br>
Thank you for your reply, I am using version 4.0.2.<br>
I have solved the ring all with this piece of code but I am not sure if this is the right way.<br>
I keep members of ring group in avp_ring_groups table.<br>
<br>
            xlog("Ring Group config started");<br>
            avp_db_load("$ruri/username", "$avp(s:member)/avp_ring_groups");<br>
            avp_pushto("$ruri/username","$avp(s:member)/g");<br>
            lookup_branches("location");<br>
            t_relay();<br>
            exit;<br>
<br>
Is this the right way for parallel fork?<br>
<br>
Thank you<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 style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF728470"><font size="2" color="#000000" face="Tahoma"><b>Kimden:</b> Daniel-Constantin Mierla [miconda@gmail.com] adına sr-users-bounces@lists.sip-router.org [sr-users-bounces@lists.sip-router.org]<br>
<b>Gönderildi:</b> 20 Ağustos 2013 Salı 15:24<br>
<b>Kime:</b> Kamailio (SER) - Users Mailing List<br>
<b>Konu:</b> Re: [SR-Users] Ring all strategy<br>
</font><br>
</div>
<div></div>
<div>Hello,<br>
<br>
what version of kamailio are you using? Older versions didn't support variables in append_branch() parameters.<br>
<br>
You can use xlog() to print $ru before relaying, for troubleshooting reasons. Also, you can set debug=3 for more verbose output.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 8/18/13 10:59 AM, Volkan Oransoy wrote:<br>
</div>
<blockquote type="cite"><style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
BODY {direction: ltr;font-family: Helvetica;color: #000000;font-size: 10pt;}P {margin-top:0;margin-bottom:0;}</style>
<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 | <a class="moz-txt-link-freetext" href="sip:1001@netinternet.com.tr" target="_blank">
sip:1001@netinternet.com.tr</a>       | 2013-08-16 17:50:40 |<br>
|  2 |      | 10       | netinternet.com.tr | member    |    0 | <a class="moz-txt-link-freetext" href="sip:1002@netinternet.com.tr" target="_blank">
sip:1002@netinternet.com.tr</a>       | 2013-08-17 23:51:38 |<br>
+----+------+----------+--------------------+-----------+------+-----------------------------------+---------------------+</font><br>
<br>
<br>
I got these error messages when I call <a class="moz-txt-link-abbreviated" href="mailto:10@netinternet.com.tr" target="_blank">
10@netinternet.com.tr</a> :<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
<a class="moz-txt-link-rfc2396E" href="sip:1002@netinternet.com.tr" target="_blank">
"sip:1002@netinternet.com.tr"</a> 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 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 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 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>
<br>
<fieldset class="mimeAttachmentHeader" target="_blank"></fieldset> <br>
<pre>_______________________________________________
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" target="_blank">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" target="_blank">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" target="_blank">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
</pre>
</div>
</div>
</div>
</body>
</html>