<div dir="ltr">Hi All,<div>         Below is the syntax am using to print the line number in kamailio configuration file.</div><div><br></div><div> xlog("L_WARN","Hi Mahesh at line $cfg(line)\n");<br></div><div><br></div><div>Unfortunately , when i do this looks like kamailio is not starting, Any help please regarding what am i missing here. I tried Xlogl as well, which doesnt print the line number by default in my setup.</div><div><br></div><div><br></div><div>This is the details i had read to understand config file attributes :</div><div><br></div><div><h2 class="gmail-sectionedit270" id="gmail-cfg_key_-_config_file_attributes" style="padding:0px;line-height:1.2;clear:left;margin:0px 0px 0.666em;color:rgb(51,51,51);font-family:Arial,sans-serif">$cfg(key) - Config File Attributes</h2><div class="gmail-level2" style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px"><p style="margin:0px 0px 1.4em;padding:0px">Attributes related to configuration file.</p><p style="margin:0px 0px 1.4em;padding:0px">The key can be:</p><ul style="margin:0px 0px 1.4em;padding:0px 0px 0px 1.5em;list-style:outside square"><li class="gmail-level1" style="padding:0px;margin:0px 0px 0px 1.5em;color:rgb(153,153,153)"><div class="gmail-li" style="margin:0px;padding:0px;color:rgb(51,51,51)">line - return the current line in config</div></li><li class="gmail-level1" style="padding:0px;margin:0px 0px 0px 1.5em;color:rgb(153,153,153)"><div class="gmail-li" style="margin:0px;padding:0px;color:rgb(51,51,51)">name - return the name of current config file</div></li><li class="gmail-level1" style="padding:0px;margin:0px 0px 0px 1.5em;color:rgb(153,153,153)"><div class="gmail-li" style="margin:0px;padding:0px;color:rgb(51,51,51)">file - return the name of current config file</div></li><li class="gmail-level1" style="padding:0px;margin:0px 0px 0px 1.5em;color:rgb(153,153,153)"><div class="gmail-li" style="margin:0px;padding:0px;color:rgb(51,51,51)">route - return the name of routing block</div></li></ul><div><p style="margin:0px 0px 1.4em;padding:0px">Example:</p><pre class="gmail-code gmail-c" style="margin-top:0px;margin-bottom:1.4em;padding:0.7em 1em;font-family:Consolas,"Andale Mono WT","Andale Mono","Bitstream Vera Sans Mono","Nimbus Mono L",Monaco,"Courier New",monospace;direction:ltr;background-color:rgb(251,250,249);border-radius:2px;overflow:auto;border:1px solid rgb(204,204,204)">send_reply<span class="gmail-br0" style="color:rgb(102,204,102)">(</span><span class="gmail-st0" style="color:rgb(255,0,0)">"404"</span><span class="gmail-sy0" style="color:rgb(102,204,102)">,</span> <span class="gmail-st0" style="color:rgb(255,0,0)">"Not found at line $cfg(line)"</span><span class="gmail-br0" style="color:rgb(102,204,102)">)</span></pre></div></div></div></div>