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 commit the fix.
Cheers,
Daniel
On 3/15/12 4:53 PM, Sven Knoblich wrote:
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))
{
xlog("L_Notice","dlg_var $dlg_var(test) is defined\n");
}
I hope anybody can help me to clarify this.
Thanks in advance,
Sven
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
http://www.asipto.com/index.php/kamailio-advanced-training/