So id love to read somewhere more about structures in kamailio at a high
level..
is there a more interactive place to discuss these concepts ?? say IRC,
google hangouts or something ??
( without having to bug the whole list )
can you explain what the differences are when you say "avp stored in the
transaction" and process variables ?
do you literally mean variables in my module here, or are these some kind
of structure attached to the sip_msg ?
effectively what im looking to do is store some custom data
against sip_msg* that I can use later if I need to.
my reason for doing a module is that I had a few things I wanted to do in a
module ( looking up large data structures for performance reasons ), and im
implementing a few other bits of business logic in this module.
im happy to discuss further if you want to gtalk me ( on this email address
)
Jay
On 8 May 2014 16:52, Olle E. Johansson <oej(a)edvina.net> wrote:
On 08 May 2014, at 08:49, jay binks <jaybinks(a)gmail.com> wrote:
Sorry to repost this but, Im still looking for answers.
is there a better place to be asking these questions ??
Jay
---------- Forwarded message ----------
From: jay binks <jaybinks(a)gmail.com>
Date: 19 March 2014 19:18
Subject: module writing & per message variable within my module
To: sr-dev <sr-dev(a)lists.sip-router.org>
So Im writing a custom module to implement some of our business logic,
there are a few steps that im building into the module, for example
conform_callerid
conform_destination
what I want to achive should be fairly simple, but let me explain and im
sure someone will tell me where to look.
when I call conform_callerid, I want to store a few bits of info so
Initially I store them in a global variable ( yup lazy & dangerous I guess )
then I write the pv "get" function, to return the value from the global.
this was only done as a quick proof of concept.
but being global, im sure the variable will be overwritten by other
message etc etc..
so I effectively want to store some custom fields against the message.
I didnt see this on the msg structure, but maybe I missed something
or is there a better way to achieve this ??
basically I want to be able to call conform_callerid
then when I call conform_destination I want to look at some fields from
the conform_callerid process ( within the context of the message we are
processing )
any pointers would be appreciated.
avps are stored in the transaction, process variablees in the process. You
don't clearly say in which context you want to "save" the data and when
you
want to "use" it so it's hard to answer this.
Why do you need to write a module for this? What is it you can not do in
the scripts?
/O
_______________________________________________
sr-dev mailing list
sr-dev(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
--
Sincerely
Jay