<div>Thanks a lot Bogdan for your valuable reply. We are deciding to use the dialplan module based on our requirement. Besides this I have one more questions for you,</div>
<div> </div>
<div>In dispatcher.c file I found the following data structure,</div>
<div>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></div>
<div>Is id here is representing the destination set from dispatcher table ? Also what is "int setn" in the code (in function add_dest2list)?</div>
<div> </div>
<div>Thanks</div>
<div>Rajib<br></div>
<div class="gmail_quote">On Tue, Jul 13, 2010 at 8:48 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">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 use the<br>dialplan to try to do some translation from the numbers to some normal IDs.<br>
<div class="im"><br>Regards,<br>Bogdan<br><br>rajib deka wrote:<br></div>
<div>
<div></div>
<div class="h5">> 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 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></div></div>> ------------------------------------------------------------------------<br>
<div class="im">><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></div>
<div class="im">--<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>
</div>
<div>
<div></div>
<div class="h5">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>