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-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 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
_______________________________________________
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/