Hello,

is there any way to use or evaluate the return-statements of a perl-script in 
kamailio.cfg?

I tried the following in the Routing Logic in kamailio.cfg:



if (is_method("INVITE")) {
        if (perl_exec("my_perl_subroutine") == -1){
                xlog("PERL returns -1 \n");
        }
}


Doesn't work.

The bad thing is that the return-values of the - perl_exec("XXX") - call are 
not the same that the perl subroutine "XXX" returns. 

That's at least what I strongly believe after testing.

I do need to read/evaluate the return-value of the perl-subroutine in the 
Routing Logic to define different routes depending on what the perl-subroutine 
returns.

Is there any way to do that???


Thank you for your help in advance.

Regards,

Nicolas
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

_______________________________________________
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

Reply via email to