<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Lucida Console'; font-size:9pt; font-weight:400; font-style:normal;">On Mittwoch, 17. Juni 2009, sasirekha jaganathan wrote:<br>
&gt; Hi,<br>
&gt;   I need to pass a variable from kamailio code base to the configuration<br>
&gt; script. Can I add a new parameter to the existing pre script callbacks? Is<br>
&gt; there any other method to achieve the same?<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Hi Sasirekha,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>you can just use an AVP (or basically a pseudo-variable) that you set in the code and then read in the configuration. This is a common practise, many modules do this. There is no need to change a callback, if you don't need to do something special. Perhaps you tell us a bit more what you want to achive?<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Henning</p></body></html>