<span class="HcCDpe">Let me be more explicative<br>first test :<br></span># openser.cfg<br>perl_exec(&quot;Urgence&quot;);<br># UrgenceScript.pl<br>my $hdr = OpenSIPS::AVP::get(&quot;password&quot;);<br><br>the $hdr variable is NULL<br>
<br>second test :<br># opensips.cfg<br>perl_exec(&quot;Urgence&quot;, &quot;avp(s:password)&quot;);<br># UrgenceScript.pl<br>my $hdr = shift;<br>the hdr variable is ==&gt; avp(s:password) and not the value of the avp.<br>
and if I perl_exec(&quot;Urgence&quot;, avp(s:password)); whitout quotes, opensips simply crash.<br><br>thanks<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Geoffroy Rabouin</b> <span dir="ltr">&lt;<a href="mailto:geoffroy.rabouin@gmail.com">geoffroy.rabouin@gmail.com</a>&gt;</span><br>
Date: 2008/11/18<br>Subject: How to pass an opensips variable to perl<br>To: <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br><br><br>Hi,<br>I want to pass a variable from opener to a perl program<br>
anyone has complete these ?<br><br>I try with :<br># opensips.cfg<br>perl_exec(&quot;Urgence&quot;, &quot;avp(s:password)&quot;);<br><br># UrgenceScript.pl<br>
my $hdr = OpenSIPS::AVP::get(&quot;password&quot;);<br><br>But the $hdr variable still be null<br>I&#39;ve only use OpenSIPS qw ( log ); and use OpenSIPS::Message; for the USE section.<br>OpenSIPS::AVP cause opensips to crash for lack of AVP.pm (which seems doesn&#39;t exist).<br>

<br>thanks<br><font color="#888888"><br clear="all"><br>-- <br>Geoffroy Rabouin<br>HighColoc<br>13710 La Barque<br>téléphone : 06-27-19-13-07<br>
</font></div><br><br clear="all"><br>-- <br>Geoffroy Rabouin<br>HighColoc<br>13710 La Barque<br>téléphone : 06-27-19-13-07<br>