<p>I can&#39;t help you when it comes to DR since I haven&#39;t had to work with it yet.  As for the grp you can think of it like the normal examples I have seen (group local is for users that will be allowed to make local calls, group ld is for users that can make long distance calls and group int are for users that can make international calls).  That&#39;s one way to use grp. </p>

<div class="gmail_quote">On Dec 15, 2011 7:46 PM, &quot;Nick Khamis&quot; &lt;<a href="mailto:symack@gmail.com">symack@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am just trying to understand how to assign a specific group to<br>
specific dialplans, and having a hard time<br>
getting it right. Maybe an example?<br>
<br>
grp Table<br>
+----+----------+----------------------+-------------+---------------------+<br>
| id | username | domain               | grp         | last_modified       |<br>
+----+----------+----------------------+-------------+---------------------+<br>
| 38 | 1001     | <a href="http://opensips1.test.com" target="_blank">opensips1.test.com</a> | Local Group | 2011-12-15 20:21:24 |<br>
+----+----------+----------------------+-------------+---------------------+<br>
| 39 | 1002     | <a href="http://opensips1.test.com" target="_blank">opensips1.test.com</a> | Local Group | 2011-12-15 20:21:24 |<br>
+----+----------+----------------------+-------------+---------------------+<br>
| 40 | 1003     | <a href="http://opensips1.test.com" target="_blank">opensips1.test.com</a> | Local Group | 2011-12-15 20:21:24 |<br>
+----+----------+----------------------+-------------+---------------------+<br>
<br>
<br>
The username, and domain field is my first confusion. For some reason<br>
I would think the this table<br>
would have a subscriber_id that is a foreign key to the subsriber<br>
table? This would be &quot;group table&quot;,<br>
and name would be something like &quot;Local Group&quot;, &quot;VoiceMail Group&quot;....<br>
<br>
dr_groups Table<br>
<br>
+----+----------+----------------------+---------+----------------+<br>
| id | username | domain               | groupid | description    |<br>
+----+----------+----------------------+---------+----------------+<br>
| 42 | 1001     | <a href="http://opensips1.test.com" target="_blank">opensips1.test.com</a> |       0 | Access Granted |<br>
+----+----------+----------------------+---------+----------------+<br>
| 43 | 1002     | <a href="http://opensips1.test.com" target="_blank">opensips1.test.com</a> |       0 | Access Granted |<br>
+----+----------+----------------------+---------+----------------+<br>
| 43 | 1003     | <a href="http://opensips1.test.com" target="_blank">opensips1.test.com</a> |       0 | Access Granted |<br>
+----+----------+----------------------+---------+----------------+<br>
<br>
<br>
Same table?<br>
<br>
dr_rules;<br>
+--------+---------+--------+---------+----------+---------+--------+-------+--------------------+<br>
| ruleid | groupid | prefix | timerec | priority | routeid | gwlist |<br>
attrs | description        |<br>
+--------+---------+--------+---------+----------+---------+--------+-------+--------------------+<br>
|     16 | 0       |        |         |        1 | 0       | 9      |<br>
yes   | ASTCluster Gateway |<br>
+--------+---------+--------+---------+----------+---------+--------+-------+--------------------+<br>
<br>
Is the groupid field of this table a FK to the grp or dr_groups table?<br>
<br>
dialplan;<br>
+----+------+----+----------+----------------------------------+-----------+-----------+----------+-------+<br>
| id | dpid | pr | match_op | match_exp                        |<br>
match_len | subst_exp | repl_exp | attrs |<br>
+----+------+----+----------+----------------------------------+-----------+-----------+----------+-------+<br>
| 24 |    0 |  1 |        1 | ^[2-9][0-9]{6}.*                 |<br>
  0 |           |          | local |<br>
| 28 |    0 |  1 |        0 | *98                              |<br>
  0 |           |          | voicmail |<br>
| 29 |    1 |  1 |        0 | *98                              |<br>
  0 |           |          | voicmail |<br>
+----+------+----+----------+----------------------------------+-----------+-----------+----------+-------+<br>
<br>
What I am trying to accomplish is:<br>
<br>
Local Group (dpid 0)<br>
        +<br>
        | _ _ _ 1001 <a href="http://test.com" target="_blank">test.com</a> password (From Subscriber)<br>
<br>
<br>
VoiceMail Group (dpid 1)<br>
        +<br>
        | _ _ _ 1002 <a href="http://test.com" target="_blank">test.com</a> password (From Subscriber)<br>
       +<br>
        | _ _ _ 1003 <a href="http://test.com" target="_blank">test.com</a> password (From Subscriber)<br>
<br>
<br>
Also, I would like to use this module to perform LCR (country code,<br>
area code, rate etc..).<br>
Is this possible instead of using the LCR module?<br>
<br>
Thanks in Advance,<br>
<br>
Nick.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>