[SR-Users] async processing in a module

Daniel-Constantin Mierla miconda at gmail.com
Mon Jun 27 16:50:48 CEST 2011



On 6/27/11 11:44 AM, Iñaki Baz Castillo wrote:
> 2011/6/27 Daniel-Constantin Mierla<miconda at gmail.com>:
>> just to close this thread. A new module named async has been introduced in
>> GIT master, showing how to use the tm functions for asynchronous sip request
>> processing.
> Hi Daniel, good addition. Let me a question, the module description says:
>
> --------------------
> Note that after invoking the an asyncronous operation, the processing
> will continue later, in another application process. Therefore, do not
> rely on variables stored in private memory, used shared memory if you
> want to get values after the processing is resumend (e.g., $shv(...)
> of htable $sht(...)).
> ---------------------
>
> I assume that using AVP's is also valid (as AVP's are stored within
> the transaction), perhaps the doc could also mention them?
Hi Inaki,

yes, transaction avps and xavps should be also available when resuming 
the processing. You can add a phrase to explain that at your convenience.

Thanks,
Daniel
-- 
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-users mailing list