<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi all,<BR>
i am quite new to use opensips, i have been using SER since last week.<BR>
<BR>
i want to use opensips to inject a delay then relay SIP messages, actually there is function "sleep" under cfgutils.so module, i have tested it .. it is working fine, my problems are:<BR>
<BR>
1/ i have problem using scripting variable i want to do like that:<BR>
<BR>
# define variable<BR>
$var(a) = 10;<BR>
<BR>
# then<BR>
<BR>
sleep ("$var(a)");<BR>
<BR>
but the config file does not accept that, it gives error while when i use sleep("10") there is no problem... so do i have a problem using that and if yes how can i solve this.<BR>
<BR>
2/ i need to implement this delay to be a random variate where i can use different distribution like exponential or normal, does any one try to do that before or have an idea how i can implement that<BR>
<BR>
any ideas are appreciated.<BR>
<BR>
<BR>
Amar<BR>
<BR>
<BR>
<RTE_TEXT></RTE_TEXT><BR><br /><hr />Stay up to date on your PC, the Web, and your mobile phone with Windows Live <a href='http://clk.atdmt.com/MRT/go/119462413/direct/01/' target='_new'>Click here</a></body>
</html>