<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">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.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>tmp_id.s=(char *)row-&gt;values[COL_ID].val.string_val;</div><div><br></div><div>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,</div>
<div><br></div><div>Mino</div></div></div>