On 1.6.1, I must be losing my eyesight:
[internal]
include => outbound-pstn
.............
include => meetme ; 2663
include => setup-meetme-conf-room ; 6000xxxYYYY
[setup-meetme-conf-room]
exten => _6000XXXNXXX,n,Set(Time-in-secs="${STRFTIME(${EPOCH},,%s}"
)
........
CLI:
-- Starting simple switch on 'DAHDI/1-1'
[2009-05-17 14:54:49] WARNING[13433]: pbx.c:2846 func_args: Can't find
trailing parenthesis?
-- Executing [60001234567 at internal:1] Set("DAHDI/1-1",
"Time-in-secs= "1242586489" ") in new stack
.........
I've tried it with and without quotes around STRFTIME.
Now it works, so I can't really complain,
But I'm worried this come bite me later, somehow.
sean
On Sun, 17 May 2009, sean darcy wrote:> [setup-meetme-conf-room] exten => > _6000XXXNXXX,n,Set(Time-in-secs="${STRFTIME(${EPOCH},,%s}" ) > > CLI: > -- Starting simple switch on 'DAHDI/1-1' [2009-05-17 14:54:49] > WARNING[13433]: pbx.c:2846 func_args: Can't find trailing parenthesis?This seems too obvious...> exten => _6000XXXNXXX,n,Set(Time-in-secs="${STRFTIME(${EPOCH},,%s}" ) > exten => _6000XXXNXXX,n,Set(Time-in-secs=${STRFTIME(${EPOCH},,%s)})I didn't test it, but this looks right to me. I don't think you "want" a trailing space assigned to Time-in-secs either. Emacs has an excellent match-paren facility that works on (){}[] in any nesting combination. Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
On 17 May 2009, at 20:07, sean darcy wrote:> exten => _6000XXXNXXX,n,Set(Time-in-secs="${STRFTIME(${EPOCH},,%s}" )STRFTIME is never closed with a ). You have two ( and only one )
Philipp Kempgen
2009-May-17 20:48 UTC
[asterisk-users] Can YOU find a trailing parenthesis?
sean darcy schrieb:> On 1.6.1, I must be losing my eyesight:> exten => _6000XXXNXXX,n,Set(Time-in-secs="${STRFTIME(${EPOCH},,%s}" )exten => _6000XXXNXXX,n,Set(Time_in_secs=${STRFTIME(${EPOCH},,%s)}) ^> CLI: > -- Starting simple switch on 'DAHDI/1-1' > [2009-05-17 14:54:49] WARNING[13433]: pbx.c:2846 func_args: Can't find > trailing parenthesis? > -- Executing [60001234567 at internal:1] Set("DAHDI/1-1", > "Time-in-secs= "1242586489" ") in new stackPhilipp Kempgen -- AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de --
Philipp Kempgen
2009-May-17 20:49 UTC
[asterisk-users] Can YOU find a trailing parenthesis?
Steve Edwards schrieb:> Emacs has an excellent match-paren facility that works on (){}[] in any > nesting combination.So does any other decent text editor. :-P Philipp Kempgen -- AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de --