[Asterisk-Users] ast_data help

harry gaillac gaillacharry at yahoo.fr
Tue Jun 21 11:32:02 MST 2005


I agree you but i read in the wiki about ast_data
Asterisk, SER and MWI:

I wish to send mwi to clients registered on ser db 

I patch sources files by hand however compilation
failed:
c -pipe  -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -g 
-Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6
-march=i686        -DBUSYDETECT_MARTIN    
-fomit-frame-pointer    -c -o pbx.o pbx.c
In file included from pbx.c:26:
include/asterisk/data.h:189: error: syntax error
before "ast_mutex_t"
include/asterisk/data.h:189: warning: no semicolon at
end of struct or union
include/asterisk/data.h:192: error: syntax error
before '}' token
include/asterisk/data.h:192: warning: type defaults to
`int' in declaration of `ASTDATA_PACKET'
include/asterisk/data.h:192: warning: data definition
has no type or storage class
include/asterisk/data.h:260: error: syntax error
before '*' token
include/asterisk/data.h:260: warning: function
declaration isn't a prototype
include/asterisk/data.h:269: error: syntax error
before '*' token
include/asterisk/data.h:269: warning: function
declaration isn't a prototype
include/asterisk/data.h:278: error: syntax error
before '*' token
include/asterisk/data.h:278: warning: function
declaration isn't a prototype
include/asterisk/data.h:289: error: syntax error
before '*' token
include/asterisk/data.h:289: warning: function
declaration isn't a prototype
include/asterisk/data.h:312: error: syntax error
before '*' token
include/asterisk/data.h:312: warning: function
declaration isn't a prototype
include/asterisk/data.h:323: error: syntax error
before '*' token
include/asterisk/data.h:323: warning: function
declaration isn't a prototype
include/asterisk/data.h:336: error: syntax error
before '*' token
include/asterisk/data.h:336: warning: function
declaration isn't a prototype
include/asterisk/data.h:349: error: syntax error
before '*' token
include/asterisk/data.h:349: warning: function
declaration isn't a prototype
include/asterisk/data.h:363: error: syntax error
before '*' token
include/asterisk/data.h:363: warning: function
declaration isn't a prototype
include/asterisk/data.h:377: error: syntax error
before '*' token
include/asterisk/data.h:377: warning: function
declaration isn't a prototype
include/asterisk/data.h:391: error: syntax error
before '*' token
include/asterisk/data.h:391: warning: function
declaration isn't a prototype
include/asterisk/data.h:405: error: syntax error
before '*' token
include/asterisk/data.h:405: warning: function
declaration isn't a prototype
include/asterisk/data.h:416: error: syntax error
before '*' token
include/asterisk/data.h:417: warning: type defaults to
`int' in declaration of `ast_data_create_packet'
include/asterisk/data.h:417: warning: data definition
has no type or storage class
include/asterisk/data.h:426: error: syntax error
before '*' token
include/asterisk/data.h:426: warning: function
declaration isn't a prototype
include/asterisk/data.h:435: error: syntax error
before '*' token
include/asterisk/data.h:435: warning: function
declaration isn't a prototype
include/asterisk/data.h:444: error: syntax error
before '*' token
include/asterisk/data.h:444: warning: function
declaration isn't a prototype
include/asterisk/data.h:508: error: syntax error
before '*' token
include/asterisk/data.h:508: error: syntax error
before '*' token
include/asterisk/data.h:508: warning: type defaults to
`int' in declaration of `ast_data_query_handler'
include/asterisk/data.h:508: warning: function
declaration isn't a prototype
include/asterisk/data.h:508: warning: data definition
has no type or storage class
include/asterisk/data.h:597: error: syntax error
before "ast_data_query_handler"
include/asterisk/data.h:597: warning: function
declaration isn't a prototype
include/asterisk/data.h:612: error: syntax error
before '*' token
include/asterisk/data.h:613: error: syntax error
before '*' token
include/asterisk/data.h:613: warning: type defaults to
`int' in declaration of `ast_data_do_query'
include/asterisk/data.h:613: warning: function
declaration isn't a prototype
include/asterisk/data.h:613: warning: data definition
has no type or storage class
include/asterisk/data.h:669: error: syntax error
before "ASTDATA_PACKET"
include/asterisk/data.h:669: warning: function
declaration isn't a prototype
pbx.c:779: error: syntax error before '+' token
pbx.c:789: error: syntax error before "if"
pbx.c:791: warning: type defaults to `int' in
declaration of `swo'
pbx.c:791: warning: data definition has no type or
storage class
pbx.c:792: warning: type defaults to `int' in
declaration of `data'
pbx.c:792: error: conflicting types for `data'
include/asterisk/data.h:191: error: previous
declaration of `data'
pbx.c:792: warning: data definition has no type or
storage class
pbx.c:793: error: syntax error before '}' token
pbx.c:810: error: syntax error before '->' token
pbx.c:810: warning: type defaults to `int' in
declaration of `__result'
pbx.c:810: warning: data definition has no type or
storage class
pbx.c:810: error: syntax error before '}' token
pbx.c:810: error: conflicting declarations of
`__result'
pbx.c:810: error: `__result' previously declared here
pbx.c:810: warning: `__result' was declared `extern'
and later `static'
pbx.c:810: error: `__s2' undeclared here (not in a
function)
pbx.c:810: error: syntax error before "if"
pbx.c:810: warning: type defaults to `int' in
declaration of `__result'
pbx.c:810: error: conflicting declarations of
`__result'
pbx.c:810: error: `__result' previously defined here
pbx.c:810: warning: data definition has no type or
storage class
pbx.c:810: error: syntax error before '}' token
pbx.c:810: warning: type defaults to `int' in
declaration of `__result'
pbx.c:810: warning: data definition has no type or
storage class
pbx.c:810: error: syntax error before '}' token
pbx.c:810: error: conflicting declarations of
`__result'
pbx.c:810: error: `__result' previously declared here
pbx.c:810: warning: `__result' was declared `extern'
and later `static'
pbx.c:810: error: `__s1' undeclared here (not in a
function)
pbx.c:810: error: `context' undeclared here (not in a
function)
pbx.c:810: error: syntax error before "if"
pbx.c:810: warning: type defaults to `int' in
declaration of `__result'
pbx.c:810: error: conflicting declarations of
`__result'
pbx.c:810: error: `__result' previously defined here
pbx.c:810: warning: data definition has no type or
storage class
pbx.c:810: error: syntax error before '}' token
pbx.c:815: warning: type defaults to `int' in
declaration of `eroot'
pbx.c:815: error: conflicting types for `eroot'
pbx.c:783: error: previous declaration of `eroot'
pbx.c:815: warning: data definition has no type or
storage class
pbx.c:815: warning: type defaults to `int' in
declaration of `eroot'
pbx.c:815: error: invalid type argument of `->'
pbx.c:815: error: syntax error before ')' token
pbx.c:836: error: syntax error before '&&' token
pbx.c:836: warning: type defaults to `int' in
declaration of `__result'
pbx.c:836: warning: data definition has no type or
storage class
pbx.c:836: error: syntax error before '}' token
pbx.c:836: error: conflicting declarations of
`__result'
pbx.c:836: error: `__result' previously declared here
pbx.c:836: warning: `__result' was declared `extern'
and later `static'
pbx.c:836: error: `label' undeclared here (not in a
function)
pbx.c:836: error: `__s2' undeclared here (not in a
function)
pbx.c:836: error: syntax error before "if"
pbx.c:836: warning: type defaults to `int' in
declaration of `__result'
pbx.c:836: error: conflicting declarations of
`__result'
pbx.c:836: error: `__result' previously defined here
pbx.c:836: warning: data definition has no type or
storage class
pbx.c:836: error: syntax error before '}' token
pbx.c:836: warning: type defaults to `int' in
declaration of `__result'
pbx.c:836: warning: data definition has no type or
storage class
pbx.c:836: error: syntax error before '}' token
pbx.c:836: error: conflicting declarations of
`__result'
pbx.c:836: error: `__result' previously declared here
pbx.c:836: warning: `__result' was declared `extern'
and later `static'
pbx.c:836: error: `__s1' undeclared here (not in a
function)
pbx.c:836: error: syntax error before "if"
pbx.c:836: warning: type defaults to `int' in
declaration of `__result'
pbx.c:836: error: conflicting declarations of
`__result'
pbx.c:836: error: `__result' previously defined here
pbx.c:836: warning: data definition has no type or
storage class
pbx.c:836: error: syntax error before '}' token
pbx.c:838: warning: type defaults to `int' in
declaration of `foundcontext'
pbx.c:838: error: `context' undeclared here (not in a
function)
pbx.c:838: warning: data definition has no type or
storage class
pbx.c:839: error: syntax error before "return"
pbx.c:843: warning: type defaults to `int' in
declaration of `foundcontext'
pbx.c:843: error: redefinition of `foundcontext'
pbx.c:838: error: `foundcontext' previously defined
here
pbx.c:843: error: `context' undeclared here (not in a
function)
pbx.c:843: warning: data definition has no type or
storage class
pbx.c:844: error: syntax error before "return"
pbx.c:846: warning: type defaults to `int' in
declaration of `e'
pbx.c:846: error: conflicting types for `e'
pbx.c:783: error: previous declaration of `e'
pbx.c:846: error: invalid type argument of `->'
pbx.c:846: warning: data definition has no type or
storage class
pbx.c:847: error: syntax error before '}' token
pbx.c:859: warning: type defaults to `int' in
declaration of `sw'
pbx.c:859: error: conflicting types for `sw'
pbx.c:785: error: previous declaration of `sw'
pbx.c:859: warning: data definition has no type or
storage class
pbx.c:860: error: syntax error before "while"
pbx.c:874: warning: type defaults to `int' in
declaration of `data'
pbx.c:874: error: invalid type argument of `->'
pbx.c:874: error: invalid type argument of `->'
pbx.c:874: error: invalid type argument of `->'
pbx.c:874: warning: data definition has no type or
storage class
pbx.c:875: warning: type defaults to `int' in
declaration of `foundcontext'
pbx.c:875: error: redefinition of `foundcontext'
pbx.c:843: error: `foundcontext' previously defined
here
pbx.c:875: error: `context' undeclared here (not in a
function)
pbx.c:875: warning: data definition has no type or
storage class
pbx.c:876: error: syntax error before "return"
pbx.c:881: warning: type defaults to `int' in
declaration of `sw'
pbx.c:881: error: invalid type argument of `->'
pbx.c:881: warning: data definition has no type or
storage class
pbx.c:882: error: syntax error before '}' token
pbx.c:884: error: `stacklen' undeclared here (not in a
function)
pbx.c:884: warning: type defaults to `int' in
declaration of `incstack'
pbx.c:884: warning: data definition has no type or
storage class
pbx.c:885: error: syntax error before '++' token
pbx.c:887: warning: type defaults to `int' in
declaration of `i'
pbx.c:887: error: conflicting types for `i'
pbx.c:784: error: previous declaration of `i'
pbx.c:887: warning: data definition has no type or
storage class
pbx.c:888: error: syntax error before "while"
pbx.c:895: warning: type defaults to `int' in
declaration of `i'
pbx.c:895: error: invalid type argument of `->'
pbx.c:895: warning: data definition has no type or
storage class
pbx.c:896: error: syntax error before '}' token
pbx.c:899: warning: type defaults to `int' in
declaration of `tmp'
pbx.c:899: error: conflicting types for `tmp'
pbx.c:782: error: previous declaration of `tmp'
pbx.c:899: error: invalid type argument of `->'
pbx.c:899: warning: data definition has no type or
storage class
pbx.c:900: error: syntax error before '}' token
pbx.c: In function `pbx_find_exten_mem':
pbx.c:933: error: `request' undeclared (first use in
this function)
pbx.c:933: error: (Each undeclared identifier is
reported only once
pbx.c:933: error: for each function it appears in.)
pbx.c:934: error: `response' undeclared (first use in
this function)
pbx.c: At top level:
pbx.c:1026: error: redefinition of `free_dynamic_ext'
pbx.c:904: error: `free_dynamic_ext' previously
defined here
pbx.c: In function `pbx_find_extension':
pbx.c:1055: error: `request' undeclared (first use in
this function)
pbx.c:1056: error: `response' undeclared (first use in
this function)
pbx.c: At top level:
pbx.c:810: error: register name not specified for
`__result'
pbx.c:810: error: register name not specified for
`__result'
pbx.c:836: error: register name not specified for
`__result'
pbx.c:836: error: register name not specified for
`__result'
pbx.c:884: error: storage size of `incstack' isn't
known
pbx.c:597: warning: `pbx_findswitch' defined but not
used
pbx.c:762: warning: `matchcid' defined but not used
pbx.c:904: warning: `free_dynamic_ext' defined but not
used
{standard input}: Assembler messages:
{standard input}:906: Error: symbol `__result' is
already defined
{standard input}:908: Error: symbol `__result' is
already defined
{standard input}:909: Error: symbol `__result' is
already defined
{standard input}:911: Error: symbol `__result' is
already defined
{standard input}:912: Error: symbol `__result' is
already defined
{standard input}:914: Error: symbol `__result' is
already defined
{standard input}:915: Error: symbol `__result' is
already defined
{standard input}:926: Error: symbol `foundcontext' is
already defined
{standard input}:932: Error: symbol `foundcontext' is
already defined
make: *** [pbx.o] Error 1


Asterisk, SER and MWI
http://mail.iptel.org/pipermail/serusers/2004-December/013727.html
Actually I wrote a patch for this and it supports
ast_data too. What you do is tell asterisk that all of
your phones IP addresses are your SER machine. Then
when a message gets left Asterisk sends the NOTIFY to
username at seripaddress:serport. SER gets it and
since it knows what's up, it relays it to the phone.
Tada! I gave my patch to Rob (who leads up the
ast_data patch. If you need it let me know. Its for
Asterisk 1.0.2 with the 1.0.2 ast_data patch.

--- Matthew Boehm <mboehm at cytelcom.com> a écrit :

> Or, you could just use the built-in database methods
> called RealTime.
> 
> Check out the wiki.
> 
> -Matthew
> 
> Joshua Colp wrote:
> > The asterisk source code has changed so much that
> ast_data no longer patches
> > cleanly against it. You'll either need to get the
> person who made ast_data
> > to update it, or manually figure out what to patch
> and where. If you look at
> > the filenames mentioned (ie: app_directory.c.rej)
> you'll see what failed to
> > patch.
> > 
> > - Joshua Colp.
> 
> 
> _______________________________________________
> 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
> 



	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com



More information about the asterisk-users mailing list