From ibc@aliax.net Wed Jun 29 09:04:37 2011 From: =?utf-8?q?I=C3=B1aki?= Baz Castillo To: sr-dev@lists.kamailio.org Subject: [sr-dev] [selecs] @v.branch and others are not exported Date: Wed, 29 Jun 2011 09:04:31 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0392197640==" --===============0392197640== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hi, in devel version (kamailio flavour) I try to print some selects to the log (using xlog): xlog("L_INFO", "request transport = $sel(@v.transport), branch = $sel(@v.branch)\n"); @v.transport is indeed printed (tcp/udp...) but @v.branch is not, neither other selects as @v, @v.host and so. Do I miss something? -- Iñaki Baz Castillo --===============0392197640==-- From jan@ryngle.com Wed Jun 29 18:33:07 2011 From: Jan Janak To: sr-dev@lists.kamailio.org Subject: Re: [sr-dev] [selecs] @v.branch and others are not exported Date: Wed, 29 Jun 2011 12:33:00 -0400 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0758620351==" --===============0758620351== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit So what get's printed when you use @v.branch? Nothing or some garbage? Could you also check the log to see if there are any error messages (via parsing perhaps) when you try to use one of the selects that don't work? -Jan On Wed, Jun 29, 2011 at 03:04, Iñaki Baz Castillo wrote: > Hi, in devel version (kamailio flavour) I try to print some selects to > the log (using xlog): > >  xlog("L_INFO", "request transport = $sel(@v.transport), branch = > $sel(@v.branch)\n"); > > @v.transport is indeed printed (tcp/udp...) but @v.branch is not, > neither other selects as @v, @v.host and so. > > Do I miss something? > > -- > Iñaki Baz Castillo > > > _______________________________________________ > sr-dev mailing list > sr-dev(a)lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev > --===============0758620351==-- From ibc@aliax.net Wed Jun 29 18:44:04 2011 From: =?utf-8?q?I=C3=B1aki?= Baz Castillo To: sr-dev@lists.kamailio.org Subject: Re: [sr-dev] [selecs] @v.branch and others are not exported Date: Wed, 29 Jun 2011 18:43:58 +0200 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1572590466==" --===============1572590466== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 2011/6/29 Jan Janak : > So what get's printed when you use @v.branch? Nothing or some garbage? > Could you also check the log to see if there are any error messages > (via parsing perhaps) when you try to use one of the selects that > don't work? The request is correct (no parsing errors at all): DEBUG: [parser/parse_via.c:1287]: Found param type 232, = ; state=16 Then when running this xlog: xlog("L_INFO", "[$sel(@v.branch)] $rm from $fu ($fU) to $ru ($sel(@v.transport) $si : $sp)"); I get for $sel(@v.branch): DEBUG: [select_core.c:378]: missing VIA[6] header DEBUG: [parser/parse_to.c:174]: DEBUG: add_param: tag=wohrg DEBUG: [parser/parse_to.c:803]: end of header reached, state=29 DEBUG: [select.c:424]: Calling SELECT 0x7f5e99bd9890 INFO: