search for: ast_func_read

Displaying 6 results from an estimated 6 matches for "ast_func_read".

2006 Dec 15
1
What's up with DATETIME and TIMESTAMP in Asterisk 1.4beta3 ?
...in 1.4beta3... exten => *333,1,NoOp(DATETIME() : ${DATETIME()}) exten => *333,n,NoOp(DATETIME : ${DATETIME}) exten => *333,n,NoOp(TIMESTAMP() : ${TIMESTAMP()}) exten => *333,n,NoOp(TIMESTAMP : ${TIMESTAMP}) Asterisk 1.2.9.1: ----------------- Dec 15 12:56:26 ERROR[26373]: pbx.c:1383 ast_func_read: Function DATETIME not registered -- Executing NoOp("<channel>", "DATETIME() : 0") in new stack -- Executing NoOp("<channel>", "DATETIME : 20061215-12:56:26") in new stack Dec 15 12:56:26 ERROR[26373]: pbx.c:1383 ast_func_read: Function...
2006 May 05
5
Code parsing error?
...ng from sip.conf in variable target. exten => 1,1,Set(target=${CHANNEL:4}-) exten => 1,n,Set(target=${SIPPEER(${CUT(target,,1)}:mailbox}) exten => 1,n,VoiceMailMain(${target}) However, every time it runs I get an error in the CLI as follows WARNING[5629]: pbx.c:1366 ast_func_read: Can't find trailing parenthesis? This happens right after it executes the first line of code, then execution continues normally. I've looked at this until my eyes crossed at don't see any unbalanced parens or brackets. Perhaps I shouldn't worry since it seems to work, but what...
2009 Mar 21
2
1.6.2 beta 1 crash
...next size: 0x08abff28 *** ======= Backtrace: ========= /lib/libc.so.6[0xdfa440] /lib/libc.so.6(realloc+0x1a7)[0xdfb377] /usr/sbin/asterisk(__ast_str_helper+0x75)[0x81403b5] /usr/sbin/asterisk(ast_str_append+0x31)[0x814d531] /usr/lib/asterisk/modules/func_odbc.so[0x14c1ee5] /usr/sbin/asterisk(ast_func_read+0x100)[0x81009e0] /usr/sbin/asterisk(pbx_substitute_variables_helper_full+0x29d)[0x81070dd] /usr/sbin/asterisk[0x810797a] /usr/sbin/asterisk[0x810a0a4] /usr/sbin/asterisk[0x810bc20] /usr/sbin/asterisk[0x814c92b] /lib/libpthread.so.0[0x4ef46b] /lib/libc.so.6(clone+0x5e)[0xe5fdbe] #0...
2006 Nov 30
1
2nd attempt - Return code - How to?
...et(foo=${STAT(s,/var/t3)}) which I guess is suppose to work and make foo = size of t3 I did the following.... exten => 542,1,Set(s1=${STAT(e,"/var/lib/asterisk/t1")}) which should set s1 = 1 if the file exists and 0 if not. but I get .... Nov 30 00:19:06 ERROR[23493]: pbx.c:1382 ast_func_read: Function STAT not registered -- Executing Set("SIP/grandstream406-22e9", "s1=0") in new stack and in general I am confused about return codes. How would you use a return code from the following.... exten => s,1,System(somescript arg1 arg2) Can someone give me a workin...
2010 Nov 23
2
Function SIP_Header not registered
Hello, I'm trying to use SIP_HEADER function on my dialplan but I receive this message (on the console): pbx.c:3367 ast_func_read: Function SIP_Header not registered Why? Thank's - Bakko
2006 May 16
2
Using REGEX function
...(isnum=${REGEX("[2-9][0-9]\{2\}[2-9][0-9]\{6\}" ${EXTEN:2})})<br> <br> However, this doesn't solve the problem.&nbsp; When I execute the above dialplan (with the modified line 1 I just listed), I get this:<br> <br> May 16 10:49:10 WARNING[27970]: pbx.c:1366 ast_func_read: Can't find trailing parenthesis?<br> May 16 10:49:10 WARNING[27970]: func_strings.c:105 builtin_function_regex: Malformed input REGEX("[2-9][0-9]{2): braces not balanced<br> &nbsp;&nbsp;&nbsp; -- Executing Set("SIP/1000-efb2", "isnum=0[2-9][0-9]{6}&q...