VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
cyril.scetbon at free.fr Guest
|
Posted: Fri Jan 18, 2008 9:33 am Post subject: [asterisk-users] Accessing a MySQL database and using the sa |
|
|
Hi guys,
Does someone use a mysql database for accessing data and in the same
time for storing cdr ? if that is the case, which module is used ?
thanks
--
Cyril SCETBON |
|
Back to top |
|
|
a.spadaccini at mediat... Guest
|
Posted: Fri Jan 18, 2008 10:02 am Post subject: [asterisk-users] Accessing a MySQL database and using the sa |
|
|
Ciao Cyril,
Quote: | Does someone use a mysql database for accessing data and in the same
time for storing cdr ? if that is the case, which module is used ?
thanks
|
Which kind of "data" are you talking about?
I suppose that you mean that you want to store non-Asterisk related data and
CDR data in the same database.
In this case, to handle CDR data you should use the cdr_mysql module, from
asterisk-addons (http://www.voip-info.org/wiki-Asterisk+cdr+mysql), storing CDR
data in a table of your choice.
Then you should use the DB for your data exactly as you would do if Asterisk
weren't storing his data.
HTH,
--
Dr. Andrea Spadaccini
Multimedia Technologies Institute - MTI S.r.l.
Web: www.x-voice.it - Tel: +39 (0) 95 7224945 |
|
Back to top |
|
|
atis at iq-labs.net Guest
|
Posted: Fri Jan 18, 2008 10:02 am Post subject: [asterisk-users] Accessing a MySQL database and using the sa |
|
|
On 1/18/08, Cyril SCETBON <cyril.scetbon at free.fr> wrote:
Quote: | Hi guys,
Does someone use a mysql database for accessing data and in the same
time for storing cdr ? if that is the case, which module is used ?
|
There are two different modules for this. But it's all in
asterisk-addons. For queries you would need app_addon_sql_mysql and
for CDR - cdr_addon_mysql. However app_addon_sql_mysql would require
you to connect/disconnect and keep track of ID's. there's also
res_odbc that connects automatically, but that needs ODBC installed,
and i don't like extra layers I'm waiting for something that would
have the same interface that res_odbc but would use MySQL directly.
Btw, in trunk there's improvements for Realtime engine, so you can do
UPDATE's and DELETE's trough func_realtime. If you're interested - i
can send you backported patch for 1.4
Regards,
Atis
--
Atis Lezdins
VoIP Developer,
IQ Labs Inc.
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835 |
|
Back to top |
|
|
cyril.scetbon at free.fr Guest
|
Posted: Mon Jan 21, 2008 1:17 pm Post subject: [asterisk-users] Accessing a MySQL database and using the sa |
|
|
Andrea Spadaccini wrote:
Quote: | Ciao Cyril,
Quote: | Does someone use a mysql database for accessing data and in the same
time for storing cdr ? if that is the case, which module is used ?
thanks
|
Which kind of "data" are you talking about?
I suppose that you mean that you want to store non-Asterisk related data and
CDR data in the same database.
| yes
Quote: |
In this case, to handle CDR data you should use the cdr_mysql module, from
asterisk-addons (http://www.voip-info.org/wiki-Asterisk+cdr+mysql), storing CDR
data in a table of your choice.
Then you should use the DB for your data exactly as you would do if Asterisk
weren't storing his data.
| I want to make special request and not just set or get
--
Cyril SCETBON |
|
Back to top |
|
|
cyril.scetbon at free.fr Guest
|
Posted: Mon Jan 21, 2008 1:23 pm Post subject: [asterisk-users] Accessing a MySQL database and using the sa |
|
|
Atis Lezdins wrote:
Quote: | On 1/18/08, Cyril SCETBON <cyril.scetbon at free.fr> wrote:
Quote: | Hi guys,
Does someone use a mysql database for accessing data and in the same
time for storing cdr ? if that is the case, which module is used ?
|
There are two different modules for this. But it's all in
asterisk-addons. For queries you would need app_addon_sql_mysql and
for CDR - cdr_addon_mysql. However app_addon_sql_mysql would require
you to connect/disconnect and keep track of ID's. there's also
res_odbc that connects automatically, but that needs ODBC installed,
and i don't like extra layers I'm waiting for something that would
have the same interface that res_odbc but would use MySQL directly.
|
Quote: |
Btw, in trunk there's improvements for Realtime engine, so you can do
UPDATE's and DELETE's trough func_realtime. If you're interested - i
can send you backported patch for 1.4
| Thanks, but I don't want to have too much work. I just want to know what
is needed and to chose the best and fastest solution.
--
Cyril SCETBON |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|