|
List Info
Thread: xlog $hdr problem
|
|
| xlog $hdr problem |
  Netherlands |
2007-10-25 16:52:53 |
I have this statement in my cfg
xlog("L_INFO", "$rm $hdr(event) for $fu
($ua)");
yields
SUBSCRIBE <null> from sip:31208005169 ag-projects.com to sip:
81.23.228.149:5060 (eyeBeam release 1010i stamp 39384)
so $hdr(event) is always <null>
I tried other $hdr(headernames) and the result is always
<null>
Adrian
_______________________________________________
Devel mailing list
Devel openser.org
htt
p://openser.org/cgi-bin/mailman/listinfo/devel
|
|
| Re: xlog $hdr problem |
  Romania |
2007-10-25 17:14:54 |
Hello,
what version are you using? I tried with trunk and got:
REGISTER registration for sip:123 test.com (kphone/4.2)
for: xlog("L_INFO", "$rm $hdr(event) for $fu
($ua)n");
REGISTER sip:test.com SIP/2.0
Via: SIP/2.0/UDP 192.168.1.3:5062;branch=z9hG4bK10603F80
CSeq: 868 REGISTER
To: "1291837" <sip:123 test.com>
Expires: 180
From: "1291837" <sip:123 test.com>
Call-ID: 1054108225 192.168.1.3
Content-Length: 0
User-Agent: kphone/4.2
Event: registration
Allow-Events: presence
Contact: "1291837"
<sip:1291837 192.168.1.3:5062;transport=udp>;methods="INVI
TE, MESSAGE,
INFO, SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK,
REFER"
Daniel
On 10/26/07 00:52, Adrian Georgescu wrote:
> I have this statement in my cfg
>
> xlog("L_INFO", "$rm $hdr(event) for $fu
($ua)");
>
> yields
>
> SUBSCRIBE <null> from sip:31208005169 ag-projects.com to
> sip:81.23.228.149:5060 (eyeBeam release 1010i stamp
39384)
>
> so $hdr(event) is always <null>
>
> I tried other $hdr(headernames) and the result is
always <null>
>
> Adrian
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Devel mailing list
> Devel openser.org
> htt
p://openser.org/cgi-bin/mailman/listinfo/devel
>
_______________________________________________
Devel mailing list
Devel openser.org
htt
p://openser.org/cgi-bin/mailman/listinfo/devel
|
|
| Re: xlog $hdr problem |
  Romania |
2007-10-25 17:25:54 |
On Friday 26 October 2007, Daniel-Constantin Mierla wrote:
> Hello,
>
> what version are you using? I tried with trunk and
got:
We're using trunk (from 2 days ago) compiled with tls
support.
>
> REGISTER registration for sip:123 test.com (kphone/4.2)
>
> for: xlog("L_INFO", "$rm $hdr(event) for
$fu ($ua)n");
>
> REGISTER sip:test.com SIP/2.0
> Via: SIP/2.0/UDP
192.168.1.3:5062;branch=z9hG4bK10603F80
> CSeq: 868 REGISTER
> To: "1291837" <sip:123 test.com>
> Expires: 180
> From: "1291837" <sip:123 test.com>
> Call-ID: 1054108225 192.168.1.3
> Content-Length: 0
> User-Agent: kphone/4.2
> Event: registration
> Allow-Events: presence
> Contact: "1291837"
> <sip:1291837 192.168.1.3:5062;transport=udp>;methods="INVI
TE, MESSAGE,
> INFO, SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK,
REFER"
>
>
> Daniel
>
> On 10/26/07 00:52, Adrian Georgescu wrote:
> > I have this statement in my cfg
> >
> > xlog("L_INFO", "$rm $hdr(event) for
$fu ($ua)");
> >
> > yields
> >
> > SUBSCRIBE <null> from sip:31208005169 ag-projects.com to
> > sip:81.23.228.149:5060 (eyeBeam release 1010i
stamp 39384)
> >
> > so $hdr(event) is always <null>
> >
> > I tried other $hdr(headernames) and the result is
always <null>
> >
> > Adrian
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Devel mailing list
> > Devel openser.org
> > htt
p://openser.org/cgi-bin/mailman/listinfo/devel
>
> _______________________________________________
> Devel mailing list
> Devel openser.org
> htt
p://openser.org/cgi-bin/mailman/listinfo/devel
--
Dan
_______________________________________________
Devel mailing list
Devel openser.org
htt
p://openser.org/cgi-bin/mailman/listinfo/devel
|
|
| Re: xlog $hdr problem |
  Romania |
2007-10-25 17:44:44 |
On Friday 26 October 2007, Dan Pascu wrote:
> On Friday 26 October 2007, Daniel-Constantin Mierla
wrote:
> > Hello,
> >
> > what version are you using? I tried with trunk and
got:
>
> We're using trunk (from 2 days ago) compiled with tls
support.
svn revision 2981 to be more precise
--
Dan
_______________________________________________
Devel mailing list
Devel openser.org
htt
p://openser.org/cgi-bin/mailman/listinfo/devel
|
|
| Re: xlog $hdr problem |
  Finland |
2007-10-26 00:18:20 |
Daniel-Constantin Mierla writes:
> what version are you using? I tried with trunk and
got:
>
> REGISTER registration for sip:123 test.com
(kphone/4.2)
>
> for: xlog("L_INFO", "$rm $hdr(event)
for $fu ($ua)n");
i tried with svnrevision: 1:2981MS and $hdr(event) works
fine here.
-- juha
_______________________________________________
Devel mailing list
Devel openser.org
htt
p://openser.org/cgi-bin/mailman/listinfo/devel
|
|
| Re: xlog $hdr problem |
  Romania |
2007-10-26 01:55:34 |
On Friday 26 October 2007, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
> > what version are you using? I tried with trunk
and got:
> >
> > REGISTER registration for sip:123 test.com
(kphone/4.2)
> >
> > for: xlog("L_INFO", "$rm
$hdr(event) for $fu ($ua)n");
>
> i tried with svnrevision: 1:2981MS and $hdr(event)
works fine here.
It may work fine because you probably tested with a fairly
complex script
that happens to call something that parses all the headers
up to at least
your Event header before you called $hdr(event). The issue
appears if you
use $hdr(something) before that header was actually parsed
by other
means. It appears that using the short form of pvars doesn't
suffer from
this problem, so if I use $cs and after I use $hdr(cseq) it
works, but
the other way around it doesn't.
The minimal script below shows the problem. If you check the
debugging
output, you will notice it doesn't even attempt to parse the
cseq header
until $cs is used. after that $hdr(cseq) works as expected.
-------------------------------------------
fork = no
debug = 7
log_stderror = yes
listen = 127.0.0.1:5060
children = 5
mpath = "/usr/lib/openser/modules"
loadmodule "xlog.so"
route {
xlog("L_INFO", "Message received: $$rm=$rm
$$hdr(cseq)=$hdr(cseq)n");
xlog("L_INFO", "Now using the short form
pvar: $$cs=$csn");
xlog("L_INFO", "And now $$hdr(cseq) works:
$$hdr(cseq)=$hdr(cseq)n");
}
-------------------------------------------
--
Dan
_______________________________________________
Devel mailing list
Devel openser.org
htt
p://openser.org/cgi-bin/mailman/listinfo/devel
|
|
| Re: xlog $hdr problem |
  Finland |
2007-10-26 02:13:46 |
Dan Pascu writes:
> It may work fine because you probably tested with a
fairly complex script
> that happens to call something that parses all the
headers up to at least
> your Event header before you called $hdr(event).
ok, looks like a bug then.
-- juha
_______________________________________________
Devel mailing list
Devel openser.org
htt
p://openser.org/cgi-bin/mailman/listinfo/devel
|
|
[1-7]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|