<div dir="ltr">So id love to read somewhere more about structures in kamailio at a high level..<div style>is there a more interactive place to discuss these concepts ?? say IRC, google hangouts or something ??</div><div style>

( without having to bug the whole list )</div><div style><br></div><div style>can you explain what the differences are when you say "avp stored in the transaction" and process variables ?</div><div style>do you literally mean variables in my module here, or are these some kind of structure attached to the sip_msg ?</div>

<div style><br></div><div style>effectively what im looking to do is store some custom data against sip_msg* that I can use later if I need to.</div><div style><br></div><div style>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.<br>

</div><div style><br></div><div style>im happy to discuss further if you want to gtalk me ( on this email address )</div><div style><br></div><div style>Jay</div><div style><br></div><div style><br></div><div style><br></div>

<div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 8 May 2014 16:52, Olle E. Johansson <span dir="ltr"><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div class="h5"><br><div><div>On 08 May 2014, at 08:49, jay binks <<a href="mailto:jaybinks@gmail.com" target="_blank">jaybinks@gmail.com</a>> wrote:</div>

<br><blockquote type="cite"><div dir="ltr">Sorry to repost this but, Im still looking for answers.<div>is there a better place to be asking these questions ??</div><div><br></div><div>Jay</div><div><br><div class="gmail_quote">

---------- Forwarded message ----------<br>

From: <b class="gmail_sendername">jay binks</b> <span dir="ltr"><<a href="mailto:jaybinks@gmail.com" target="_blank">jaybinks@gmail.com</a>></span><br>Date: 19 March 2014 19:18<br>Subject: module writing & per message variable within my module<br>



To: sr-dev <<a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a>><br><br><br><div dir="ltr">So Im writing a custom module to implement some of our business logic,<div>there are a few steps that im building into the module,  for example</div>



<div><br></div><div>conform_callerid</div><div>conform_destination </div>
<div><br></div><div>what I want to achive should be fairly simple, but let me explain and im sure someone will tell me where to look.</div><div><br></div><div>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 )</div>




<div><br></div><div>then I write the pv "get" function, to return the value from the global.</div><div><br></div><div>this was only done as a quick proof of concept.</div><div>but being global, im sure the variable will be overwritten by other message etc etc..</div>




<div><br></div><div>so I effectively want to store some custom fields against the message.</div><div>I didnt see this on the msg structure, but maybe I missed something</div><div><br></div><div>or is there a better way to achieve this ??</div>




<div><br></div><div>basically I want to be able to call conform_callerid </div><div>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 )</div>




<div><br></div><div>any pointers would be appreciated.</div></div></div></div></div></blockquote><br></div></div></div><div>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.</div>

<div><br></div><div>Why do you need to write a module for this? What is it you can not do in the scripts?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>/O</div><div><br></div><div><br></div><br></font></span></div>

<br>_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Sincerely<br><br>Jay
</div>