<div>Thank you very much Bogdam. I have seen that diaplan module is helping as you have suggested. </div>
<div> </div>
<div>Regards</div>
<div>Rajib<br><br></div>
<div class="gmail_quote">On Wed, Jul 14, 2010 at 7:12 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">rajib deka wrote:<br>> Thanks a lot Bogdan for your valuable reply. We are deciding to use<br>> the dialplan module based on our requirement. Besides this I have one<br>> more questions for you,<br>
><br>> In dispatcher.c file I found the following data structure,<br>> typedef struct _ds_set<br>> {<br>> int id; /* id of dst set */<br>> int nr; /* number of items in dst set */<br>
> int last; /* last used item in dst set */<br>> int weight_sum; /* sum of the weights from dst set */<br>> ds_dest_p dlist;<br>> struct _ds_set *next;<br>
> } ds_set_t, *ds_set_p;<br>> Is id here is representing the destination set from dispatcher table ?<br></div>yes, it is, but do not count on changing it - this values propagate to<br>other variables and you need to change all of them through all the code.<br>
<div class="im"><br>> Also what is "int setn" in the code (in function add_dest2list)?<br></div>the index of the set.<br><br>Regards,<br>Bogdan<br>
<div class="im"><br>><br>> Thanks<br>> Rajib<br>> On Tue, Jul 13, 2010 at 8:48 PM, Bogdan-Andrei Iancu<br></div>
<div>
<div></div>
<div class="h5">> <<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>>> wrote:<br>><br>> Hi Rajib,<br>><br>
> Changing the DB definiton will not help as internally, the dispatcher<br>> module will use an int (4 bytes data) for keeping this ID. So, it will<br>> not work.<br>><br>> Instead of using the bigints for IDs, I would rather suggest to<br>
> use the<br>> dialplan to try to do some translation from the numbers to some<br>> normal IDs.<br>><br>> Regards,<br>> Bogdan<br>><br>> rajib deka wrote:<br>> > Hello List,<br>
> ><br>> > Is it possible to use a BIGINT value instead of INT(11) in OpenSIPS<br>> > dispatcher module?<br>> ><br>> > We tried to store a BIGINT value by changing the dispatcher table<br>
> > structure but the dispatcher code is restricting us to do that. We<br>> > have some requirements which needs the setid to be a BIGINT as<br>> we are<br>> > dispatching the calls based on telephone number against a set of<br>
> > gateways. So, is there any way other than changing the code. If we<br>> > want to change the code how do we have to start.<br>> ><br>> > --<br>> > Rajib Deka<br>> > Software Engineer<br>
> > Servion Global Solution<br>> > Chennai, India<br>> ><br>> > Mobile No: + 91 80157 09130<br>> ><br>> ------------------------------------------------------------------------<br>
> ><br>> > _______________________________________________<br>> > Users mailing list<br></div></div>> > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
<div class="im">> > <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>> ><br>><br>><br>> --<br>
> Bogdan-Andrei Iancu<br>> OpenSIPS Bootcamp<br>> 20 - 24 September 2010, Frankfurt, Germany<br></div>> <a href="http://www.voice-system.ro/" target="_blank">www.voice-system.ro</a> <<a href="http://www.voice-system.ro/" target="_blank">http://www.voice-system.ro/</a>><br>
><br>><br>> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
<div>
<div></div>
<div class="h5">> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>><br>><br>><br>><br>> --<br>> Rajib Deka<br>
> Software Engineer<br>> Servion Global Solution<br>> Chennai, India<br>><br>> Mobile No: + 91 80157 09130<br>> ------------------------------------------------------------------------<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>
><br><br><br>--<br>Bogdan-Andrei Iancu<br>OpenSIPS Bootcamp<br>20 - 24 September 2010, Frankfurt, Germany<br><a href="http://www.voice-system.ro/" target="_blank">www.voice-system.ro</a><br><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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Rajib Deka<br>Software Engineer<br>Servion Global Solution<br>Chennai, India<br><br>Mobile No: + 91 80157 09130<br>