Daniel, I think this could be implemented without re-introduction of error_route, what about core parameter route_on_error=yes/no (default no)? If route on error is enabled, then sanity module will do the trick:
route{ if(!sanity_check("1159")) { xlog("L_INFO","Bad message from $proto:$si:$sp\n$mb\n"); break; } .... It will be up to script writer what to do in main routing block if message parsing fails. On Friday 29 October 2010, Sergey Okhapkin wrote: > It would be nice to get error_route back. The route was trivial in my cfg > file: > > error_route { > xlog("L_INFO","Bad message from $proto:$si:$sp\n$mb\n"); > drop(); > } > > On Friday 29 October 2010, Daniel-Constantin Mierla wrote: > > On 10/28/10 1:41 PM, Sergey Okhapkin wrote: > > > I've found one more feature missed in 3.1 - error_route is eliminated > > > and sanity module added. But if received SIP message is malformed and > > > can't be parsed, routing script is not executed and I have no way to > > > log the message to kamailio log. I did it in error_route before. > > > > > > This logging is important to me to support customers. SIP ALG in > > > routers often breaks Via line :-( > > > > Since I developed error_route, I remember that it handled just sporadic > > cases, but I can add an event_route to pass the buffer and some hints to > > configuration file in case the initial parsing fails and the message is > > dropped before getting to config file. > > > > It is good to know that someone use such case, introduction of sanity > > was clearly mentioned and so far there was no complain. > > > > Cheers, > > Daniel > > > > > On Thursday 28 October 2010, Daniel-Constantin Mierla wrote: > > >> On 10/26/10 2:22 PM, Sergey Okhapkin wrote: > > >>> setdebug() function is no longer provided by core. How to change > > >>> debug level dynamically in the script to trace execution of a few > > >>> statements only? > > >> > > >> seems was lost in transition to 3.0, I will check to see what can be > > >> done with the new architecture. > > >> > > >> Thanks, > > >> Daniel > > > > > > _______________________________________________ > > > 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 > _______________________________________________ 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