Discussion:
[SR-Users] event_route[core:receive-parse-error] question
Julia Boudniatsky
2014-10-01 12:38:03 UTC
Permalink
Hello,
I try to use event_route[core:receive-parse-error] in 4.1.6

event_route[core:receive-parse-error] {
xlog("L_WARN", "Event-parse-error: $rm from
$avp(inc_carrier)/n$mb/n");
}

When core parse error occurs , *log message is not printed*.

What is wrong?

Thank you,

Julia
Daniel-Constantin Mierla
2014-10-01 12:54:56 UTC
Permalink
Hello,

iirc, the event route is executed only when the sip request is so broken
not to make it till config file execution.

In your previous email on this topic that I had in mind to reply but got
forgotten, you refer to From. That is not part of the basic parsing
(again, iirc), you should catch that using sanity_check() function from
sanity module, using it somewhere at the top of config request route
(see default config, it is in the route[REQINIT)).

Cheers,
Daniel
Post by Julia Boudniatsky
Hello,
I try to use event_route[core:receive-parse-error] in 4.1.6
event_route[core:receive-parse-error] {
xlog("L_WARN", "Event-parse-error: $rm from
$avp(inc_carrier)/n$mb/n");
}
When core parse error occurs , *log message is not printed*.
What is wrong?
Thank you,
Julia
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Julia Boudniatsky
2014-10-01 13:23:17 UTC
Permalink
I understand my mistake.
It's working when message is broken.

I wanted to use it for bad SDP.
We have a problem with SDP from some users.
In error of parsing SDP on log printed only wrong part of SDP
and correlation to call is very difficult.

Thank you,

Julia
Post by Julia Boudniatsky
Hello,
iirc, the event route is executed only when the sip request is so broken
not to make it till config file execution.
In your previous email on this topic that I had in mind to reply but got
forgotten, you refer to From. That is not part of the basic parsing (again,
iirc), you should catch that using sanity_check() function from sanity
module, using it somewhere at the top of config request route (see default
config, it is in the route[REQINIT)).
Cheers,
Daniel
Hello,
I try to use event_route[core:receive-parse-error] in 4.1.6
event_route[core:receive-parse-error] {
xlog("L_WARN", "Event-parse-error: $rm from
$avp(inc_carrier)/n$mb/n");
}
When core parse error occurs , *log message is not printed*.
What is wrong?
Thank you,
Julia
_______________________________________________
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Daniel-Constantin Mierla
2014-10-02 07:05:47 UTC
Permalink
Post by Julia Boudniatsky
I understand my mistake.
It's working when message is broken.
I wanted to use it for bad SDP.
We have a problem with SDP from some users.
In error of parsing SDP on log printed only wrong part of SDP
and correlation to call is very difficult.
I see, probably we should add a check in sanity module for sdp.

At this moment, I would try to use one of the functions from the SDPOPS
module that should not fail normally (e.g., sdp_with_media("audio")) and
if there is a failure then handle the error case.

Cheers,
Daniel
Post by Julia Boudniatsky
Thank you,
Julia
On Wed, Oct 1, 2014 at 3:54 PM, Daniel-Constantin Mierla
Hello,
iirc, the event route is executed only when the sip request is so
broken not to make it till config file execution.
In your previous email on this topic that I had in mind to reply
but got forgotten, you refer to From. That is not part of the
basic parsing (again, iirc), you should catch that using
sanity_check() function from sanity module, using it somewhere at
the top of config request route (see default config, it is in the
route[REQINIT)).
Cheers,
Daniel
Post by Julia Boudniatsky
Hello,
I try to use event_route[core:receive-parse-error] in 4.1.6
event_route[core:receive-parse-error] {
xlog("L_WARN", "Event-parse-error: $rm from
$avp(inc_carrier)/n$mb/n");
}
When core parse error occurs , *log message is not printed*.
What is wrong?
Thank you,
Julia
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> -http://www.linkedin.com/in/miconda
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Loading...