No subject
Tue Aug 30 21:52:48 CEST 2011
(Kamailio script code)
xlog("L_INFO","Calling do_this()\n");
$var(result) = do_this("$var(response)");
xlog("L_INFO","Returning do_this(). result=$var(result). uri=
$var(response)\n");
And works fine.
Now, I was wondering If I can have the _information parameter as this :
(Kamailio script code)
loadmodule "random.so"
modparam("random", "_param1", "www.host.com")
modparam("random", "_param2", 8877)
modparam("random", "_information", $(response))
Changing the interface of the function as:
static int do_this(struct sip_msg *msg);
Calling from the kamailio script as this:
(Kamailio script code)
xlog("L_INFO","Calling do_this()\n");
$var(result) = do_this();
xlog("L_INFO","Returning do_this(). result=$var(result). uri=
$var(response)\n");
But it doesn't work.
Anyone is welcome to provide insight.
Thanks,
Luis
More information about the sr-dev
mailing list