[Users] How can I pass pseudovariables to functions?
daniel at voice-system.ro
Fri Apr 27 17:53:16 CEST 2007
not all functions accept pseudo-variables as parameters. The ones from
core mainly not.
On 04/26/07 16:24, Peter Lemenkov wrote:
> Hello All!
> I have a question. If I declare variable like this:
> $var(ip_address) = "192.168.0.1";
> I can't use this variable in functions like that one:
> revritehostport ($var(ip_address));
No, but similar functionality is:
$ruri = "sip:"+$rU+"@"+$var(ip_address);
> It leads me to the following message:
> omega1 ~ # /usr/local/sbin/openser -f
> /usr/local/etc/openser/openser_registrar.cfg -l 192.168.0.1
> 0(5723) parse error (316,25-37): syntax error
> 0(5723) parse error (316,37-38): bad argument, string expected
> ERROR: bad config file (2 errors)
> So the question is %subj%.
More information about the Users