[asterisk-dev] MySQL Apps compilation problem in asterisk 1.4
Atis Lezdins
atis at iq-labs.net
Mon Jun 2 05:33:15 CDT 2008
On Mon, Jun 2, 2008 at 12:16 PM, Sergey Tamkovich <serg at voipsolutions.ru> wrote:
> Actualy the easier thing is to use builtin realtime API.
>
> ast_load_realtime, ast_update_realtime, ast_store_realtime,
> ast_destroy_realtime
>
> with res_config_mysql loaded, those 4 calls are mapped to 4 SQL commands
> (select, update, insert, delete). This method wouldn't allows you
> complex SQL statements, but on the other hand, you would be able to use
> not only MySQL, but any of RT backends, in addition you wouldn't need to
> maintain all misc stuff (creating, keepin destroying connections to db
> server , etc..)
>
> Example of usage can be found in app_voicemail
> http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=markup
As OP asked for this in 1.4, i'll give link to backport of
store/destroy commands for 1.4 (please remember that those are
unsupported, however working well for me).
http://ftp.iq-labs.net/realtime_store_destroy-1.4/
Regards,
Atis
>
> Tilghman Lesher wrote:
>> On Friday 30 May 2008 16:05:17 Moises Silva wrote:
>>
>>> Probably someone that really understands how menuselect works can
>>> explain which keywords are accepted, but I believe "<depend>" should
>>> work for you. There you should declare your dependency on MySQL
>>> library, considering you want to link with libmysqlclient.so, add
>>> <depend>mysqlclient</depend>
>>>
>>
>> Rather than reconfiguring the autoconf scripts, the easier thing to do may
>> be to download asterisk-addons for the 1.4 branch and put the application
>> there, along with the suggestions MODULEINFO changes, since asterisk-addons
>> already contains the proper detection for the mysql libraries.
>>
>>
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
--
Atis Lezdins,
VoIP Project Manager / Developer,
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835
More information about the asterisk-dev
mailing list