<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr">Dear Kamailio Expert,<div><br></div><div>I already add module lcr, but found error when searching pvar "ddn" inside source code <span style="background-color:rgba(0,0,0,0.7);color:rgb(36,255,19);font-family:Menlo;font-size:11px;font-variant-ligatures:no-common-ligatures">core/pvapi.c</span> at line 923, as shown error log captured below :</div><div><br></div><div>





<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19)"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(7,55,99)">Apr  6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: <core> [core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "ddn"</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19)"><span style="font-variant-ligatures:no-common-ligatures"><span style="background-color:rgba(0,0,0,0.7)">Apr</span><span style="background-color:rgba(0,0,0,0.7)">  6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: <core> [core/pvapi.c:1126]: pv_parse_spec2(): </span><span style="background-color:rgb(7,55,99)">wrong char [n/110] in [$ddn] at [3 (0)]</span></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19)"><span style="font-variant-ligatures:no-common-ligatures"><span style="background-color:rgba(0,0,0,0.7)">Apr</span><span style="background-color:rgba(0,0,0,0.7)">  6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: xlog [xlog.c:511]: xdbg_fixup_helper(): </span><span style="background-color:rgb(7,55,99)">wrong format[Domain of destination: $ddn]</span></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures">Apr<span>  </span>6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: <core> [core/route.c:1166]: fix_actions(): fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:901</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures">Apr<span>  </span>6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: <core> [core/route.c:1166]: fix_actions(): fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:903</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures">Apr<span>  </span>6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: <core> [core/route.c:1166]: fix_actions(): fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:918</span></p></div><div><br></div><div>The question are, how to define correct "INVITE" methode (or correct format) inside route[LCR] which is already defined inside kamailio.cfg:</div><div>





<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures">route[LCR] {</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures">if (status=="200")</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures">{</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span>xlog("LCR: Inside the LCR routen");</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures">}</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures">if(method=="INVITE")</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures">{</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span>xlog("We got an invite");</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span>if(!load_gws(1, $rU, $var(caller_uri))) {</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span>xlog("Couldn't load gateways");</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span>sl_send_reply("500", "Server Internal Error - Cannot load gateways");</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span>exit;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span>} else {</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>        </span>xlog("GW Selected '$avp(i:709)'n");</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19)"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(7,55,99)">        xlog("Domain of destination: $ddn");</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19)"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(7,55,99)">        xlog("To URI: $tun");</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span>}</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span>if(!next_gw()) {</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span>xlog("Couldn't proceed to next gateway");</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span>sl_send_reply("503", "Service not available, no gateways found");</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span>exit;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span>} else {</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>        </span>xlog("Calling the first matched gatewayn");</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>        </span>xlog("ruri_user_avp: '$avp(i:500)'n");</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>        </span>xlog("To URI after next_gw: $tun");</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>        </span>xlog("Request URI: $rUn");</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span>}</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures">}</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(36,255,19);background-color:rgba(0,0,0,0.7)"><span style="font-variant-ligatures:no-common-ligatures">}</span></p></div><div><br></div><div>Kind Regards</div></div>
</div></div>