Re: [SR-Users] define-check for dlg_var doesn't work

2012-03-16 Thread Daniel-Constantin Mierla
Hello, On 3/16/12 10:56 AM, Sven Knoblich wrote: Hi Daniel, i just hit reply so no one else got my answer. I have done the fix for master and 3.2. all fine, thanks for taking time to test, commit and backport. Cheers, Daniel Thanks for you help, Sven Am 15.03.2012 23:16, schrieb Daniel-C

Re: [SR-Users] define-check for dlg_var doesn't work

2012-03-16 Thread Sven Knoblich
Hi Daniel, i just hit reply so no one else got my answer. I have done the fix for master and 3.2. Thanks for you help, Sven Am 15.03.2012 23:16, schrieb Daniel-Constantin Mierla: Hello, from the code, I see that if the value does not exists, the get-function for dlg_var is just returning 0.

Re: [SR-Users] define-check for dlg_var doesn't work

2012-03-16 Thread Daniel-Constantin Mierla
On 3/16/12 10:25 AM, Sven Knoblich wrote: Thanks Daniel, this solves the problem. I will fix it for master and cherry pick it for 3.2 as well. ok -- keeping the list cc-ed will allow people reading the thread on users to see the final results. Cheers, Daniel Bye Sven Am 15.03.2012 23:1

Re: [SR-Users] define-check for dlg_var doesn't work

2012-03-15 Thread Daniel-Constantin Mierla
Hello, from the code, I see that if the value does not exists, the get-function for dlg_var is just returning 0. Probably it should return PV null value. Try again after changing return 0 in return pv_get_null(...) inside function pv_get_dlg_variable(...) from dlg_var.c If works, you can co

[SR-Users] define-check for dlg_var doesn't work

2012-03-15 Thread Sven Knoblich
sip-router:master Hi all, i want to use the define-check also for dlg_var. But after testing a bit it seems to me, that define does not work with dlg_var's. I am always getting a true. Did i miss something? # $dlg_var(test) is not defined if( defined $dlg_var(test)) { xlo