I haven&#39;t got the value, but :<br>$avp(s:password)<br><br>it seems that it must not use the quotes ...<br><br><div class="gmail_quote">2008/11/18 Brett Nemeroff <span dir="ltr">&lt;<a href="mailto:brett@nemeroff.com">brett@nemeroff.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ok, since brute force is my style.. try:<div><div class="Ih2E3d"><span style="border-collapse: collapse;">perl_exec(&quot;Urgence&quot;, &quot;$avp(s:password)&quot;)<br>
</span><br></div><div><div></div><div class="Wj3C7c"><div class="gmail_quote">On Tue, Nov 18, 2008 at 11:26 AM, Geoffroy Rabouin <span dir="ltr">&lt;<a href="mailto:geoffroy.rabouin@gmail.com" target="_blank">geoffroy.rabouin@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I&#39;ve tried :<div><br><span style="border-collapse: collapse;">perl_exec(&quot;Urgence&quot;, $avp(s:password))<br>

</span><span style="border-collapse: collapse;">perl_exec(&quot;Urgence&quot;, avp(s:password))</span><br><br></div>
They don&#39;t work, it seems that it must have the quotes ...<br>and with the quotes it itsn&#39;t the value which is transmitted.<br><br><div class="gmail_quote">2008/11/18 Brett Nemeroff <span dir="ltr">&lt;<a href="mailto:brett@nemeroff.com" target="_blank">brett@nemeroff.com</a>&gt;</span><div>

<div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It&#39;s been a while since I used the perl stuff, but have you tried:<div><div>
<span style="border-collapse: collapse;">perl_exec(&quot;Urgence&quot;, $avp(s:password))</span><br><br></div></div><div>?</div>
<div><br><div class="gmail_quote"><div><div></div><div>On Tue, Nov 18, 2008 at 11:03 AM, Geoffroy Rabouin <span dir="ltr">&lt;<a href="mailto:geoffroy.rabouin@gmail.com" target="_blank">geoffroy.rabouin@gmail.com</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
<span>Let me be more explicative<br>first test :<br></span># openser.cfg<br>perl_exec(&quot;Urgence&quot;);<div><br># UrgenceScript.pl<br>my $hdr = OpenSIPS::AVP::get(&quot;password&quot;);<br><br></div>the $hdr variable is NULL<br>




<br>second test :<div><br># opensips.cfg<br>perl_exec(&quot;Urgence&quot;, &quot;avp(s:password)&quot;);<br># UrgenceScript.pl<br></div>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<div><div></div><div><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" target="_blank">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" target="_blank">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>
</div></div><br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
</blockquote></div></div></div><div><div></div><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>
</div></div></blockquote></div><br></div></div></div>
</blockquote></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>