<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>thanks, got some leads with the new log messages, so I pushed
another commit to see which of the fields there is causing the
problem. Can you fetch again master and give it another try?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 05/01/2017 09:09, Yasin CANER wrote:<br>
</div>
<blockquote
cite="mid:79a30fcf-506b-4442-cc1c-763e8c224a4a@netgsm.com.tr"
type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<p><font face="Courier New, Courier, monospace">Hello;</font></p>
<p><font face="Courier New, Courier, monospace">Results are here.
Once i tried carrierroute config with kamailio V4.1.9 and it
works. here version is kamailio 5.0.0-dev10 . it is started
with "kamailio -dd -E"<br>
</font></p>
<p><font face="Courier New, Courier, monospace"><br>
</font></p>
<p><font face="Courier New, Courier, monospace">[root@Test
master]# kamcmd cr.reload_routes<br>
[root@Test master]# kamcmd cr.dump_routes<br>
error: 500 - Internal error - carrier structure<br>
[root@Test master]#<br>
[root@Test master]#<br>
[root@Test master]# kamctl rpc cr.dump_routes<br>
{"jsonrpc":"2.0","result":{"routes":[{"carrier":,"id":1,"domains":[{"domain":,"id":1,"data":["
NULL: 100.000 %, 'ip:5060': ON, '0', '', '',
'338'"]}]}]},"id":9684}<br>
</font></p>
<p><br>
</p>
<p>here is log</p>
<p><br>
</p>
<p>[root@TestDispatcher master]# 10(9666) INFO: carrierroute
[cr_db.c:315]: load_route_data_db(): carrier 'default' (id 1)
has 1 domains<br>
10(9666) INFO: carrierroute [cr_data.c:456]: add_route(): adding
prefix , prob 1.000000<br>
10(9666) INFO: carrierroute [cr_carrier.c:98]:
add_domain_data(): adding domain 1 'mydomainip' to carrier 1
'default'10(9666) INFO: carrierroute [cr_data.c:412]:
get_domain_data_or_add(): added domain 1 'mydomainip' to carrier
1 'default'10(9666) INFO: carrierroute [cr_data.c:468]:
add_route(): found carrier and domain, now adding route<br>
10(9666) INFO: carrierroute [cr_rule.c:118]: add_route_rule():
no backed up rules<br>
10(9666) INFO: carrierroute [cr_data.c:653]: rule_fixup():
fixing tree mydomainip<br>
10(9666) INFO: carrierroute [cr_data.c:613]:
rule_fixup_recursor(): hashless rule with host ip:5060 hash,
hash_index 1<br>
<u>10(9666) ERROR: ctl [binrpc_run.c:1112]: rpc_struct_add():
failed to add attribute-value</u><u><br>
</u><u>10(9666) ERROR: carrierroute [cr_fifo.c:1192]:
cr_rpc_dump_routes(): add carrier structure failure at count 0</u><br>
</p>
<p><br>
</p>
<p>In addition , I tried to modify code like this and it didnt
work either. it gives same error.<br>
</p>
<p><br>
</p>
<p> if(rpc->struct_add(dh, "Sd[", "carrier",
"at",<br>
"id", "123",<br>
"domains",
&eh)<0) {<br>
LM_ERR("add carrier structure
failure at count %d\n", i);<br>
rpc->fault(ctx, 500,
"Internal error - carrier structure");<br>
goto error;<br>
}<br>
<br>
</p>
<br>
<div class="moz-cite-prefix">5.01.2017 00:39 tarihinde
Daniel-Constantin Mierla yazdı:<br>
</div>
<blockquote
cite="mid:578d71c8-4767-1e29-e2c8-983f12b39864@gmail.com"
type="cite">kamctl rpc cr.dump_routes</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<title></title>
<div align="left">
<div style="width:300px;" align="left"> <a
moz-do-not-send="true" href="http://www.netgsm.com.tr"
target="_blank"> <img
src="cid:part1.D275BF9D.59DA1147@gmail.com"
alt"netgsm"="" border="0"> </a> </div>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>