[OpenSIPS-Devel] [opensips] Add macro to get the file and line number in the script (#663)

Aron Podrigal notifications at github.com
Thu Oct 1 23:49:08 CEST 2015


It would be nice to have a way to get the file and line number within the opensips script `FILE` for the file when using `include_file` and `import_file`, and `LINE` for the line number. which can then be used in in xlog statements and in sip messages. This would make it easier to debug issues and script changes.

Also while thinking of this feature it comes to my mind that it also help to have a macro eg `SCRIPT_MD5` and `SCRIPT_SHA1` which would hold the hashed sum of the script, so we can compere revisions when logging multiple instances of opensips and you forgot to update one instance with  yor new config :)

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/663
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20151001/2562f8cb/attachment.htm>


More information about the Devel mailing list