[Devel] new features: script variables and pseudo-variables in script

vallimamod abdullah vabdulla at gmail.com
Fri Feb 2 23:35:44 CET 2007


Hello Daniel,

On 1/29/07, Daniel-Constantin Mierla <daniel at voice-system.ro> wrote:
>
> [...]
>
> Assignments of script variables, AVPs, R-URI parts (username, domain,
> and URI) and dst URI can be done as well in script.
> $avp(i:11) = 1; - sets the value of $avp(i:11) to integer '1'
> $avp(i:11) = "1"; - sets the value of $avp(i:11) to string '1'
> $ru = "sip:"+$var(user)+"@"+$fd; - sets the R-URI to string composed
> from value of variable $var(user) and From URI domain
>

I have a question related to this feature: Is it possible to have a
module function that returns a string and assign it to a script
variable ?

I am thinking of extending the exec module to execute a system command
and return its output to the script.  That would be a great feature
for me but I have no idea on how to return a string from a C function
to the script.

-- 
Regards,
-vma
.



More information about the Devel mailing list