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
_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel