[SR-Users] Issues after upgrade

Daniel W. Graham dan at cmsinter.net
Fri May 23 21:09:54 CEST 2014


With that said, the first xlog statement was added prior to uncovering this issue and adding additional statements attempting to figure out this issue.

> > if (!lookup("location")) {
> >                 xlogl("L_INFO", "$ci : Location not found for $rU\n");
> >                 $var(rc) = $rc;

Since $rc was reading the return code from the xlog statement that is what in fact caused this particular issue.

I removed the first xlog statement and all is good now.

I was not aware that xlog would have a return code, thank you for opening my eyes!

-----Original Message-----
From: sr-users-bounces at lists.sip-router.org [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Daniel W. Graham
Sent: Friday, May 23, 2014 3:04 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Issues after upgrade

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-bounces at lists.sip-router.org [mailto:sr-users-bounces at 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 at 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 at lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




More information about the sr-users mailing list