[SR-Users] Perl Code Execution via kamailio.cfg fails

Henning Westerholt henning.westerholt at 1und1.de
Wed Jul 14 14:51:33 CEST 2010


On Wednesday 14 July 2010, Nicolas Rüger wrote:
> Hi Henning,
> 
> no further warnings (see logs below). I increased the DEBUG-LEVEL to 4 in
>  "kamailio.cfg" and added the follwing lines at the beginng of "routing
>  logic" in "kamailio.cfg".
> 
>   ####### Routing Logic ########
>   # main request routing logic
> 
>   route{
> 
>   #mystuff BEGIN
> 
>   if (is_method("INVITE")) {
>                 perl_exec("myprint");
>                 exit;
>   }
>   #mystuff END
> 
> 
> Didn't work out.
> [..]

Hi Nicolas,

the log file you've quoted only shows the startup of the server. But there are 
no traces that you actually recieved a message on the server which could then 
trigger the script command you want to execute. This would be probably a bit 
more interesting for debugging.

I'd also suggest that you add a xlog() statement just before the perl_exec, 
this should inform you in the logs if the perl method is reached.

Cheers,

Henning



More information about the sr-users mailing list