<div dir="ltr">Is there any limit for arguments count ? I have 7.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 29, 2013 at 9:05 PM, Mino Haluz <span dir="ltr">&lt;<a href="mailto:mino.haluz@gmail.com" target="_blank">mino.haluz@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks, that works. Now kamailio starts, but when I add another avp for cr_route command, it gives me Too many arguments. I&#39;m sure that I added everything in every file of the module.. Is there any other directory, where kamailio stores params count for each call? or should it be really in module directory?</div>
<div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 29, 2013 at 8:53 PM, Andrew Mortensen <span dir="ltr">&lt;<a href="mailto:admorten@isc.upenn.edu" target="_blank">admorten@isc.upenn.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br>
On Jan 29, 2013, at 1:54 PM, Mino Haluz &lt;<a href="mailto:mino.haluz@gmail.com" target="_blank">mino.haluz@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m changing carrierroute module so that it could set into another avp the ID of the rule that was chosen. I have already adjusted all functions but I have still one problem when kamailio starts.<br>
&gt;<br>
&gt; tmp_id.s=(char *)row-&gt;values[COL_ID].val.string_val;<br>
&gt;<br>
&gt; It gives Segfault at this line. The question is, how can I convert the row value that is int(10) to char (tmp_id is const str *, it is the same as comment). Thanks,<br>
<br>
</div></div>Use int2str from ut.h:<br>
<br>
        tmp_id.s = int2str(row-&gt;values[COL_ID].val.int_val, &amp;tmp_id.len)<br>
<br>
Note that int2str uses an internal static buffer that&#39;s overwritten on each call.<br>
<span><font color="#888888"><br>
andrew<br>
</font></span><div><div><br>
_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>