<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I've tried it before <br><br># perl<br>OpenSIPS::AVP::add(4,$x);<br><br>#config file<br>xlog ("$avp(i:4)");<br><br>but I am getting error: <br>perl error: Undefined subroutine &OpenSIPS::AVP::add called line 84. <br><br>Also: is there any list with all pseudo-variables in OpenSIPS ?<br><br><br>> Date: Wed, 12 Nov 2008 16:11:57 -0500<br>> From: abalashov@evaristesys.com<br>> To: axisml@gmail.com<br>> CC: users@lists.opensips.org<br>> Subject: Re: [OpenSIPS-Users] a simple perl question<br>> <br>> Chris wrote:<br>> > On Wednesday 12 November 2008 1:50:59 pm Robert R wrote:<br>> >> How can I return a string value from perl function in openSER?<br>> >><br>> >> return $x; is not working.<br>> > <br>> > Here's the way I'm doing it...from my Perl script code:<br>> > <br>> > if ($routeid) {<br>> >         # set AVP variable with the destination route ID to route call to<br>> >         OpenSIPS::AVP::add(369,$routeid);<br>> > }<br>> > <br>> > And then in the OpenSIPS script opensips.cfg, I can read it:<br>> > <br>> > if ($avp(i:369) == "whatever") {<br>> >         ......<br>> > }<br>> <br>> Ditto. That is the only way I have gotten it to work.<br>> <br>> <br>> -- <br>> Alex Balashov<br>> Evariste Systems<br>> Web : http://www.evaristesys.com/<br>> Tel : (+1) (678) 954-0670<br>> Direct : (+1) (678) 954-0671<br>> Mobile : (+1) (706) 338-8599<br>> <br>> _______________________________________________<br>> Users mailing list<br>> Users@lists.opensips.org<br>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br><br /><hr />Windows Live Hotmail now works up to 70% faster. <a href='http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_faster_112008' target='_new'>Sign up today.</a></body>
</html>