Hello,
On 15/11/16 01:12, Pranathi Venkatayogi wrote:
Hi,
I am using app_mono module and building my logic in c# app.
I am unable to understand how to send the decision back to kamalio.cfg.
More precisely:
I would like my routing logic to allow specific user names though
they are not registered as subscribers. Like:
translate(a)myip.cyracom.com <mailto:translate@myip.cyracom.com>
I have the logic in c# app which takes $ru and validates such that:
Host is
myip.cyracom.com
User is translate
How do I communicate the decision if it is valid or not back to my
config script.
Do I need to introduce new pseudo variable for this purpose?
you don't need to introduce new variables, you can use $var(name), with
your choice of name, to pass information from kamailio.cfg to mono and back:
- in mono:
SR.PV.SetS("$var(myname)", "abcd");
- in kamailio.cfg, after execution of hte mono program, $var(myname)
should be "abcd"
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 -
http://www.asipto.com