Re: [OpenSIPS-Devel] how to share the dialog data with different modules

2014-03-04 Thread Liviu Chircu

Hello,

I would suggest attaching these values to the current dialog, as *dialog 
values*.


From a module developer's perspective, you should use the 
/store_dlg_value /and /fetch_dlg_value/ from /struct dlg_binds 
/(modules/dialog/dlg_load.h)/.


/From a script writer's perspective, you should use the /$dlg_val(key)/ 
read/write pseudovariable.


Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 03/04/2014 04:30 AM, jiangzaiweig wrote:

hello
i have a problem with my project, i want share the dialog data with 
differenr modules, for example if a message comes, i want save some 
data ( which is produced in a module)  for the next message (which 
will handled in a different module)  in the same dialog, and the data 
may be a little big for about 2000byte. What can i do? Can the pseudo 
variable store such big data ?


Thanks,
jzw.


___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] how to share the dialog data with different modules

2014-03-03 Thread jiangzaiweig
hello
i have a problem with my project, i want share the dialog data with
differenr modules, for example if a message comes, i want save some data (
which is produced in a module)  for the next message (which will handled in
a different module)  in the same dialog, and the data may be a little big
for about 2000byte. What can i do? Can the pseudo variable store such big
data ?

Thanks,
jzw.
___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] how to share the dialog data with different modules

2014-03-03 Thread Nick Altmann
You may use nosql storage, like redis for it.

http://www.opensips.org/Documentation/Tutorials-KeyValueInterface
http://www.opensips.org/html/docs/modules/1.10.x/cachedb_redis.html

--
Nick


2014-03-04 6:30 GMT+04:00 jiangzaiweig jiangzaiw...@gmail.com:

 hello
 i have a problem with my project, i want share the dialog data with
 differenr modules, for example if a message comes, i want save some data (
 which is produced in a module)  for the next message (which will handled in
 a different module)  in the same dialog, and the data may be a little big
 for about 2000byte. What can i do? Can the pseudo variable store such big
 data ?

 Thanks,
 jzw.

 ___
 Devel mailing list
 Devel@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel