[Asterisk-Users] ANNOUNCEMENT:Updatesforapp_cbmysqlandMeetMe2gui(out
of tree modules)
Kris Edwards
krisedwards at gmail.com
Fri Mar 18 15:45:27 MST 2005
After applying the patch (which failed on apps/Makefile but I manually
edited) I was still having compliation issues because app_meetme2.c was
looking for pq libs (I use mysql). I'm no programmer, but I tried
getting rid of that #include and decalring the dbtype as mysql, but it
still failed. I installed postgress to get the libs and it compiled
successfuly. meetme2 loads but now it appears it's looking for
Postgress even though I have the dbtype set as mysql in meetme2.conf:
[app_meetme2.so] => (Extended MeetMe conference bridge)
Mar 18 17:36:37 WARNING[22337]: config_old.c:27 ast_load: ast_load is
deprecated, use ast_config_load instead!
== Parsing '/etc/asterisk/meetme2.conf': Found
Mar 18 17:36:37 WARNING[22337]: app_meetme2.c:1441 get_db_params:
PostgreSQL database table not specified. Using default meetme_user.
Mar 18 17:36:37 WARNING[22337]: app_meetme2.c:1456 get_db_params:
PostgreSQL database sequence not specified. Using default id_meetme_user.
Mar 18 17:36:37 WARNING[22337]: config_old.c:39 ast_destroy: ast_destroy
is deprecated, use ast_config_destroy instead!
== Registered application 'MeetMeCount2'
== Registered application 'MeetMe2'
[app_cbmysql.so] => (Conference Bridge MySQL)
== Parsing '/etc/asterisk/cbmysql.conf': Found
Mar 18 17:36:37 ERROR[22337]: app_cbmysql.c:534 load_module: Failed to
connect to mysql database meetme on localhost.
== Registered application 'CBMySQL'
[cdr_pgsql.so] => (PostgreSQL CDR Backend)
== Parsing '/etc/asterisk/cdr_pgsql.conf': Found
== Manager registered action DBGet
== Manager registered action DBPut
== Parsing '/etc/asterisk/enum.conf': Found
Asterisk Ready.
*CLI>
Anyway.. I just finished getting this far, so hopefully I'll figure out
this problem. Just wanted to let somebody know what it took for me to
compile because maybe it's relative to other people's issues. (BTW, I'm
using CVS from today).
Kris
_____________________________________
meetme2.conf:
;
; Configuration file for MeetMe simple conference rooms
; for Asterisk of course.
;
[db]
;
; usage dbtype=postgres or mysql
;
dbtype=mysql
hostname=localhost
dbname=meetme
user=asteriskuser
password=secret
port=3306
;sequence=id_meetme_user
dbtable=meetme_user
[rooms]
;
; Usage is conf => confno
;
conf => 1234
conf => 4321
# cat cbmysql.conf
[global]
hostname=localhost
dbname=meetme
password=secret
user=asteriskuser
port=3306
sock=/var/run/mysqld/mysql.sock
OptsAdm=dp
OptsUsr=dp
ConfApp=MeetMe2
ConfAppCount=MeetMeCount2
Dan Austin wrote:
> I'm afraid I am at a loss. If the three files,
> app_cbmysql.c, app_meetme2.c and Makefile all
> exist in ../apps then a patch -p1 from the
> ../asterisk directory should work.
>
> The -p1 tells patch to ignore the first directory
> in the path to the file in the patch, -p2 ignores
> two directories. Another option is to just edit
> the apps-meetme-cbmysql.txt and split it into
> three patchs and apply them one at a time.
>
> Dan
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Henry
> Devito
> Sent: Thursday, March 17, 2005 10:53 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users]
> ANNOUNCEMENT:Updatesforapp_cbmysqlandMeetMe2gui(out of tree modules)
>
> It doesn't matter if I run it from the apps directory or the asterisk
> directory I get the same response. This is getting frustrating.
> ----- Original Message -----
> From: "Dan Austin" <Dan_Austin at Phoenix.com>
> To: "Asterisk Users Mailing List - Non-Commercial Discussion"
> <asterisk-users at lists.digium.com>
> Sent: Friday, March 18, 2005 12:17 AM
> Subject: RE: [Asterisk-Users] ANNOUNCEMENT:
> Updatesforapp_cbmysqlandMeetMe2gui(out of tree modules)
>
>
> I should have read a little closer-
>
>
>>[root at hdpbx apps]# patch -p1 <
>>/var/build_aah/asterisk_src/asterisk/apps/apps-meetme-cbmysql.txt
>
>
> If you run patch from within the apps directory, you will need
> to use -p2. Or just cd .. and use the same command as above.
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list