Hi All, Below is the syntax am using to print the line number in kamailio configuration file.
xlog("L_WARN","Hi Mahesh at line $cfg(line)\n");
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.
This is the details i had read to understand config file attributes :
$cfg(key) - Config File Attributes
Attributes related to configuration file.
The key can be:
- line - return the current line in config - name - return the name of current config file - file - return the name of current config file - route - return the name of routing block
Example:
send_reply("404", "Not found at line $cfg(line)")
Hello! I think you missed corex module.
пт, 29 нояб. 2019 г. в 13:35, mahesh b mahesh.b.2487@gmail.com:
Hi All, Below is the syntax am using to print the line number in kamailio configuration file.
xlog("L_WARN","Hi Mahesh at line $cfg(line)\n");
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.
This is the details i had read to understand config file attributes :
$cfg(key) - Config File Attributes
Attributes related to configuration file.
The key can be:
- line - return the current line in config
- name - return the name of current config file
- file - return the name of current config file
- route - return the name of routing block
Example:
send_reply("404", "Not found at line $cfg(line)")
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi Denys, Thank you :-) That resolved my problem !
Regards, Mahesh.B
On Fri, Nov 29, 2019 at 5:20 PM Denys Pozniak denys.pozniak@gmail.com wrote:
Hello! I think you missed corex module.
пт, 29 нояб. 2019 г. в 13:35, mahesh b mahesh.b.2487@gmail.com:
Hi All, Below is the syntax am using to print the line number in kamailio configuration file.
xlog("L_WARN","Hi Mahesh at line $cfg(line)\n");
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.
This is the details i had read to understand config file attributes :
$cfg(key) - Config File Attributes
Attributes related to configuration file.
The key can be:
- line - return the current line in config
- name - return the name of current config file
- file - return the name of current config file
- route - return the name of routing block
Example:
send_reply("404", "Not found at line $cfg(line)")
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
BR, Denys Pozniak
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users