I think that this arrangement should work, 3 gws with different &quot;tags&quot;, it should do a load balancing among the 3 gws and append an specific &quot;tag&quot; to each gw <br>556233 for gw1<br>1 for gw2<br>nothing for gw3<br>
<br>I do not know about using &quot;#&quot; as part of the URI, <br><br>regards<br><br>jp<br><br><br>lcr routes<br>+----+-----------------+----------+--------+----------+<br>| id | prefix          | from_uri | grp_id | priority |<br>
+----+-----------------+----------+--------+----------+<br>| 1  | 5555551212      |          |      1 |        1 |<br>| 2  | 5555551212      |          |      2 |        1 | <br>| 3  | 5555551212      |          |      3 |        1 | <br>
+----+-----------------+----------+--------+----------+<br>lcr gateways<br>+-----------+--------------+------+------------+-----------+--------+-------+-------+-------+<br>| gw_name   | ip_addr      | port | uri_scheme | transport | grp_id | strip | tag   | flags |<br>
+-----------+--------------+------+------------+-----------+--------+-------+-------+-------+<br>| gw1            | ip_gw_1           | 5060 |          1 |         1 |      1 |     0 |556233 |     0 | <br>| gw2       | ip_gw_2           | 5060 |          1 |         1 |      2 |     0 | 1     |     0 | <br>
| gw3       | ip_gw_3           | 5060 |          1 |         1 |      3 |     0 |       |     0 | <br>+-----------+--------------+------+------------+-----------+--------+-------+-------+-------+<br>[root@proxy1 ~]#<br>[root@proxy1 ~]#<br>
<br><br>On Thu, Mar 5, 2009 at 3:03 PM, Geoffrey Mina &lt;<a href="mailto:geoffreymina@gmail.com">geoffreymina@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; Thanks! I hadn&#39;t seen that before.  I have another semi-related<br>
&gt; question about LCR.  I have multiple gateways, each require me to<br>&gt; prefix the dial string with a specific account ID or rule.<br>&gt;<br>&gt; i.e. to dial the phone number 5555551212 I would need to do the following:<br>
&gt;<br>&gt; gateway 1:<br>&gt; #556233#<a href="mailto:5555551212@mygateway1.com">5555551212@mygateway1.com</a><br>&gt;<br>&gt; gateway 2:<br>&gt; +<a href="mailto:15555551212@mygateway2.com">15555551212@mygateway2.com</a><br>
&gt;<br>&gt; gateway3 :<br>&gt; <a href="mailto:5555551212@mygateway3.com">5555551212@mygateway3.com</a><br>&gt;<br>&gt; Is there any way the LCR system can account for this, or will I need<br>&gt; to build some custom functionality to make this work?<br>
&gt;<br>&gt; Thanks,<br>&gt; Geoff<br>&gt;<br>&gt; On Thu, Mar 5, 2009 at 2:24 PM, Daniel-Constantin Mierla<br>&gt; &lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt; wrote:<br>&gt; &gt; Hello,<br>&gt; &gt;<br>
&gt; &gt; On 03/05/2009 09:03 PM, Geoffrey Mina wrote:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Hello,<br>&gt; &gt;&gt; I am currently deploying the LCR module.  I have some questions about<br>&gt; &gt;&gt; fields and what they do... I searched the docs, but couldn&#39;t find<br>
&gt; &gt;&gt; anything.  Can someone please fill in the blanks?<br>&gt; &gt;&gt;<br>&gt; &gt;<br>&gt; &gt; have you seen (I forced a regeneration to be sure is up to date):<br>&gt; &gt; <a href="http://kamailio.org/docs/db-tables/kamailio-db-devel.html#GEN-DB-GW">http://kamailio.org/docs/db-tables/kamailio-db-devel.html#GEN-DB-GW</a><br>
&gt; &gt;<br>&gt; &gt; Cheers,<br>&gt; &gt; Daniel<br>&gt; &gt;<br>&gt; &gt;&gt; [LCR Gateways]<br>&gt; &gt;&gt; Gateway Name: description of the gateway<br>&gt; &gt;&gt; Group ID: Numeric identifier used to link LCR Rules<br>
&gt; &gt;&gt; IP Address: The IP of the SIP gateway<br>&gt; &gt;&gt; Hostname: The hostname of the SIP gateway (not required if IP provided?)<br>&gt; &gt;&gt; Port: The port the SIP gateway listens on<br>&gt; &gt;&gt; URI Scheme: (well documented) NULL = sip, 1 = sip and 2 = sips<br>
&gt; &gt;&gt; Transport: (well documented) NULL = none, 1 = udp, 2 = tcp, 3 = tls,<br>&gt; &gt;&gt; and 4 = sctp<br>&gt; &gt;&gt; Strip: ?<br>&gt; &gt;&gt; Tag: ?<br>&gt; &gt;&gt; Weight: ?<br>&gt; &gt;&gt; Ping: ?<br>&gt; &gt;&gt; Flags: ?<br>
&gt; &gt;&gt;<br>&gt; &gt;&gt; [LCR Rules]<br>&gt; &gt;&gt; Prefix: The matching prefix.  In the US most would do this by area<br>&gt; &gt;&gt; code, so I would assume I would put something like 1678 or 1770 to<br>&gt; &gt;&gt; route Atlanta calls.  Would putting a NULL or Empty String force a<br>
&gt; &gt;&gt; default route for everything?<br>&gt; &gt;&gt; &gt;From URI: If I don&#39;t care about the from URI can I leave this NULL or<br>&gt; &gt;&gt; BLANK?<br>&gt; &gt;&gt; Group ID: The numeric identifier matching to LCR Gateways<br>
&gt; &gt;&gt; Priority: I am assuming if there are 2 records which match the prefix<br>&gt; &gt;&gt; and from URI the high priority will be chosen first?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Also, say for example, one of my gateway providers has a primary and a<br>
&gt; &gt;&gt; secondary gateway.  If the primary is down I need to route calls to<br>&gt; &gt;&gt; the secondary.  How would this fit into an LCR scheme? Would I need<br>&gt; &gt;&gt; duplicate routes for the secondary with a lower priority?<br>
&gt; &gt;&gt;<br>&gt; &gt;&gt; Thanks,<br>&gt; &gt;&gt; Geoff<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; p.s. for anyone holding out, I just installed Siremis today and it<br>&gt; &gt;&gt; rocks!  I am really quite pleased with the solution.<br>
&gt; &gt;&gt;<br>&gt; &gt;&gt; _______________________________________________<br>&gt; &gt;&gt; Kamailio (OpenSER) - Users mailing list<br>&gt; &gt;&gt; <a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
&gt; &gt;&gt; <a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>&gt; &gt;&gt; <a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; Daniel-Constantin Mierla<br>&gt; &gt; <a href="http://www.asipto.com">http://www.asipto.com</a><br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br>&gt; _______________________________________________<br>
&gt; Kamailio (OpenSER) - Users mailing list<br>&gt; <a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>&gt; <a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
&gt; <a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br><br>