<div dir="ltr">Sorry to repost this but, Im still looking for answers.<div style>is there a better place to be asking these questions ??</div><div style><br></div><div style>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">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">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><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- <br></div><div>Sincerely<br><br>Jay
</div></font></span></div>
</div><br><br clear="all"><div><br></div>-- <br>Sincerely<br><br>Jay
</div></div>