2012/10/3 Daniel-Constantin Mierla miconda@gmail.com:
Hello,
Hi Daniel,
the best would be to enhance the module to be able to get/set pseudo-variables. I am not a python guy at all, so I cannot help much, however I can assist with the C side in kamailio if someone starts development and has questions about PVs.
I had to change to lua scripting in order to use pvs.
Calling config functions with parameters from embedded interpreters exposes the risk of memory leaks, so it is better to avoid it. Anyhow, added headers are not visible immediately (even when done form config file), unless you call msg_apply_changes().
Oh. Thanks.
As a workaround for now, I suggest you put your token somehow in request uri (e.g., a parameter).
As I said before, I had to use lua scripts in order to be able to use pvs.
Thanks a lot for your reply.