I originally put it in the last xlog statement, thanks for catching that. I moved directly after the lookup and it returns '-1'.
-----Original Message----- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Juha Heinanen Sent: Friday, May 23, 2014 2:57 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Issues after upgrade Daniel W. Graham writes: > Great idea! It returned a '1'. > > if (!lookup("location")) { > > xlogl("L_INFO", "$ci : Location not found for $rU\n"); > > $var(rc) = $rc; > > xlog $rc to see what value it has. where did you put xlog? note that setting of $var(rc) should be done immediate after lookup. otherwise it is $rc of xlog. -- juha _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users