Hey list,
Due to technical reasons we are running openser1.0.1 on a tiny embedded system. I am exploring the way to pass a PV's value into the exported function from my module, and returning back a value from the function via the use of some other PV or a newly added AVP.
I am not sure how to follow this, as basic avpops operations aren't working for me in the config file itself (without introducing my custom module at all).
Could someone explain or provide an example as to how this would work? I have taken a look at http://www.asipto.com/pub/openser-devel-guide/ regarding adding a new module but I'm not quite sure as to the details regarding avops and such.
Regards.
Hello,
On 30.08.2009 11:39 Uhr, liran tal wrote:
Hey list,
Due to technical reasons we are running openser1.0.1 on a tiny embedded system.
this is quite old version. The devel guide was written for 1.4.x. It is recommended that you upgrade. IIRC, PV framewark for cfg file was introduced in 1.1.x. In 1.0 you have to work with avps.
Cheers, Daniel
I am exploring the way to pass a PV's value into the exported function from my module, and returning back a value from the function via the use of some other PV or a newly added AVP.
I am not sure how to follow this, as basic avpops operations aren't working for me in the config file itself (without introducing my custom module at all).
Could someone explain or provide an example as to how this would work? I have taken a look at http://www.asipto.com/pub/openser-devel-guide/ regarding adding a new module but I'm not quite sure as to the details regarding avops and such.
Regards.
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
On Mon, Aug 31, 2009 at 11:14 AM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
On 30.08.2009 11:39 Uhr, liran tal wrote:
Hey list, Due to technical reasons we are running openser1.0.1 on a tiny embedded system.
this is quite old version. The devel guide was written for 1.4.x. It is recommended that you upgrade. IIRC, PV framewark for cfg file was introduced in 1.1.x. In 1.0 you have to work with avps.
Indeed. Going through the available devel guide which is provided at
Kamailio's website, it mentions the use of the pv_export structure, which by a quick search through the 1.0.1 code-base it isn't found.
I am willing to work with avps if you could provide a working example, as the examples I tried from the modules documentation do not work, the config file doesn't reject them but as soon as the daemon is running it exists due to an error in avpops assginment or something (I don't recall the exact error). Is it even possible to do something like my_module_func("$tU") so that my module gets the value of the tU PV as an argument? Doing that, resulted in a the literal $tU being passed to my function.
I tried kamailio's 1.5.2 cross-compilation for my embedded target machine but the binary alone of opensips resulted in 3.2mb of size, while openser's1.0.1 version was something more realistic, along the lines of 900kb.
Regards, Liran.